skills/deep-review/SKILL.md
Performs deep code review via an isolated fresh agent (anti-bias). Works in two modes - ticket mode (reads ticket + plan, invoked by /resolve step 08) and standalone mode (reviews the current working diff with no ticket, for changes made outside a ticket flow). Use when the user asks for an in-depth review of current changes. Do NOT use for reviewing PRs from GitHub (use review-pr skill instead) or for a quick correctness scan with effort levels (use bundled /code-review instead).
npx skillsauth add nicolas-codemate/claudecodeconfig deep-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Orchestrates code review by delegating to an isolated code-reviewer agent.
The review MUST be performed by a fresh agent with NO prior conversation context. This prevents confirmation bias - an agent that participated in the implementation unconsciously validates its own approach instead of questioning it.
<constraints> - Do not review the code yourself in the current context — confirmation bias from "having seen" the implementation is exactly what we're guarding against. - Delegate to an Agent (`subagent_type: "code-reviewer"`). - The agent receives only self-contained context (diff, conventions, and — in ticket mode — ticket and plan). No conversation history, no implementation reasoning, no debugging context. - The agent prompt must be fully self-contained (all text inline, no file paths to read). - Display the agent's review report verbatim — do not filter or soften findings. </constraints>The skill runs in one of two modes, decided by whether a ticket is in scope:
--ticket <id> is passed, OR the conversation is already anchored to a ticket (e.g. invoked by /resolve). The agent is given the ticket and plan so it can judge the change against its intent.If it is ambiguous which mode applies and there is no ticket context, default to standalone mode — do not fabricate or hunt for a ticket.
Required context (gathered by YOU, passed inline to the agent):
ticket.md text) — ticket mode only.plan.md text) — ticket mode only.Read project CLAUDE.md from project root -> PROJECT_RULES.
Determine the diff to review:
Ticket mode:
git diff {base-branch}...HEAD
git diff {base-branch}...HEAD --stat
Standalone mode: review everything that differs from the base branch, including uncommitted work (the point is to validate what was just changed, which may not be committed yet).
--base if given, else the repo default branch
(git symbolic-ref refs/remotes/origin/HEAD → strip prefix; fallback main, then master).git diff {base-branch}...HEADgit diff HEADgit diff HEAD.git status --short so the agent knows about untracked files it should flag if relevant.DIFF_CONTENT and a matching DIFF_STATS (--stat on the same ranges). If the combined diff is empty, tell the user there is nothing to review and stop.Ticket mode only: read ticket from .claude-work/{ticket-id}/ticket.md -> TICKET_CONTENT, and plan from .claude-work/{ticket-id}/plan.md -> PLAN_CONTENT.
Build the prompt from the blocks you gathered. In standalone mode, omit the <ticket> and <implementation_plan> blocks entirely and include the <no_ticket> note instead.
Agent:
subagent_type: code-reviewer
description: "Fresh code review {ticket-id or 'working diff'}"
prompt: |
You are reviewing code changes with fresh eyes.
You have NO prior knowledge of this implementation.
# Ticket mode includes these two blocks:
<ticket>
{TICKET_CONTENT}
</ticket>
<implementation_plan>
{PLAN_CONTENT}
</implementation_plan>
# Standalone mode includes this block instead:
<no_ticket>
There is no ticket or plan for this change — it was made outside a ticket flow.
Do not speculate about intent or invent acceptance criteria. Review the diff on
its own merits: correctness, regressions, and adherence to the project conventions
below. Flag anything that looks unfinished or inconsistent with the surrounding code.
</no_ticket>
<project_conventions>
{PROJECT_RULES}
</project_conventions>
<diff_stats>
{DIFF_STATS}
</diff_stats>
<diff>
{DIFF_CONTENT}
</diff>
Perform a complete code review following your review process.
Return the full review report in markdown format.
Display the review report returned by the agent verbatim.
.claude-work/{ticket-id}/review.md.From .claude/ticket-config.json (applies to ticket mode; standalone mode ignores it):
{
"review": {
"enabled": true,
"auto_fix": false,
"severity_threshold": "important",
"block_on_critical": true
}
}
pending: Review not yet startedin_progress: Review in progresscompleted: Review finished successfullyskipped: Review skipped (disabled or no implementation)failed: Review encountered an errorInvoked by /resolve workflow (step 08-review, always ticket mode), or directly by the user in either mode.
development
Method to diagnose and raise the Lighthouse performance score of a public page (landing, marketing, home). Use when asked to improve Lighthouse/PageSpeed scores, when auditing the first uncached paint of a public page, or when a landing embedded in a SPA must reach a top score. Do NOT use for in-app screen performance (data loading, rendering). For a brand-new landing, the first recommendation is static HTML with no framework runtime — most of this skill exists for when that is not an option.
tools
Audits a project's Claude Code setup against real usage — mines the project's conversations (worktrees included), confronts the project's skills/agents/CLAUDE.md with best practices, and proposes adjustments or new skills/agents/rules. Use when the user asks to audit the project config, analyze project conversations, or find automation opportunities for the current project. Do NOT use for the global ~/.claude configuration (use /audit-config instead).
development
Coaching workflow orchestrator. Guides the developer through implementation without writing code.
development
Disciplined methodology for code architecture refactoring. Use when the user asks to refactor architecture, decouple code, restructure a family of classes, redesign an interface, or rename/reorganize a set of related components. Forces a big-picture analysis before any code is written. Do NOT use for simple bug fixes, feature additions, or single-file refactoring.