agent-common
Shared preamble loaded by all cc10x agents — memory protocol, contract format, output rules.
Two-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line evidence; (2) receiving review — verify-before- agreeing discipline for acting on external/human review feedback.
$ npx -y skills add romiluz13/cc10x --skill code-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Two-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line evidence; (2) receiving review — verify-before- agreeing discipline for acting on external/human review feedback.
name: code-review description: | Two-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line evidence; (2) receiving review — verify-before- agreeing discipline for acting on external/human review feedback. allowed-tools: Read Grep Glob LSP Bash user-invocable: false
Read only what's needed:
---
Run 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):
Zero findings on a non-trivial change → insufficient depth, not perfect code. Re-scan against heuristics and security checklist before reporting CLEAN.
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)
The Loop Engine for Claude Code — engineer the loop, not the prompt. 1 router · 9 agents · 16 skills · 4 workflows. Fail-closed gates, test honesty, anti-anchored review.
Repo: romiluz13/cc10x
Shared preamble loaded by all cc10x agents — memory protocol, contract format, output rules.
Greenfield architecture design: map functionality flows, draw components, design APIs, classify dependencies, plan observability. For multi-component, API,…
Implementation skill for writing production code with TDD. Covers the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope escalation, test…
Answers questions about cc10x itself — what it is, how to install and configure it, how the router, workflows, memory, and hooks operate, and how to…
THE ONLY ENTRY POINT FOR CC10X. Activate this skill for build, debug, review, and plan requests. Use when the user asks to implement, fix, review, plan, test,…
Canonical deep-module vocabulary (module, interface, depth, seam, adapter, leverage, locality) for designing a module's shape — a lot of behaviour behind a…