self-review
Skill2 starsChanged 14 days agoMITView on GitHub
Review the user's own change before it goes to a pull request - run the Atlas (with context) and Spock (without context) reviewers on the working tree or the branch, verify their findings, rank them P0 to P4, fix what must be fixed, and repeat until a round comes back clean on the final state. Use when the user asks to review their own work, to run the two-reviewer loop, to ask Atlas and Spock, or to check a change before a commit or a pull request.
60 other projects use a version of this.
Adopted by
Most recently taken up by
- halkn/skillstheir own version, first seen Nov 29, 2026
- zehuichan/vibe-harnesstheir own version, first seen Nov 29, 2026
- dagonet/claude-code-toolkittheir own version, first seen Nov 29, 2026
- rupakc/schemagurutheir own version, first seen Nov 29, 2026
- crbnos/carbontheir own version, first seen Nov 29, 2026
- sektek/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use novelty-assessment, paper-compilation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
lingzhi227Skillnovelty-assessment
Assess research idea novelty through systematic literature search. Multi-round search-evaluate loops with harsh critic persona. Binary novel/not-novel decision with justification. Use before committing to a research direction.
Also in 4 projects that use this
lingzhi227Skillpaper-compilation
Compile LaTeX papers to PDF with automatic error detection, chktex style checking, and citation/reference validation. Runs the full pdflatex + bibtex pipeline. Use when the user wants to compile a paper, fix compilation errors, or debug LaTeX.
Also in 4 projects that use this
michaelboedingSkillslide-generation
Use this skill to create presentation slides from structured content. Triggers: "create slides", "generate presentation", "make powerpoint", "create pptx", "build slides", "presentation from content", "slide deck", "slides for" Outputs: PPTX files, Markdown slides, or HTML presentations. Used by: pitch-deck-agent, market-researcher-agent, and other agents needing slides.
Also in 4 projects that use this
FracteraSkillask-element
Work skill. The architect wants an element of this node to check or find out something and you to bring the answer («попроси template проверить …», «узнай у auth …»), or wants you to start or close an element's agent yourself. Also when «агент элемента … сообщил, что закончил (надзор …)» wakes you after such a task.
Also in 3 projects that use this
FracteraSkillaudit-broken-characters
Scan the whole project for BROKEN / REPLACEMENT characters in localized text — a control byte (e.g. 0x13) or U+FFFD or mojibake left where an accented letter belonged, which renders as a box (e.g. "Documentación" showing "Documentaci□n"). Use when the owner reports a square / wrong glyph in the UI or content, says "broken character", "weird symbol", "mojibake", "validate encoding", or after authoring multilingual content and before closing a content step. It SHIPS SILENTLY (the file still parses), so run the audit to catch it. One project-root script, nothing external needed.
Also in 3 projects that use this
- +3 more from lingzhi227
- +4 more from Fractera
Other versions60 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 60
- huggingface/diffusers★ 35ksame name
- zulip/zulip★ 26ksame name
- flashinfer-ai/flashinfer★ 7ksame name
- unkeyed/unkey★ 5.5ksame name
- crbnos/carbon★ 2.9ksame name
- verl-project/verl-omni★ 1.6ksame name
- K9i-0/ccpocket★ 1.1ksame name
- anyproto/anytype-swift★ 525same name
- hegeldev/hegel-rust★ 400same name
- lingzhi227/agent-research-skills★ 350same name
50 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- messageSkill
- pr-answerSkill
- pr-openSkill
- pr-recheckSkill
- pr-reviewSkill
- pr-watchSkill
- releaseSkill
- smoke-testSkill
- statusSkill
- story-startSkill
- story-writeSkill
- worklogSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 50 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Use the scope the user asked for: "only what we changed this time" is the latest change.
- Distinctive: line 58
read the working tree in place.
- Very specific: line 63
If atlas/spock are not registered as agent types in the session, launch general-purpose agents with the body of .claude/agents/atlas.md / …
- Distinctive: line 101
If anything was changed in step 4, the round is not the last one: go back to step 1 with fresh reviewers and the new state.
- Distinctive: line 105
If round 3 still brings new P0 to P2 findings, stop and tell the user before going on: either the change is too large to converge and …
- Very specific: line 113
Do not commit. Go on to pr-open now, without being asked: it shows what will be committed and stops there for the user's approval.
“Common” is measured: kept by at least 6 in 10 of the 50 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Self-review loop
Review the user's own change in $ARGUMENTS (default: everything on the current branch that is not on the base branch, plus uncommitted work) with two independent reviewers, and repeat until it is clean. For someone else's pull request use pr-review.
Rules that hold for the whole loop
- Tests first. The loop starts when the tests cover the change and pass. If they do not, say so and finish that before launching reviewers. A failure that
project.mdlists as coming from the machine, not the code, does not block: name it and go on. - Any code change restarts the loop. A fix can break something else, so after every set of fixes the tests and both reviewers run again, on the new state. This includes small fixes for P3 and P4 findings.
- The review must cover the final diff. Record the state the reviewers were given (step 1) and compare it when they report. If anything changed in between, that round does not count for the changed part: say so and run it again. Never describe a change made after the last review as reviewed.
- Fresh reviewers every round. Launch new agents each time; do not continue the previous ones. A reviewer that remembers its last report anchors on it.
- Keep the asymmetry. Atlas gets the context; Spock gets only where the change is. Never give Spock the goal, the design or the test results, even when there is little context to give.
- The reviewers never edit. They read the working tree in place and write probes only in their own scratchpad folder. Only the main session changes code.
- The golden rule holds: nothing is committed, pushed or published as part of this skill.
- Talk to the user in their language, tables included.
1. Define what is under review, and record it
Use the scope the user asked for: "only what we changed this time" is the latest change; otherwise the whole branch.
git status --short
git log --oneline origin/<base>..HEAD
git diff origin/<base>...HEAD --stat # committed on the branch
git diff --stat; git diff --cached --stat # uncommitted
( export GIT_INDEX_FILE="$(git rev-parse --absolute-git-dir)/review-index"; git read-tree HEAD && git add -A && git write-tree; rm -f "$GIT_INDEX_FILE" ) # the state under reviewKeep the last value: the state hash. It is the identity of every file in the working tree as it is now, tracked or new (ignored files excluded), computed in a temporary index so the real one is untouched. It identifies exactly what the reviewers saw, it does not change when the same content is committed, and it does change when any file is edited, including a new file that was never added. Run it from Bash, always the same way. Name the untracked files that belong to the change for the reviewers, since git diff does not show them.
When two state hashes differ and it is not clear why, git diff --name-status <old hash> <new hash> lists the files that changed between them. If a test run alone changes the hash, the tests are writing files that are not ignored (caches, snapshots): add them to .gitignore, or no round can end on the state it started from.
State the scope to the user in one line (for example "branch against main: 6 files, plus 2 uncommitted files").
2. Brief the reviewers
Launch atlas and spock in parallel, in the background, in one message.
Atlas gets:
- where the change is (the exact
git diffcommands and the untracked files); - the goal of the change, the story it serves and what "done" means;
- the decisions already taken in the conversation and why, so it does not reopen them;
- what was tested and how, with the results, and what was not tested;
- what the project memory,
CLAUDE.mdand.claude/project.mdsay about the system and its conventions; - what to look for beyond bugs: deviation from the patterns the code already uses, changes to a contract that existing callers rely on, behaviour that breaks only at run time, and whether the change does what the story asks and no more;
- the specific risks you want checked;
- from round 2 on: the findings of earlier rounds that the user decided not to fix, with the reason, so it does not raise them again.
Spock gets:
- where the change is, and nothing else about it.
Both get:
- read the working tree in place; never edit, stage, stash, checkout or commit;
- how to run the tests (the project's command), and that tests may be run in place only if they do not write into the repository beyond caches and do not call a paid or shared environment; anything else runs on a copy of the working tree made in the probe folder (a plain copy of the files:
git archivewould leave out uncommitted work); - their own probe folder for this round,
<scratchpad>/probes/atlas-r<round>and<scratchpad>/probes/spock-r<round>: create and delete files only there; - the report format: findings by severity, each with
path:line, a concrete failure scenario, reproduced or reasoned, and (Atlas) the recommended fix; then what was checked and found sound.
If atlas/spock are not registered as agent types in the session, launch general-purpose agents with the body of .claude/agents/atlas.md / spock.md inlined.
While they run, do not change the code under review, do not review the same code yourself, and never predict their results.
3. Verify and rank the findings
The reports are leads. For each finding, open the code and confirm it; reproduce it when that is cheap. Drop what cannot be confirmed, saying why in one line. Then give each confirmed finding a priority:
| Priority | Meaning | What happens |
| P0 | Data loss, a security hole, or the change cannot be deployed | Fixed, always |
| P1 | Wrong result or a crash in a case that will happen | Fixed, always |
| P2 | Wrong result or a crash in a case that can happen, or a broken contract for an existing caller | Fixed, always |
| P3 | A real weakness with low impact: an unlikely edge case, a missing test, a misleading name or comment | Fixed when the fix is small and safe; otherwise listed with a recommendation |
| P4 | Polish | Fixed only when trivial; otherwise listed |
A P0 to P2 finding whose fix would change the agreed behaviour, the scope or a decision already taken is not fixed silently: it goes to the user as a decision, with options.
A finding Spock raises again although the user already declined it is not shown as new.
Note where both reviewers reached the same finding independently: that is the strongest signal.
4. Fix, then report the round
Fix the P0 to P2 findings without asking, and the P3 and P4 ones that are small and safe. Run the tests. Then report the round with this table, in the user's language:
| P | Problem | Resolved? | How it was fixed, or how to fix it |
| P1 | short description, with path:line | yes / no / needs a decision | one line |
After the table:
- your opinion on each item left unresolved: fix now, leave for another story, or not worth doing;
- decisions needed from the user, as labelled options with a recommendation;
- what both reviewers checked and found sound;
- the test results.
5. Repeat
If anything was changed in step 4, the round is not the last one: go back to step 1 with fresh reviewers and the new state. Keep a short log of each round: findings, what was fixed, what was declined and why.
The loop ends when a round brings no confirmed finding that leads to a change, on a state that is identical to the one recorded in step 1 of that round.
If round 3 still brings new P0 to P2 findings, stop and tell the user before going on: either the change is too large to converge and should be split, or the fixes are causing the new findings.
6. Close
Report: the number of rounds, what was fixed in each, what was left and why, the final test results, anything that was never run, and the state hash that the clean round covered. Suggest a one-line commit message.
Record the clean state so it survives the session: python .claude/skills/worklog/scripts/worklog.py mark <task id> review_clean --note "<state hash>". pr-open compares the current state with the latest such mark.
Do not commit. Go on to pr-open now, without being asked: it shows what will be committed and stops there for the user's approval. (When this review was run from pr-answer, go back to that skill instead.)
Timing
Record the stage changes of the task in the worklog: python .claude/skills/worklog/scripts/worklog.py start <task id> self_review when the reviewers are launched, and ... start <task id> development when a round sends the work back to code. See the worklog skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

