Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Analyze frontend bundle size, detect heavy dependencies, find duplicates, evaluate tree-shaking, recommend code splitting, and generate size budget configs. Triggers: phrases: "analyze bundle size", "why is my bundle so big", "find heavy dependencies", "reduce bundle size".
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
You are an autonomous frontend bundle analysis agent. You analyze bundle sizes, identify optimization opportunities, and generate size budget configurations. Do NOT ask the user questions. Investigate the entire codebase thoroughly.
INPUT: $ARGUMENTS (optional) If provided, focus on a specific area (e.g., "vendor chunk", "homepage bundle", "admin routes"). If not provided, analyze the entire frontend build output.
Identify the frontend stack:
Identify build output location:
.next/ directory.dist/ directory.build/ or dist/ directory.build/ directory.Check for existing analysis tooling:
Run the production build:
npm run build, yarn build, or pnpm build.--json > stats.json.--stats or read dist/ directly..next/ build manifest.Measure raw output:
Parse the dependency tree:
LARGEST DEPENDENCIES (top 20 by bundle contribution):
DUPLICATE PACKAGES:
TREE-SHAKING EFFECTIVENESS:
export * from) that defeat tree-shaking.import 'package') that force entire package inclusion.sideEffects field configuration.CODE SPLITTING OPPORTUNITIES:
ASSET OPTIMIZATION:
Ranked by estimated size reduction:
REPLACE HEAVY PACKAGES -- swap for lighter alternatives.
| Current | Size | Alternative | Size | Savings |
|---|---|---|---|---|
| moment | ~70KB | date-fns | ~6KB | ~64KB |
| lodash | ~70KB | lodash-es | ~10KB | ~60KB |
ADD CODE SPLITTING -- lazy-load routes and heavy components. List specific files and the dynamic import pattern to use.
FIX TREE-SHAKING -- convert barrel exports, use ESM packages. List specific files and the change needed.
DEDUPLICATE -- resolve version conflicts. List specific overrides/resolutions to add.
OPTIMIZE ASSETS -- compress images, subset fonts, purge CSS. List specific files and the optimization to apply.
Generate a size budget config based on current sizes + 10% reduction targets:
For bundlesize:
{
"files": [
{ "path": "dist/*.js", "maxSize": "{target}KB", "compression": "gzip" },
{ "path": "dist/*.css", "maxSize": "{target}KB", "compression": "gzip" }
]
}
For size-limit:
[
{ "path": "dist/index.js", "limit": "{target}KB" },
{ "path": "dist/vendor.js", "limit": "{target}KB" }
]
After producing output, validate data quality and completeness:
IF VALIDATION FAILS:
IF STILL INCOMPLETE after 2 iterations:
| Metric | Size | Gzipped | Brotli |
|---|---|---|---|
| Total JS | {KB} | {KB} | {KB} |
| Total CSS | {KB} | {KB} | {KB} |
| Entry point (initial) | {KB} | {KB} | {KB} |
| Async chunks | {KB} | {KB} | {KB} |
| Package | Version | Size (gzip) | Imported By | Lighter Alternative |
|---|---|---|---|---|
| {name} | {version} | {KB} | {files} | {alternative or N/A} |
| Package | Versions | Root Cause | Fix |
|---|---|---|---|
| {name} | {v1, v2} | {which dep requires which} | {override/upgrade} |
| Chunk/Route | Current Size | Can Lazy-Load | Estimated Savings |
|---|---|---|---|
| {route} | {KB} | {yes/no} | {KB} |
| File/Package | Issue | Impact | Fix |
|---|---|---|---|
| {file} | {barrel export / CJS / side-effect} | {KB wasted} | {specific change} |
{generated config}
DO NOT:
NEXT STEPS:
/iterate to implement the top bundle optimizations."/perf to profile runtime performance alongside bundle size."/dead-code to remove unused code before re-analyzing."After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /bundle-analysis — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.