Runs bundle analysis, Lighthouse audits, benchmarks, build time checks, and algorithmic complexity review. Creates a structured GitHub issue with findings.
Ships in dlc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run performance checks against the current project and create a GitHub issue with findings.
Before running, read ../dlc/references/ISSUE-TEMPLATE.md now for the issue format, and read ../dlc/references/REPORT-FORMAT.md now for the findings data structure.
Scan the project to determine which performance checks are applicable:
| Indicator | Check Type | Tools |
|---|---|---|
webpack.config.* / vite.config.* / next.config.* | Bundle analysis | webpack-bundle-analyzer, vite-bundle-analyzer, @next/bundle-analyzer |
lighthouse in deps or CI config | Lighthouse | lighthouse CLI |
bench / benchmark dirs or scripts | Benchmarks | Project-specific (e.g. vitest bench, cargo bench, go test -bench) |
docker-compose* / Dockerfile | Container analysis | dive, docker image inspect |
tsconfig.json / package.json (with build scripts) | Build time | Time the build command |
Select the tool based on detected build config — run only the first matching tool:
# Detect bundler and run the matching analysis
if [ -f webpack.config.js ] || [ -f webpack.config.ts ]; then
npx webpack --json 2>/dev/null | jq '.assets[] | {name, size}'
elif [ -f vite.config.js ] || [ -f vite.config.ts ]; then
npx vite build --report 2>/dev/null
elif [ -f next.config.js ] || [ -f next.config.mjs ]; then
ANALYZE=true npx next build 2>/dev/null
fi
# If lighthouse CLI available and there's a dev server or static build
lighthouse http://localhost:3000 --output=json --quiet 2>/dev/null
# Node.js
npx vitest bench --reporter=json 2>/dev/null
# Rust
cargo bench 2>/dev/null
# Go
go test -bench=. -benchmem ./... 2>/dev/null
# Python
python -m pytest --benchmark-only 2>/dev/null
# Time the build
time npm run build 2>&1
# or
time cargo build --release 2>&1
Even with tools, always perform manual analysis. Use the Explore agent to discover performance-sensitive areas across the codebase (hot paths, data pipelines, request handlers). Use repomix-explorer (if available) for large codebases to get a structural overview. Then use targeted Grep and Read for detailed analysis:
O(n^2) or worse patterns: nested loops over the same collection, repeated array searches*.sql, ORM query files)Map results to the findings format from REPORT-FORMAT.md.
Severity mapping (reinforced here for defense-in-depth):
| Finding Type | Severity |
|---|---|
| Bundle size regression > 50% | Critical |
| O(n^3) or worse in hot path | Critical |
| Lighthouse performance score < 50 | High |
| O(n^2) in frequently-called code | High |
| Bundle size > project target | Medium |
| Missing database indexes on queried columns | Medium |
| Synchronous blocking in async context | Medium |
| Minor optimization opportunities | Low |
| Benchmark results (informational) | Info |
Read ../dlc/references/ISSUE-TEMPLATE.md now and format the issue body exactly as specified.
Critical format rules (reinforced here):
[DLC] Performance: {summary of top finding}dlc-perfAcquire BRANCH for the Scan Metadata table above — ISSUE-TEMPLATE.md's lifecycle acquires REPO itself. Then follow ISSUE-TEMPLATE.md's Issue Creation Command lifecycle exactly — substitute {skill-name} = perf, {Type} = Performance, {type} = perf, {additional-required-sections} = '## Raw Output':
BRANCH=$(git branch --show-current)
echo "BRANCH=$BRANCH" # ISSUE-TEMPLATE.md's Write step is a separate tool call and can't see this shell's variables
Performance analysis complete.
- Checks run: {list of applicable checks}
- Tools used: {list}
- Findings: {critical} critical, {high} high, {medium} medium
- Issue: #{number} ({url})
If no findings, skip issue creation and report: "No performance issues found."
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/babysitPR babysitter: monitors CI status, auto-rebases when behind, auto-fixes CI where possible, delegates review comment handling to dlc:pr-check, and re-requests review after fixes. Designed for /loop usage with Remote Control./dlcDev Life Cycle quality gates: run security scans, code quality checks, performance analysis, test coverage, and PR review compliance. Routes to domain-specific sub-skills or runs all checks in sequence./git-opsGit hygiene: clean up merged branches, prune stale remotes, and verify repository state./dlc:perffrom dlc
npx claudepluginhub rube-de/cc-skills --plugin dlcOther plugins' skills for the same job