Phy Bundle Size Audit
LeoYeAI/openclaw-master-skills
JavaScript bundle size auditor and budget enforcer. An agent skill from LeoYeAI/openclaw-master-skills.
Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types…
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizer --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .claude/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .claude/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizer --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .agents/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .agents/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizer --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .cursor/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .cursor/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pproenca/dot-skills.git --path skills/.experimental/nextjs-bundle-optimizer--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizer --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .gemini/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .gemini/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .github/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .github/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pproenca/dot-skills nextjs-bundle-optimizer --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/.experimental/nextjs-bundle-optimizer .opencode/skills/nextjs-bundle-optimizer && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nextjs-bundle-optimizer" agent skill from https://github.com/pproenca/dot-skills/tree/master/skills/.experimental/nextjs-bundle-optimizer into .opencode/skills/nextjs-bundle-optimizer/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nextjs-bundle-optimizer", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nextjs-bundle-optimizerNext.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types…
Nextjs Bundle Optimizer is an agent skill from pproenca/dot-skills. Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types + tests + no regression) → commit or revert. Built for Next.js 16 with Turbopack default, and falls back to webpack-mode tooling when the project hasn't migrated yet. Triggers on phrases like "First Load JS is huge", "bundle size", "build takes too long", "page is slow to TTI", "reduce bundle", "tree-shake", or when…
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 14 other files, including scripts and reference files (for example `config.json`, `gotchas.md` and `metadata.json`).
It sits in Frontend & Design, covering Web performance. It works with Next.js, webpack and Turborepo. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.
Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 7 files in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
bashgittscFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nextjs Bundle Optimizer loads about 1.5k tokens when it runs, and up to ~7.3k if it reads all its reference files. Until then it costs about 169 tokens; SKILL.md has 536 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 536 words, ~1,526 tokens.
.claude/skills/nextjs-bundle-optimizer/SKILL.md (or your agent's skills folder). This skill also uses 12 other files; get the full folder from GitHub.Data-driven optimization loop for Next.js 16 applications. The skill orchestrates next experimental-analyze, builds, type checks, and tests to make verifiable improvements one change at a time.
Use this skill when:
<X> so big?"Bundle optimization is full of foot-guns. Examples:
next/dynamic can break SSR consumers that depended on its presence at first paint.experimental.optimizePackageImports with the wrong package can mis-resolve subpath exports.modularizeImports regex rewrites can hit unintended modules.The only reliable way is: one change, measure, verify, commit (or revert). This skill enforces that discipline through scripts.
package.json).git (the workflow uses commits as checkpoints and revert as rollback).jq available on PATH (used by analyze/compare scripts).git status to confirm).@next/bundle-analyzer instead of experimental-analyze. See gotchas.md.On first use, run:
bash scripts/baseline.sh --setupThis walks through config.json interactively. If config.json already has values, scripts use those and skip the prompts.
┌── 1. baseline ──┐ Clean build, snapshot bundles + timing → baselines/{timestamp}/
│ │
│ 2. analyze ───┤ Run `next experimental-analyze --output`, extract top offenders
│ │
│ 3. diagnose ──┤ Map each offender to a recipe in references/optimizations.md
│ │
│ ── apply ─────┤ User (or agent) applies ONE recipe. Skill helps draft the change.
│ │
│ 4. measure ───┤ Re-build, re-analyze, save to iterations/{n}/
│ │
│ 5. compare ───┤ Diff vs baseline; flag regressions; print delta table
│ │
│ 6. verify ────┤ Build + tsc + tests + no overall regression. Hard PASS/FAIL.
│ │
│ commit OR ────┘ `git commit` (PASS+improvement) or `git revert` (FAIL/no win)
│ revert
│
└── loop back to step 2 with new baseline if you want a fresh measurement point.Read references/workflow.md for the detailed loop with error handling, rollback procedures, and what each script's output looks like.
| Script | Purpose | Output |
|---|---|---|
scripts/baseline.sh | Establish the reference point | baselines/{ts}/{bundle,timing,manifest}.json |
scripts/analyze.sh | Run analyzer, parse top offenders | iterations/{n}/findings.json |
scripts/diagnose.sh [findings.json] | Map findings → recipes | stdout: prioritized recipe list |
scripts/measure.sh | Re-measure after a change | iterations/{n}/{bundle,timing}.json |
scripts/compare.sh [baseline] [current] | Diff snapshots | stdout: delta table; exit 1 on regression |
scripts/verify.sh | Full verification | exit 0 = safe to commit, exit 1 = revert |
references/optimizations.md catalogs recipes by analyzer signal:
Bundle size
experimental.optimizePackageImports (webpack) / auto in Turbopacknext/dynamic({ ssr: false })overrides / resolutionsbrowserslistBuild time
experimental.turbopackFileSystemCacheForBuildtranspilePackages (overuse balloons compile time)tsc --noEmit from next build in CINEXT_TURBOPACK_TRACING=1Each recipe documents: signal → fix → expected impact → verify step.
See gotchas.md for accumulated failure points. Initially seeded with the most common Next.js 16 traps:
next build no longer prints First Load JS — don't grep build output for it.optimizePackageImports is a no-op under Turbopack (default in 16) — Turbopack auto-optimizes..next/ (cold) or pre-warm (warm).vercel:nextjs — general Next.js App Router guidance; consult for refactoring decisions while applying recipes.vercel:turbopack — for build-time debugging beyond what this skill covers.vercel:next-cache-components — when a recipe touches caching boundaries.© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 12 other files (scripts, references) in skills/.experimental/nextjs-bundle-optimizer of pproenca/dot-skills.
Open the folder on GitHubat commit cf93c57
Nextjs Bundle Optimizer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nextjs Bundle Optimizer this skillpproenca/dot-skills | 214 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Phy Bundle Size AuditLeoYeAI/openclaw-master-skills | 2.2k | — | ~4.9k | Automated safety check: Pass | Apache-2.0 | |
| Core Web VitalsvmDeshpande/ai-agent-automation | 178 | 4 repos | ~3.6k | Automated safety check: Pass | MIT | |
| Runtime DebugOpenHikmah/openhikmah-web | 181 | — | ~618 | Automated safety check: Pass | GPL-3.0 | |
| Sanity Best Practicesrobotostudio/turbo-start-sanity | 182 | — | ~940 | Automated safety check: Pass | MIT | |
| Bun Buildinvolvex/youtube-music-cli | 456 | — | ~2.1k | Automated safety check: Notes | MIT |
LeoYeAI/openclaw-master-skills
JavaScript bundle size auditor and budget enforcer. An agent skill from LeoYeAI/openclaw-master-skills.
vmDeshpande/ai-agent-automation
Optimize Core Web Vitals (LCP, INP, CLS) for better page experience and search ranking.
OpenHikmah/openhikmah-web
Debug and verification workflow for runtime-bundle and module-resolution regressions.
robotostudio/turbo-start-sanity
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, Blueprints, and…
involvex/youtube-music-cli
Create optimized production bundles with Bun's native bundler.
Dwlad90/stylex-swc-plugin
Turn a PRD into a multi-phase implementation plan using tracer-bullet vertical slices, saved as a local Markdown file in ./plans/.
pproenca/dot-skills
Audio forensics and voice recovery guidelines for CSI-level audio analysis.
pproenca/dot-skills
Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.
pproenca/dot-skills
Create well-structured RFCs and technical proposals for software projects.
pproenca/dot-skills
Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.
pproenca/dot-skills
Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…
pproenca/dot-skills
Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…
Categories
Next.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types…. Nextjs Bundle Optimizer is an agent skill from pproenca/dot-skills.js 16 bundle-size and build-time optimization — runs a data-driven iteration loop: measure baseline → analyze top offenders → apply ONE recipe → re-measure → verify nothing broke (build + types + tests + no regression) → commit or revert.
Nextjs Bundle Optimizer fits situations like: phrases like First Load JS is huge; build takes too long; page is slow to TTI; the user shares output from next experimental-analyze / @next/bundle-analyzer — even if the user doesnt say optimize explicitly.
Run `npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a claude-code`. Or copy the skill folder (skills/.experimental/nextjs-bundle-optimizer in pproenca/dot-skills) into .claude/skills/nextjs-bundle-optimizer in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a codex`. Or copy the skill folder (skills/.experimental/nextjs-bundle-optimizer in pproenca/dot-skills) into .agents/skills/nextjs-bundle-optimizer in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill nextjs-bundle-optimizer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nextjs-bundle-optimizer, .gemini/skills/nextjs-bundle-optimizer, .github/skills/nextjs-bundle-optimizer and .opencode/skills/nextjs-bundle-optimizer in your project.
Going by SKILL.md and its folder, Nextjs Bundle Optimizer needs a shell for the scripts in its folder and the command-line tools its instructions call (bash, git and tsc). Our summary lists: A Bash shell.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Nextjs Bundle Optimizer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.7k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Nextjs Bundle Optimizer: Phy Bundle Size Audit (LeoYeAI/openclaw-master-skills, 2.2k stars), Core Web Vitals (vmDeshpande/ai-agent-automation, 178 stars), Runtime Debug (OpenHikmah/openhikmah-web, 181 stars) and Sanity Best Practices (robotostudio/turbo-start-sanity, 182 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.
Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.