一键导入
x-review
Deep regression review of MMDB changes or the full repository. Use only when the user explicitly invokes /x-review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deep regression review of MMDB changes or the full repository. Use only when the user explicitly invokes /x-review.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Review, fix, validate, and commit MMDB worktree changes as atomic commits. Use only when the user explicitly invokes /x-commit.
Resolve the MMDB audit backlog sequentially, with one finding per validated local commit. Use only when the user explicitly invokes /x-fix.
Audit the full MMDB repository, resolve every finding safely, and create atomic local commits. Use only when the user explicitly invokes /x-overhaul.
| name | x-review |
| description | Deep regression review of MMDB changes or the full repository. Use only when the user explicitly invokes /x-review. |
| argument-hint | [N | all | staged | worktree | <hash> | <hash1>..<hash2>] [--fix] |
| disable-model-invocation | true |
Review MMDB changes with high-signal, evidence-based analysis. Source code stays
read-only unless the user supplied --fix; the normal workflow may update only
docs/audit.md. It never commits or pushes.
.claude/docs/workflow-policy.md..claude/docs/technical-patterns.md..claude/docs/review-core.md and use its Subsystem Map as the canonical
file-to-guide mapping..claude/docs/false-positive-guide.md.Arguments: $ARGUMENTS
Accept exactly one optional scope plus an optional --fix:
| Input | Scope |
|---|---|
| (empty) | Latest commit |
N | Last N commits; N must be a positive integer |
staged | Staged changes (git diff --cached) |
worktree | All staged, unstaged, and untracked worktree changes |
all | Full repository audit |
<hash> | One commit |
<hash1>..<hash2> | Exact commit range |
Validate revisions with Git before reviewing. Reject unknown, ambiguous, or extra arguments with the usage string; never guess the intended range.
--fix means apply confirmed fixes to the current worktree after reporting.
For historical scopes, first verify that each candidate still exists at the
current HEAD; never apply or register a bug that is already fixed.
workflow-policy.md.worktree, include untracked files from git status --short; Git
diffs do not show them.all, build a tracked-file ledger from src/, tests/, benches/,
build/CI configuration, public documentation, and .claude/.For a small, single-subsystem diff, review directly. Use agents only when separate context materially improves coverage:
all, partition the depth pass into disjoint subsystem batches. Every
tracked Rust source file must have one owner. Run a later cross-subsystem pass
only for interactions that a file-local pass cannot establish.Every candidate finding must include:
Discard style preferences, unsupported speculation, and findings already
covered by .claude/docs/false-positive-guide.md.
The orchestrator re-reads every candidate with full context and actively tries to refute it. Use one independent read-only verifier only when the control flow or invariant remains genuinely ambiguous; agent majority voting is not proof.
A finding survives only when its trigger and outcome can be demonstrated from the current code. Deduplicate multiple symptoms with one root cause.
For diff scopes, account for every changed file, changed public contract,
failure path, and relevant test. For all, reconcile the file ledger against
the depth-pass results and run a focused completeness critic over uncovered
files or invariants only. Do not repeat already-owned review work.
Update docs/audit.md from current-code evidence:
## Open entries in scope.## Open, deduplicated and sorted
CRITICAL → HIGH → MEDIUM → LOW.## Won't Fix entries whose files, callers, assumptions, or
subsystem intersect this review. In all mode, re-evaluate every entry.## Won't Fix with a concrete
**Reason**.## Rejected; these are not findings and have no
severity. Record only an existing or plausibly recurring claim with useful
counter-evidence; discard routine refuted candidates instead of bloating the
registry. Re-check recorded claims only when their cited code or invariant
changed.Use this shape:
## Open
### [SEVERITY] subsystem: summary
- **Where**: file:line_range
- **What**: concrete defect
- **Why**: trigger, outcome, and violated invariant
- **Suggested fix**: minimal safe direction
## Won't Fix
### [SEVERITY] subsystem: summary
- **Where**: file:line_range
- **What**: concrete defect
- **Reason**: why fixing it is currently disproportionate or unsafe
## Rejected
### subsystem: rejected claim
- **Where**: file:line_range
- **Claim**: what was alleged
- **Reason**: evidence showing why it is not a bug
Report scope, covered subsystems/invariants, and confirmed findings. For each finding, include severity, location, trigger, outcome, and fix direction. If none survive, state that plainly and list the meaningful coverage performed.
--fix only)docs/audit.md./x-commit after inspecting the resulting worktree.