expert-review
Conduct a thorough project-wide code review as an expert panel, cross-referencing specs, changelogs, and design documents
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- expert-review
- type
- review
- version
- v0.1
- description
- Conduct a thorough project-wide code review as an expert panel, cross-referencing specs, changelogs, and design documents
- required_conventions
- [ "alignment-page" ]
03 SKILL.md 正文
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.mdif it exists to understand the full plan. Readtasks/todo.mdfor current phase and in-progress work. Readtasks/manual-todo.md(if it exists) for pending manual tasks. Readtasks/record-todo.mdandtasks/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.
- 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
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). 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.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.