Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of X Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ttstack-x-review)
---
name: x-review
description: Inspect a selected Git scope and report evidence-backed defects. Use only when the user explicitly invokes $x-review.
---
# Review a change
Before preflight, read `.agents/skill-rules/common.md` and then
`.agents/skill-rules/x-review.md` from the Git root if present.
Use the skill-specific rules for repository details such as checks or release
criteria. Apply them within the selected scope and the user's authorization.
Continue with the available rules when either file is absent.
Keep the checkout, index, refs and every tracked file other than the findings
registry read-only. If verification needs to generate files, use a disposable
snapshot.
## Record the findings
The findings registry (`docs/audit.md` unless the project instructions name
another) is the deliverable, not a note appended to one. Complete these steps
before writing the response:
1. Open the registry and use the entry format it already uses.
2. Append every confirmed finding to `Open`, deduplicated by root cause, ordered
by severity.
3. Recheck the existing entries the scope covers. Keep a disposition that still
holds, revise one whose basis changed, and remove an entry whose defect no
longer reproduces.
4. Preserve unrelated entries and the file's structure.
Say in the response which entries you added, revised or removed. When the
repository has no registry, keep the findings in the response and do not create
one. This edit is the only change a review makes; never commit it.
## Select the scope
Accept at most one scope argument. Reject options, invalid revisions and counts
outside the available first-parent history. Record the starting HEAD and Git status.
When the requested scope cannot be honored exactly, stop before any review work.
Do not substitute a different scope, clamp a count, widen to the whole history,
or pick a nearby revision. Report the rejection with the evidence (`git rev-parse
--verify --end-of-options`, `git rev-list --first-parent --count HEAD`), the
available valid scopes, and that no findings were produced. A completed review
always covers the scope that was asked for, never a stand-in for it.
| Scope | Snapshot and comparison |
|---|---|
| Omitted or one revision | Compare the commit with its first parent, using the empty tree for a root commit. |
| Positive integer N | Select the last N commits on the first-parent chain. Compare HEAD with the first parent of the oldest selected commit, or the empty tree if that commit is the root. |
| A..B | Inspect the endpoint diff and use the range log for context. |
| staged | Inspect the index diff. Read full files and verify callers and tests from the index snapshot. |
| worktree | Inspect the diff against HEAD and the intended untracked files. |
| all | Inventory tracked paths and inspect their current working-tree contents, accounting for pending deletions. |
Resolve revisions as commits with `git rev-parse --verify --end-of-options`
and a quoted commit expression. Use the repository's scope conventions for
ambiguous numeric names. For a count, `git rev-list --first-parent --count HEAD`
gives the available history. A count N is valid when 1 ≤ N ≤ that count. When N
equals the count, compare against the empty tree only if the oldest selected
commit is genuinely parentless; a truncated clone makes that revision a shallow
boundary that still records a parent, so stop and report instead of widening the
diff to every file. When N exceeds the count, the requested scope does not exist
and the review stops per the rule above. For a historical selection, distinguish
a still-present regression from one already repaired at HEAD.
## Review and report
Read the owning contracts, implementations, callers and tests in the selected
snapshot. Check reachable boundary and failure paths, concurrency and public
or persisted compatibility where relevant. Test each candidate against existing
guards and caller obligations. For a full review, track coverage and identify
any gaps.
Group findings by root cause and order them by impact. Give the location, the
trigger, the observed or traced outcome, and the evidence that distinguishes
it from correct behavior. Reference existing audit IDs when applicable.
Report the scope, checks performed and remaining limits, including when no
confirmed findings remain.