Agent skill

Code Review

by romiluz13 in romiluz13/cc10x

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…

MITAuto-check: notesDevelopment

Install Code Review

skills CLI
$ npx skills add romiluz13/cc10x --skill code-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install romiluz13/cc10x code-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/romiluz13/cc10x.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/cc10x/skills/code-review .claude/skills/code-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-review
GitHub stars
164
Token cost
~3.3k tokens
SKILL.md length
1,751 words
Files
4 (incl. references)
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

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…

  • Works in 6 steps: Read all feedback before responding to… → Categorize each item: CRITICAL (must… → Verify before agreeing — don't blindly… → …
  • Tasks that involve Code review
  • SKILL.md covers Reference Files, Mode: ADVERSARIAL REVIEW and Mode: RECEIVING REVIEW
  • Calls gh

What it does

Code Review is an agent skill from romiluz13/cc10x. 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.

Its SKILL.md is about 3.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/code-review-heuristics.md`, `references/review-order-and-checkpoints.md` and `references/security-review-checklist.md`).

It sits in Development, covering Code review and Code quality. The repository describes itself as: 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. The licence is MIT.

When your agent uses it

  • Tasks that involve Code review
  • Tasks that involve Code quality

Example prompts

  • “/code-review”

Requirements

  • Pre-approved tools (allowed-tools): Read, Grep, Glob, LSP, Bash

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Read all feedback before responding to any item
  2. Categorize each item: CRITICAL (must fix), IMPORTANT (should fix), MINOR (optional), REJECT (with reason)
  3. Verify before agreeing — don't blindly accept. Check if the feedback is correct against the code.
  4. Fix accepted items — CRITICAL first, then IMPORTANT
  5. Push back on rejected items — with evidence, not opinion
  6. Report — what was fixed, what was rejected and why

What it can do on your machine

Read from SKILL.md and the folder at commit 891acf0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Grep
    • Glob
    • LSP
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Review loads about 3.3k tokens when it runs, and up to ~5.2k if it reads all its reference files. Until then it costs about 63 tokens; SKILL.md has 1,751 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~63
When it runs · the whole SKILL.md, loaded when a task matches
~3.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Grep, Glob, LSP, Bash

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from romiluz13/cc10x at commit 891acf0, republished under its MIT licence (© romiluz13). 1,751 words, ~3,349 tokens.

Download SKILL.mdSave it as .claude/skills/code-review/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
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

Code Review (Adversarial + Receiving)

Reference Files

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 pass
  • references/code-review-heuristics.md — heuristics, pattern recognition, false-positive prevention; load when the diff is non-trivial or before reporting CLEAN (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 access

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.

Mode: ADVERSARIAL REVIEW

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.

Two-Stage Review

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.

Review Order

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 Classification
SeverityCriteria
CRITICALData loss, security breach, silent data corruption
HIGHUser-visible broken behavior
MEDIUMSuboptimal but functional
LOWCode smell, style
Confidence Scoring
ConfidenceMeaning
90-100Verified: read the code, confirmed the issue, can cite file:line
80-89Strong: read surrounding context, pattern is clear
<80Do 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.

Parallel Review + Router Merge

When code-reviewer and failure-hunter run in parallel (BUILD workflow):

  • code-reviewer (Assessment A): correctness, performance, spec compliance. Forms opinion WITHOUT seeing the hunter's scan.
  • failure-hunter (Assessment B): silent failure scan using red-flags table. Does NOT see the reviewer's findings.
  • Router-owned merge: after both complete, the router writes a merged findings summary into the workflow artifact before verifier handoff. Where both agree → high confidence. Where the hunter caught what the reviewer missed → keep. Where the hunter finding is a false positive → drop with reason. Contradictory verdicts: stricter verdict wins, logged in status_history.
Zero-Finding Halt

Zero findings on a non-trivial change → insufficient depth, not perfect code. Re-scan against heuristics and security checklist before reporting CLEAN.

Code Smells (Fowler Catalog)

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:

SmellSignalFix
Mysterious NameFunction/variable name doesn't reveal intentRename to describe what it does
Long MethodMethod > 20 lines doing multiple thingsExtract sub-methods
Long Parameter List> 4 parameters — consider parameter objectExtract into an object
Large ClassClass with too many responsibilitiesSplit by responsibility
Data ClassHolds data, no behavior — anemic domain modelMove behavior in, or inline the class
Duplicated CodeSame logic in 3+ placesExtract shared function
Feature EnvyMethod reads more from another class than its ownMove method to the class it envies
Shotgun SurgeryOne change requires touching many filesConsolidate responsibility
Divergent ChangeOne class changes for different reasonsSplit into separate classes
Primitive ObsessionUsing primitives where a small value object would add meaningCreate a value object
Repeated SwitchesSame switch/if-else on a type across filesReplace with polymorphism
Speculative GeneralityAbstraction for future use that never comesDelete it (YAGNI)
Message Chainsa.b().c().d() — client knows the object graphHide the chain behind a method
Middle ManClass just delegates to another — adds no logicRemove the middleman, use the real object
Refused BequestSubclass doesn't use parent's methodsReplace inheritance with composition
Data Clumps3+ values always passed togetherExtract into an object

Repo standards override baseline: if the repo's documented conventions endorse something this baseline would flag, suppress the smell.

AI-Generated Anti-Patterns

Patterns commonly produced by AI code generation — flag with elevated priority:

  • Over-eager memoization — useMemo/useCallback/React.memo wrapping everything without profiling evidence
  • State duplication — same state stored in 2+ places, kept in sync manually (source of truth unclear)
  • Sequential awaits — independent async calls awaited sequentially instead of Promise.all (latency multiplier)
  • Over-fetching — fetching full objects (or more than the current view needs) when only one field is needed
  • Premature abstraction / speculative generality — interface with single implementation "for future flexibility"
  • Configurable when it should be constant — adding options/flags for flexibility nobody asked for
  • Defensive coding for impossible states — null checks / over-engineered error handling for scenarios that can't happen (values typed non-nullable, internal code boundaries)
  • Test mirrors implementation — test recomputes expected value using the same logic as the code (tautological test)
  • Factory overkill — factory pattern for objects with no polymorphism
  • Type assertions instead of type guards — as any/as Type instead of narrowing with a runtime check
Metric Honesty Rule

Never fabricate metrics. An LLM reading static source code cannot measure real-world LCP, INP, CLS, memory usage, or runtime performance.

  • Can assess from code: algorithmic complexity (O(n) vs O(n²)), N+1 query patterns, obvious hot loops, missing indices
  • Cannot assess from code: real-world latency, actual memory pressure, real INP/LCP/CLS values

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.

Show full SKILL.md (701 more words)Show less
Deferred Findings (Not "Residual" — Already Wired)

Minor/Medium findings you don't fix in this pass 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 Minor 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.

False Positive Prevention

Do NOT flag:

  • Code that matches an explicit project convention (check patterns.md)
  • Intentional simplification documented in the plan
  • Test-only code using test patterns (mocks, fixtures, stubs)
  • Performance "issues" without a measured bottleneck
  • Style preferences that don't match project conventions

Mode: RECEIVING REVIEW

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.

The 6-Step Loop
  1. Read all feedback before responding to any item
  2. Categorize each item: CRITICAL (must fix), IMPORTANT (should fix), MINOR (optional), REJECT (with reason)
  3. Verify before agreeing — don't blindly accept. Check if the feedback is correct against the code.
  4. Fix accepted items — CRITICAL first, then IMPORTANT
  5. Push back on rejected items — with evidence, not opinion
  6. Report — what was fixed, what was rejected and why
Verify Before Agreeing

Before implementing a suggestion, check:

  • Does the issue actually exist in the code? (read the file:line)
  • Is the suggested fix correct? (would it actually fix the issue?)
  • Does the fix introduce new problems? (side effects, breaking changes)
  • Is the suggestion based on a correct understanding of the code?
YAGNI-Grep Before Implementing

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.

When To Push Back
SituationResponse
Reviewer misunderstood the codeExplain with file:line evidence
Suggestion contradicts project conventionCite the convention, push back
Suggestion adds unnecessary complexityYAGNI — state why the simpler approach is better
Suggestion is correct but out of scopeAcknowledge, defer to a follow-up
Suggestion is a style preferenceAcknowledge, apply only if it matches project conventions
Known misbehaviors (external review surfaces)

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.

SymptomDetectionFallback
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 pushTreat 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 statusReport BLOCKED on auth and ask the user; never retry the call in a loop
"API rate limit exceeded"gh api rate_limit --jq .rateWait 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 fileMap 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.

Precedence

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.

© romiluz13, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in plugins/cc10x/skills/code-review of romiluz13/cc10x.

  • SKILL.md
  • references/code-review-heuristics.md
  • references/review-order-and-checkpoints.md
  • references/security-review-checklist.md

Open the folder on GitHubat commit 891acf0

Compare with similar skills

Code Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Review this skillromiluz13/cc10x164—~3.3kAutomated safety check: NotesMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence
Skill Doli Code ReviewDolibarr/dolibarr7.7k1 repos~1.1kAutomated safety check: PassMIT
Dignified Python Standardsdocling-project/docling68k—~1.5kAutomated safety check: PassApache-2.0
Clean Code GuardamElnagdy/guard-skills1.3k2 repos~4.3kAutomated safety check: PassMIT
Archify Reviewtt-a1i/archify79k—~415Automated safety check: PassMIT

Similar skills

  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Skill Doli Code Review

    Dolibarr/dolibarr

    Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.

    7.7k GitHub starsUsed in 1 repo~1.1k tokens
    DevelopmentAuto-check passed
  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    68k GitHub stars~1.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Clean Code Guard

    amElnagdy/guard-skills

    Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.

    1.3k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • Archify Review

    tt-a1i/archify

    Review Archify issues, PRs, or code through value, cost, and impact to support evidence-based maintenance decisions. Use for issue triage, change reviews, and…

    79k GitHub stars~415 tokensUpdated today
    DevelopmentAuto-check passed
  • Code Review Skill

    awesome-skills/code-review-skill

    Provides comprehensive code review guidance for React 19, Vue 3, Angular 17+, Svelte 5, Rust, TypeScript, Java, Java 8, PHP, Ruby, Rails, Python, Django, FastAPI, Go, C/.NET, Kotlin, Swift, Dart…

    2.1k GitHub stars~2.8k tokensUpdated 29 days ago
    DevelopmentAuto-check: notes

More from romiluz13/cc10x

All 22 skills in this repo
  • Diff Driven Docs

    romiluz13/cc10x

    A skill your agent uses when a BUILD phase completes, a commit is staged, or a PR is about to be created, and the diff has not yet been reflected in documentation.

    164 GitHub stars~2.7k tokensUpdated 7 days ago
    Auto-check: notes
  • Cc10x Guide

    romiluz13/cc10x

    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 troubleshoot.

    164 GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed
  • Cc10x Router

    romiluz13/cc10x

    THE ONLY ENTRY POINT FOR CC10X. An agent skill from romiluz13/cc10x.

    164 GitHub stars~17k tokensUpdated 7 days ago
    Auto-check passed
  • Codebase Design

    romiluz13/cc10x

    Canonical 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…

    164 GitHub stars~1.9k tokensUpdated 7 days ago
    Auto-check passed
  • MCP CLI

    romiluz13/cc10x

    A skill your agent uses when you need a one-off MCP server capability during research or debugging without permanently mounting it as a context-polluting integration.

    164 GitHub stars~739 tokensUpdated 7 days ago
    Auto-check: notes
  • A skill your agent uses when a git merge or rebase reports conflicts and the operation is in progress.

    164 GitHub stars~709 tokensUpdated 7 days ago
    Auto-check: notes

Categories

Questions about Code Review

What does Code Review do?

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…. Code Review is an agent skill from romiluz13/cc10x. 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.

When should I use Code Review?

Code Review fits situations like: tasks that involve Code review; tasks that involve Code quality.

How do I install Code Review in Claude Code?

Run `npx skills add romiluz13/cc10x --skill code-review -a claude-code`. Or copy the skill folder (plugins/cc10x/skills/code-review in romiluz13/cc10x) into .claude/skills/code-review in your project. Claude Code loads it when a task matches its description.

How do I install Code Review in Codex?

Run `npx skills add romiluz13/cc10x --skill code-review -a codex`. Or copy the skill folder (plugins/cc10x/skills/code-review in romiluz13/cc10x) into .agents/skills/code-review in your project. Codex loads it when a task matches its description.

Can I use Code Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add romiluz13/cc10x --skill code-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-review, .gemini/skills/code-review, .github/skills/code-review and .opencode/skills/code-review in your project.

What does Code Review need to run?

Going by SKILL.md and its folder, Code Review needs the command-line tools its instructions call (gh). Its frontmatter pre-approves these tools: Read, Grep, Glob, LSP, Bash.

Does Code Review access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Code Review safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Code Review use?

Code Review is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Review use?

About 3.3k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Code Review?

Skills that share tags, products or a category with Code Review: WooCommerce Code Review (woocommerce/woocommerce, 11k stars), Skill Doli Code Review (Dolibarr/dolibarr, 7.7k stars), Dignified Python Standards (docling-project/docling, 68k stars) and Clean Code Guard (amElnagdy/guard-skills, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Review?

romiluz13 (a GitHub user) maintains it in romiluz13/cc10x, which has 164 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on September 30, 2026.

Source: romiluz13/cc10x on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.