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.
日本語の概要は準備中です。原文の説明を表示しています。