No slash command · from cc10x
Two-mode code review skill: adversarial mode produces confidence-scored findings with file:line evidence for spec compliance, code quality, and security; receiving mode applies verify-before-agreeing discipline to external review feedback.
Ships in cc10x. 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.
Read only what's needed:
references/review-order-and-checkpoints.md — review order, checkpoint discipline; load when starting a review that spans multiple files or needs a checkpointed passreferences/code-review-heuristics.md — heuristics, pattern recognition, false-positive prevention; load when the diff is non-trivial or before reporting zero findings (Zero-Finding Halt re-scan)references/security-review-checklist.md — security review checklist; load whenever the diff touches auth, input handling, network, secrets, or data accessRun ADVERSARIAL when producing findings on a diff; run RECEIVING when acting on findings someone else produced. The Code Smells catalog, AI-Generated Anti-Patterns, Metric Honesty Rule, and Deferred Findings handling below apply in both modes.
Only report issues with confidence ≥80 — below that, a finding is more likely noise than signal, and noise burns the fix loop's time and trust. Do not inflate a score to smuggle a hunch through; a genuine security hunch goes to the Summary as an open question (see the Security exception under Confidence Scoring). Every finding states category, impact, and why it matters. Present a recommendation, not a menu. Be opinionated.
Signal quality rule: One finding with file:line evidence and a fix is worth more than ten generic observations. Never report a pattern without showing where it lives.
Stage 1: Spec Compliance — Does the code do what the plan/spec asked? Check: phase exit criteria met, interfaces match plan's Consumes/Produces, no scope drift, no missing scenarios.
Stage 2: Code Quality — Is the code well-built? Check: correctness, performance, security, clarity, test coverage.
One-fact rule: On a consequential change, find the one fact the change is safe because of — a caller invariant, a lifecycle assumption, a data-shape contract at a boundary — and spend the review proving that fact instead of enumerating maybes. The fact is usually one a breakage grep will not surface. If you cannot prove it, the change is unreviewed; the maybes you listed do not change that.
Top-down (spec → architecture → module → function → line) for first pass. Bottom-up (line → function → module) for detail pass. See references/review-order-and-checkpoints.md.
| Severity | Criteria |
|---|---|
| CRITICAL | Data loss, security breach, silent data corruption |
| HIGH | User-visible broken behavior |
| MEDIUM | Suboptimal but functional |
| LOW | Code smell, style |
| Confidence | Meaning |
|---|---|
| 90-100 | Verified: read the code, confirmed the issue, can cite file:line |
| 80-89 | Strong: read surrounding context, pattern is clear |
| <80 | Do not report — insufficient evidence |
Security exception: a security-category finding below 80 confidence is NOT silently dropped. Surface it as an explicit open question in the review Summary (e.g., "Possible auth bypass at file:line — could not confirm exploit path"), not as a finding. The <80 floor drops everything else.
When code-reviewer and failure-hunter run in parallel (BUILD workflow):
CHANGES_REQUESTED over APPROVE, FAIL over PASS) and is logged in status_history, except that a re-raised finding whose dispute the verifier upheld (DISPUTE_UPHELD) is dropped by the router and one whose dispute is still in flight continues to the verifier.Zero findings on a non-trivial change → insufficient depth, not perfect code. Re-scan against heuristics and security checklist before reporting zero findings: APPROVE for code-reviewer, CLEAN for failure-hunter. A zero-finding APPROVE also needs at least three positive assertions with file:line evidence, the router's validity check, which triggers fallback inline verification when they are missing.
Scan for these 16 named smells during review. Each is actionable — not a style preference. "Messy" is not actionable; "Mysterious Name" is. Each smell is a labelled heuristic and always a judgement call ("possible Feature Envy"), never a hard violation:
| Smell | Signal | Fix |
|---|---|---|
| Mysterious Name | Function/variable name doesn't reveal intent | Rename to describe what it does |
| Long Method | Method > 20 lines doing multiple things | Extract sub-methods |
| Long Parameter List | > 4 parameters — consider parameter object | Extract into an object |
| Large Class | Class with too many responsibilities | Split by responsibility |
| Data Class | Holds data, no behavior — anemic domain model | Move behavior in, or inline the class |
| Duplicated Code | Same logic in 3+ places | Extract shared function |
| Feature Envy | Method reads more from another class than its own | Move method to the class it envies |
| Shotgun Surgery | One change requires touching many files | Consolidate responsibility |
| Divergent Change | One class changes for different reasons | Split into separate classes |
| Primitive Obsession | Using primitives where a small value object would add meaning | Create a value object |
| Repeated Switches | Same switch/if-else on a type across files | Replace with polymorphism |
| Speculative Generality | Abstraction for future use that never comes | Delete it (YAGNI) |
| Message Chains | a.b().c().d() — client knows the object graph | Hide the chain behind a method |
| Middle Man | Class just delegates to another — adds no logic | Remove the middleman, use the real object |
| Refused Bequest | Subclass doesn't use parent's methods | Replace inheritance with composition |
| Data Clumps | 3+ values always passed together | Extract into an object |
Repo standards override baseline: if the repo's documented conventions endorse something this baseline would flag, suppress the smell.
Patterns commonly produced by AI code generation — flag with elevated priority:
useMemo/useCallback/React.memo wrapping everything without profiling evidencePromise.all (latency multiplier)as any/as Type instead of narrowing with a runtime checkNever fabricate metrics. An LLM reading static source code cannot measure real-world LCP, INP, CLS, memory usage, or runtime performance.
State what you CAN verify from code. Tag anything else as "potential impact, not measured" — never invent numbers. Recommend specific tools (Lighthouse, profiler, benchmark suite) when runtime measurement is the real answer.
Findings of any severity that do not block and that you don't fix in this pass (the router's non-blocking "Minor" class) are NOT dropped, but you do NOT need a separate file or a separate CONTRACT field for them. Just report them normally with severity and file:line in your output. The router already handles persistence: it reads your findings, appends every non-blocking item to the workflow artifact's deferred_findings array (source, phase, finding, severity), and surfaces the accumulated list for explicit user triage at BUILD-DONE finishing. Nothing is silently discarded — this is automatic on the router side, not something you need to engineer in your response.
Do NOT flag:
Discipline for acting on external/human review feedback (pasted PR comments, review notes, "can you change X"). This governs the MAIN session, not the internal reviewer→router→fix loop.
Before implementing a suggestion, check:
Before implementing a suggestion, grep the codebase for the pattern the reviewer claims is wrong. If the pattern is project convention (appears in many places, is in patterns.md), push back. If it's genuinely isolated, fix it.
| Situation | Response |
|---|---|
| Reviewer misunderstood the code | Explain with file:line evidence |
| Suggestion contradicts project convention | Cite the convention, push back |
| Suggestion adds unnecessary complexity | YAGNI — state why the simpler approach is better |
| Suggestion is correct but out of scope | Acknowledge, defer to a follow-up |
| Suggestion is a style preference | Acknowledge, apply only if it matches project conventions |
Feedback arrives through gh or pasted text; both misbehave in known ways. Symptom → detection → fallback. Do not burn the fix loop retrying a misbehaving surface.
| Symptom | Detection | Fallback |
|---|---|---|
| Comments predate your latest push (stale review state) | Compare comment updated_at, not created_at — an edited comment keeps its old creation time. gh pr view --json does not expose updatedAt; use gh api repos/{owner}/{repo}/issues/<n>/comments --jq '.[].updated_at' for issue comments and gh api repos/{owner}/{repo}/pulls/<n>/comments --jq '.[].updated_at' for inline comments, and gh pr view --json reviews --jq '.reviews[].submittedAt' for review bodies (reviews expose submission time only), all vs the latest push | Treat pre-push comments as already-addressed candidates; verify each against current HEAD before acting |
gh returns 401 / "To get started with GitHub CLI" | gh auth status | Report BLOCKED on auth and ask the user; never retry the call in a loop |
| "API rate limit exceeded" | gh api rate_limit --jq .rate | Wait until the reset time once, or ask the user to fetch; never tight-loop retries |
| Pasted line numbers no longer match (rebased/squashed diff) | Compare the comment's referenced hunk against the current file | Map by content, not line number; if ambiguous, ask the reviewer — never guess which line was meant |
When the user explicitly requests repeated review cycles, name the iteration cap before the first cycle; at the cap, stop and report, resolving each remaining finding by fixing it or rebutting it with stated grounds. A single requested review starts no score loop.
Pushing back ≠ refusing. You must either fix the issue or provide evidence why it's not an issue. "I prefer my way" is not a valid push-back. "This is project convention, see patterns.md line X" is valid.
Never perform agreement. "You're absolutely right!" commits you to unverified feedback. Verify before implementing: restate the technical requirement, push back with reasoning, or just do the work and show the fix.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub romiluz13/cc10x --plugin cc10x22 skills in this plugin
/agent-commonUse when a cc10x agent starts a task: the shared preamble for the memory protocol, the contract format, and the output rules./architectureGreenfield architecture design: map functionality flows, draw components, design APIs,
classify dependencies, plan observability. For multi-component, API, schema, auth, or
integration-heavy work. For retrofitting existing code, use codebase-hygiene instead.
/buildingUse when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED
detection, vertical slicing, scope escalation, test process discipline, and code
generation patterns.
/cc10x-guideAnswers questions about cc10x itself — what it is, how to install and configure it,
how the router, workflows, memory, and hooks operate, and how to troubleshoot.
Use this skill when: the user asks ABOUT cc10x — "what is cc10x", "how do I
configure cc10x", "why isn't cc10x activating", "how do cc10x workflows work",
"how does cc10x memory work", "cc10x troubleshooting".
NOT for performing work: "set up cc10x for me", build, debug, review, or plan
requests route to cc10x-router. "Update cc10x" / "upgrade cc10x" route to the
update skill. This skill answers questions; it never edits project code, never
writes files, never runs workflows.
Triggers: what is cc10x, cc10x help, cc10x guide, how to use cc10x, configure cc10x,
cc10x setup, cc10x faq, cc10x troubleshooting, cc10x not working, cc10x not activating.
/cc10x-routerRoutes build, debug, review, plan, QA, and triage requests through the cc10x workflows (task graphs, workflow artifacts, gates); it is the single entry point for cc10x code work.
Activates when the user asks to implement, fix, review, plan, test, refactor, or continue code work.
Trigger keywords: build, implement, create, write, add, review, audit, debug, fix, error, bug, broken, plan, design, architect, spec, brainstorm, test, refactor, optimize, update, change, research, cc10x, c10x.
Hand-off: questions about cc10x itself belong to `cc10x-guide`, and "update cc10x" belongs to the `update` skill.
/codebase-designCanonical deep-module vocabulary (module, interface, depth, seam, adapter,
leverage, locality) for designing a module's shape — a lot of behaviour
behind a small interface at a clean seam, testable through that interface.
The single source of truth for these terms; other skills (architecture,
codebase-hygiene) point here instead of restating them.
Use when designing or improving a module's interface, finding deepening
opportunities, deciding where a seam goes, or making code more testable.
Other plugins' skills for the same job