/cc-arsenal:review-perffrom cc-arsenal
Deep-dive performance audit of database queries, algorithmic complexity, frontend bottlenecks, and resource leaks for a PR, commit, or entire codebase. Produces severity-ranked report without modifying code.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive performance analysis targeting database query inefficiencies, algorithmic complexity issues, frontend bottlenecks, and resource leaks. This skill only analyzes: it identifies problems and suggests optimizations without making code changes.
| Constraint | Detail |
|---|---|
| Analysis only | Never modifies, fixes, or commits code, even if asked to "also fix these" mid-run; report the findings and stop |
| Static analysis | No runtime profiling, no benchmarking, no load testing |
| Pattern-based | Big O and impact estimates are approximate; may miss context-specific issues a profiler would catch |
| Not exhaustive | Does not guarantee 100% detection; profiling is recommended before acting on critical findings |
| Read before claiming | Never report a finding in a file that has not actually been read; every finding cites the specific file path and line number it came from |
| No invented numbers | Counts, query-multiplication estimates, and Big O claims must trace back to code actually read, not generic examples copied from the report template |
| Diff-scope confinement | For a PR or commit review, never grep or read a file the diff didn't touch, and never let a pre-existing issue in a touched file masquerade as a PR finding; see Phase 0/2 |
Parse arguments:
<pr_number>: scan only files changed in that PR (e.g. 123, #123)<commit_sha>: scan only files changed in that commit--all or no args: scan entire codebase--scope [database|algorithm|frontend|resources|backend]: focus on specific categories (backend = database + algorithm + resources, excludes frontend)If PR or commit specified, pull the full diff - not just the file list - so hunk ranges are available for Phase 2's confinement check:
# For PR
gh pr diff <pr_number>
# For commit
git diff-tree -p <commit_sha>
From that diff, extract two things and carry both into Phase 2:
+++ b/ line.@@ -a,b +c,d @@ header gives the new-file line range c to c+d-1 for that hunk. A file can have multiple hunks.--all or no args skips this entirely - there's no diff to confine to, the whole codebase is in scope.
Explore the codebase to identify the stack (language, ORM, framework) - it determines which anti-patterns in references/agent-prompts.md apply and which profiling tools to recommend.
Four scan categories, each with its own grep patterns and reporting format in references/agent-prompts.md:
| Category | Covers |
|---|---|
| Database | N+1 queries, missing indexes, connection management |
| Algorithm | Quadratic+ complexity, inefficient data structures, unnecessary recomputation |
| Frontend | Bundle size, rendering (React re-renders, layout thrashing), network waterfalls |
| Resources | Memory leaks, connection/file-handle leaks, thread/process leaks |
Spawn only the category matching --scope; spawn all 4 for --all, no scope, or --scope backend (database + algorithm + resources).
With subagent tools available: spawn one Explore agent per category in parallel, using the prompts in the reference file, and track progress with TodoWrite. Without subagent tools: run the categories sequentially inline in the same order, one grep pass and read-verify cycle per category.
For a PR or commit review, pass the Phase 0 changed-file list to every category (agent or inline) as the only valid grep/read target - a file the diff didn't touch is out of bounds even if it looks relevant (e.g. a service a changed view calls into). For --all, there's no such restriction.
Each category, agent or inline:
| Severity | Criteria |
|---|---|
| Critical | N+1 in loops, O(n²+) on large datasets, memory leaks in long-running processes, unbounded resource allocation |
| High | Missing indexes, sync blocking in async contexts, large bundle imports, connection pool exhaustion |
| Medium | Suboptimal queries, unnecessary re-renders, missing caching, inefficient data structures |
| Low | Minor optimizations, marginal-impact style preferences |
Follow references/report-template.md. Every number in it (finding counts, severity totals, file:line refs) must come from Phase 3's actual tally - never fill in the template's placeholder numbers as if they were real.
On a PR/commit review with a non-empty pre-existing-issues bucket, add a "Pre-existing Issues Noticed in Touched Files (outside this PR's changes)" section after the main Findings section - same file:line/snippet/severity format, clearly separated, excluded from the Severity Breakdown and Performance Impact Summary counts (which cover main findings only). If the bucket is empty, omit the section rather than writing a placeholder.
After writing the Findings sections, recount: count the actual Finding entries present in the report (per category and per severity) and use that recount for the Severity Breakdown and Performance Impact Summary table. Never estimate the summary counts or carry forward Phase 3's tally unreconciled - if a finding was dropped or merged while writing the report, the totals must reflect what's actually written, not what was originally found.
review-perf 123 # scan PR 123
review-perf #456
review-perf abc123def # scan a commit
review-perf --all # scan entire codebase
review-perf # same as --all
review-perf --all --scope database # codebase-wide, database findings only
review-perf 123 --scope frontend # PR 123, frontend findings only
What SKILL.md sets; muted values are Claude Code's defaults
52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself.npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenalOther plugins' skills for the same job