Expert Review
Invoke as $expert-review.
Use this skill when the user wants a code review of the whole project or a specific path, with findings validated against project documentation.
Process
- Gather project context:
- Read CLAUDE.md, README, and project config to understand conventions.
- Search for and read specs (
specs/, spec.md, docs/), changelogs (CHANGELOG.md, tasks/history.md), ADRs, interview logs (*-__interview.md__), and design docs.
- Read
tasks/roadmap.md if it exists to understand the full plan. Read tasks/todo.md for current phase and in-progress work. Read tasks/manual-todo.md (if it exists) for pending manual tasks. Read tasks/record-todo.md and tasks/recurring-todo.md (if they exist) for advisory context only.
- Build a mental model of intentional decisions and documented trade-offs.
- If the user provides a file or directory, scope the review there. Otherwise review the repository broadly.
2a. With
--adversarial-diff, review the integrated diff and relevant surrounding code against the goal, plan, specifications, and verification evidence from a fresh context that did not implement or integrate the change.
2b. With --read-only, do not modify repository files, task documents, prompt history, alignment pages, the index, branches, commits, refs, or external state. This overrides every mutation-producing instruction in this skill, its Alignment Page and Default Shipping Contract conventions, project task-management rules, and prompt-history capture for the delegated invocation. Sol must capture any required delegation prompt/history before Terra starts. Delegated Terra review requires both flags and follows docs/codex-accountable-agent-workflow.md.
- Read enough of the codebase to understand the architecture before critiquing it.
- Review against these dimensions:
- Correctness
- Security
- Performance
- Architecture
- Error handling
- Code quality
- Testing
- Dependency risks
- Spec conformance — code that diverges from documented specs or design decisions
- Cross-reference each finding against documentation before reporting:
- If a pattern is an intentional documented decision, do not report it as an issue — list it under "Documented decisions" instead.
- If code diverges from a spec, flag it as a spec conformance issue.
- Verify findings (false-positive filter):
- Re-read the actual source code for every finding. Confirm: the code behaves as claimed, the issue isn't handled elsewhere (guard clause, middleware, caller), flagged dependencies actually exist/are missing, and "missing" test coverage isn't in a different test file.
- Drop any finding you cannot re-confirm on second read. If uncertain, downgrade to Low with a note that it needs manual verification.
Output
Report findings grouped by severity:
- Critical: bugs, security issues, data-loss risks
- High: major performance, architecture, or error-handling problems
- Medium: maintainability or testing gaps with real impact
- Low: worthwhile improvements with limited risk
- Spec conformance: where code diverges from documented specs, with document reference
- Documented decisions (no action needed): patterns that look like issues but are intentional
- Positive observations: strong patterns worth preserving
In delegated Terra mode, every non-stylistic finding also includes a stable ID, file and line evidence, impact/failure mode, recommended remediation, verification method, and high|medium|low confidence. Report no findings explicitly when none survive verification.
Follow-Through
After presenting findings, write Critical and High implementation fixes to tasks/todo.md under a ## Code Review Fixes heading (append or replace existing section), except when --read-only is active. One checkbox per finding with file:line and recommended fix. Do not add Medium/Low items. If a Critical/High observation is a non-blocking future validation or condition-gated measurement rather than a fix, write it to tasks/record-todo.md with source, condition, non-blocking reason, evidence, and promotion rule. Suggest $exec or $investigate to start fixing concrete work.
Constraints
- Include concrete file and line references for each finding when possible.
- Every finding should include a specific recommended fix.
- Do not fill the review with style nitpicks.
- Never flag an intentional design decision as an issue. Respect documented trade-offs.
- If no project documentation exists, note the absence and recommend establishing specs or ADRs.
Alignment Page
Follow the shared alignment-page convention via the packaged convention resolver; output path is alignment/expert-review-{topic}.html.
Skip alignment-page creation when --read-only is active.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
Skip all shipping, commit, push, task-document, and prompt-history mutations when --read-only is active.
1---2name: expert-review3description: Conduct a thorough project-wide code review as an expert panel, cross-referencing specs, changelogs, and design documents4type: review5version: v0.26argument-hint: "[path] [--adversarial-diff] [--read-only]"7required_conventions: [alignment-page]8metadata:9 source: https://skillmd.com/skills/georgeqle/expert-review10---1112# Expert Review1314Invoke as `$expert-review`.1516Use this skill when the user wants a code review of the whole project or a specific path, with findings validated against project documentation.1718## Process19201. Gather project context:21 - Read CLAUDE.md, README, and project config to understand conventions.22 - Search for and read specs (`specs/`, `spec.md`, `docs/`), changelogs (`CHANGELOG.md`, `tasks/history.md`), ADRs, interview logs (`*-__interview.md__`), and design docs.23 - Read `tasks/roadmap.md` if it exists to understand the full plan. Read `tasks/todo.md` for current phase and in-progress work. Read `tasks/manual-todo.md` (if it exists) for pending manual tasks. Read `tasks/record-todo.md` and `tasks/recurring-todo.md` (if they exist) for advisory context only.24 - Build a mental model of intentional decisions and documented trade-offs.252. If the user provides a file or directory, scope the review there. Otherwise review the repository broadly.262a. With `--adversarial-diff`, review the integrated diff and relevant surrounding code against the goal, plan, specifications, and verification evidence from a fresh context that did not implement or integrate the change.272b. With `--read-only`, do not modify repository files, task documents, prompt history, alignment pages, the index, branches, commits, refs, or external state. This overrides every mutation-producing instruction in this skill, its Alignment Page and Default Shipping Contract conventions, project task-management rules, and prompt-history capture for the delegated invocation. Sol must capture any required delegation prompt/history before Terra starts. Delegated Terra review requires both flags and follows `docs/codex-accountable-agent-workflow.md`.283. Read enough of the codebase to understand the architecture before critiquing it.294. Review against these dimensions:30 - Correctness31 - Security32 - Performance33 - Architecture34 - Error handling35 - Code quality36 - Testing37 - Dependency risks38 - Spec conformance — code that diverges from documented specs or design decisions395. Cross-reference each finding against documentation before reporting:40 - If a pattern is an intentional documented decision, do not report it as an issue — list it under "Documented decisions" instead.41 - If code diverges from a spec, flag it as a spec conformance issue.426. Verify findings (false-positive filter):43 - Re-read the actual source code for every finding. Confirm: the code behaves as claimed, the issue isn't handled elsewhere (guard clause, middleware, caller), flagged dependencies actually exist/are missing, and "missing" test coverage isn't in a different test file.44 - Drop any finding you cannot re-confirm on second read. If uncertain, downgrade to Low with a note that it needs manual verification.4546## Output4748Report findings grouped by severity:4950- Critical: bugs, security issues, data-loss risks51- High: major performance, architecture, or error-handling problems52- Medium: maintainability or testing gaps with real impact53- Low: worthwhile improvements with limited risk54- Spec conformance: where code diverges from documented specs, with document reference55- Documented decisions (no action needed): patterns that look like issues but are intentional56- Positive observations: strong patterns worth preserving5758In delegated Terra mode, every non-stylistic finding also includes a stable ID, file and line evidence, impact/failure mode, recommended remediation, verification method, and `high|medium|low` confidence. Report `no findings` explicitly when none survive verification.5960## Follow-Through6162After presenting findings, write Critical and High implementation fixes to `tasks/todo.md` under a `## Code Review Fixes` heading (append or replace existing section), except when `--read-only` is active. One checkbox per finding with file:line and recommended fix. Do not add Medium/Low items. If a Critical/High observation is a non-blocking future validation or condition-gated measurement rather than a fix, write it to `tasks/record-todo.md` with source, condition, non-blocking reason, evidence, and promotion rule. Suggest `$exec` or `$investigate` to start fixing concrete work.6364## Constraints6566- Include concrete file and line references for each finding when possible.67- Every finding should include a specific recommended fix.68- Do not fill the review with style nitpicks.69- Never flag an intentional design decision as an issue. Respect documented trade-offs.70- If no project documentation exists, note the absence and recommend establishing specs or ADRs.717273## Alignment Page7475Follow the shared alignment-page convention via the packaged convention resolver; output path is `alignment/expert-review-{topic}.html`.7677Skip alignment-page creation when `--read-only` is active.7879## Default Shipping Contract8081Follow the shared shipping contract convention in CLAUDE.md.8283Skip all shipping, commit, push, task-document, and prompt-history mutations when `--read-only` is active.