/cc-arsenal:review-codefrom cc-arsenal
Runs an adaptive multi-agent code review covering correctness, performance, style, test coverage, error handling, simplicity, architecture, and design patterns. Adds security, dependency, performance, and UI lanes when relevant. Critical and Major findings are adversarially verified before reporting.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
One review, adaptive lanes. The six core dimensions and the architecture lane always run. Security, deps, deep-performance and design/motion lanes join when the diff touches their area. Critical and Major findings are then attacked by a verifier before they reach the report.
Analysis only. Never edit code, commit, apply fixes, or run anything that mutates the repo. The report goes to chat. Run gh write commands (reviews, comments) only when the user explicitly asks to post.
file:line you read, pointing at the offending statement itself, not the block around it. No hypothetical issues, no estimated counts.preexisting..claude/skills/*) are the style standard. A violation is a finding. Personal preference is not.model explicitly: review, research and verify use sonnet, planning uses opus. Never leave it inherited, never use haiku.Copy this checklist and tick each step. Do not start a step before the previous gate holds.
- [ ] 0. Scope: diff retrieved, file list and hunk ranges known (gate: non-empty diff)
- [ ] 1. Discovery: stack and project rules extracted into a numbered list (gate: list written)
- [ ] 2. Lane selection: lanes chosen with a one-line reason each (gate: printed)
- [ ] 3. Fan-out: all lane agents launched in ONE parallel batch (gate: all findings files written)
- [ ] 4. Consolidate: merged, deduplicated, routed to the right dimension
- [ ] 5. Verify: Critical/Major findings attacked, REJECTED dropped (gate: every survivor has a verdict)
- [ ] 6. Report: written in chat from the template
- [ ] 7. Post: ONLY if the user explicitly asked
Parse arguments: a PR number (123, #123), a commit SHA, --all or none (whole codebase), and --focus <value>.
gh pr diff <pr> # PR
git fetch origin <base> && git diff origin/<base>...HEAD # fallback when gh fails (e.g. diff too large)
git show <sha> # commit
Create a scratch dir with mktemp -d (never inside the repo) and save the diff to <scratch>/pr.diff. Take the changed-file list from the same diff. From each hunk header @@ -a,b +c,d @@, the new-side range is lines c to c+d-1; anything outside those ranges is pre-existing. Re-reviewing after fixes is just a rerun: the diff is re-derived.
Read the root and nested AGENTS.md / CLAUDE.md and .claude/skills/*. Turn every rule into a numbered checklist (comment policy, strict typing, file-size limits, empty __init__, no manual memo under React Compiler, and so on). This list goes into every agent prompt. Note the languages, frameworks and test setup.
| Lane | Findings file | Runs when the change touches | Prefix |
|---|---|---|---|
| core (agents 1-6) | core-<prefix>.json per agent (core-cl, core-pf, core-cs, core-tc, core-eh, core-oe) | always | CL PF CS TC EH OE |
| architecture (agent 7) | architecture.json | always | AP |
| security-fe | security-fe.json | UI, client auth, storage, cookies, CSP | SEC |
| security-be | security-be.json | server code, auth, config, IaC, CI | SEC |
| deps | deps.json | a manifest or lockfile | DEP |
| perf-deep | perf-deep.json | DB, queries, hot loops, bundle or render paths | PF |
| design-motion | design-motion.json | UI, CSS, component files | DM |
With --all, run every lane that applies to the repo. With --focus, run only the matching lane. Print the chosen lanes with a one-line reason each, and a reason for each skipped lane. Lane prompts, sibling composition and installed-skill detection: references/lanes.md. Architecture lens: references/architecture-patterns.md.
Launch every selected lane in one parallel batch, explicit model on each call. Each agent gets the rule checklist, the diff scope, and the finding contract, and writes <scratch>/findings/<lane>.json as {"lane": "...", "findings": [...]}. Core agent prompts, grep patterns and the finding shape: references/agent-prompts.md.
Each agent: grep for patterns in scope, read each match to confirm it is real, quote 5-10 lines with file:line, explain why it matters, classify severity, give a concrete fix.
| Severity | Meaning |
|---|---|
| Critical | Data loss, crashes, security holes, incorrect business logic |
| Major | Significant reliability or performance harm, real maintainability risk |
| Minor | Readability, consistency, small inefficiencies |
| Nit | Cosmetic or optional |
Gate: a lane whose findings file is missing or invalid is re-run once. If it fails again, the report names the lane as failed instead of silently omitting it.
Sequential fallback: with no subagent tool, run the same lanes as sequential Grep+Read passes in table order, the verification pass last. Same prompts, same findings files, same gates.
Run uv run <skill-dir>/scripts/merge_findings.py --findings <scratch>/findings --diff <scratch>/pr.diff --out <scratch> to dedupe (same path, lines within 2, same dimension or same title). If it is unavailable, merge by hand with the same rules: one primary finding, the other agents' versions in a collapsed <details> block. Move praise and "resolved" notes out of findings into Positive Observations. Route a finding to its true dimension: an over-engineered function that is also buggy is a CL- finding, not OE-. If Agent 6 and Agent 7 disagree on the same code, keep the OE removal and drop the pattern suggestion.
Launch one adversarial verifier (sonnet) per batch of Critical/Major findings. It tries to disprove each, may run targeted read-only checks, and returns CONFIRMED / PLAUSIBLE / REJECTED with a corrected severity and a reason. Write each verdict, corrected severity and a new reason field back into the matching findings in <scratch>/findings/*.json, then re-run the merge script; the report and step 7 use that output (it drops REJECTED and renders Verification: <VERDICT> (<reason>)). A bug the user says they observed keeps its severity. Prompt, schema and rules: references/verification.md.
Write the report in chat following references/report-template.md: lane-selection line, executive summary, severity and verdict statistics, findings by dimension, pre-existing bucket, prioritized actions, positive observations. Zero surviving findings still produce the report (lanes line, statistics, positive observations); with posting requested, post a body-only review.
Only when the user asks ("post it on the PR", --comment). Run the merge script, show a preview with the count of inline comments versus body items, then post ONE review. Flow, anchoring rules and comment style: references/github-review.md. Without an explicit request, run no gh write command.
review-code 123 # PR, lanes chosen from the diff
review-code abc123def # commit
review-code --all # whole codebase, every applicable lane
review-code 123 --focus security # narrow to one lane
review-code 123 --comment # also post the review to the PR
correctness, performance, style, tests and errors run the matching core agent, while architecture, deps and design (design-motion) run their own lane. security runs security-fe and security-be as applicable, and without --focus the lanes stay adaptive.
LLM-written code over-engineers: interfaces with one implementation, factories for one product, forwarding wrappers. None is a bug, so the other agents miss it. Agent 6 flags it as OE- (Minor/Nit by default). Prompt and tags: references/agent-prompts.md.
scripts/merge_findings.py: dedupe, drop REJECTED, validate RIGHT-side anchors, emit merged.json and review-payload.json (--self-test available)evals/evals.json (opens in a new tab)evals/trigger-eval.json (opens in a new tab)references/agent-prompts.md (opens in a new tab)references/architecture-patterns.md (opens in a new tab)references/github-review.md (opens in a new tab)references/lanes.md (opens in a new tab)references/report-template.md (opens in a new tab)references/verification.md (opens in a new tab)scripts/merge_findings.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal52 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./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).