self-review
БесплатноБез исполняемых скриптовНе проверенVerify what you delivered since the last self-review with real runs, and review its structure
от hamr0★ 28 звёзд на GitHubОб этом скилле
Answer "verify what you delivered, what did you gloss over, what did I miss?"
about committed work since the last self-review, before /branch-review. The
orchestrator resolves the range and hands off; a spawned worker tries to
break it.
Guardrails
- Spawn one worker, mid tier stated explicitly (an omitted tier inherits the parent's; never a vendor model name), and hand it this file's path — a worker has no skill text of its own. It does the work itself: no sub-spawning, every command it cites is one it ran. Escalate, never assume.
- Ask and surface only. Never fixes anything. The user picks.
1. Orchestrator — resolve the range, then hand off
Dirty tree first: git status --porcelain prints any line → stop: the
tree is dirty (list the paths), /self-review reviews commits not the working
tree, commit then re-run. No worker spawned.
Decide REUSE or RUN now, once: run this line as printed and print its output; it stays valid for the whole run (this command commits nothing). Pass that exact output line to the worker in its brief.
f=.amp/remember/last-review.md; g=$(sed -n 's/^green: \([0-9a-f]\{40\}\) .*/\1/p' "$f" 2>/dev/null); c=$(git diff --name-only "$g" HEAD 2>/dev/null | grep -vE '^(docs/|[^/]+\.md$)'); if [ -z "$g" ]; then echo "RUN (no green: line)"; elif ! git merge-base --is-ancestor "$g" HEAD 2>/dev/null; then echo "RUN (green $(printf %s "$g" | cut -c1-7) not an ancestor of HEAD)"; elif [ -z "$c" ]; then echo "REUSE $(grep '^green: ' "$f")"; else echo "RUN (green $(printf %s "$g" | cut -c1-7), changed: $(printf '%s\n' "$c" | paste -sd' ' - | cut -c1-200))"; fi
Hashes or a range given ($ARGUMENTS: one or more hashes, or <a>..<b>)
→ review exactly those commits, nothing else, on any branch: each hash via
git show <sha>, a range via git log <a>..<b> and git diff <a>..<b>.
Validate each hash, and both ends of a range, with
git rev-parse --verify <x>^{commit}; reject anything starting with -.
Hash/range mode never rewrites self-review-sha:.
Neither → on main/master, stop and ask for hashes or a range.
Otherwise the bookmark is one line, self-review-sha:, in /branch-review's
record (/self-review is its only writer):
grep '^self-review-sha:' .amp/remember/last-review.md || grep '^debrief-sha:' .amp/remember/last-review.md
No self-review-sha: line → the old debrief-sha: name, once; the new name
wins if both exist. Fails either check, starts
with -, or the third exits 0 (an ancestor of main's merge-base is from an
already-merged branch) → no bookmark:
git rev-parse --verify <sha>
git merge-base --is-ancestor <sha> HEAD
git merge-base --is-ancestor <sha> $(git merge-base main HEAD)
Valid (third command exits non-zero) → range <sha>..HEAD. No bookmark →
whole branch, git merge-base main HEAD..HEAD. Range empty → "nothing new
since the last self-review," stop, no worker spawned. Otherwise hand off —
the decider line above, what was done, claims made (works / tested / done), files changed, the
baseline suite totals if known (unverified when the baseline is from an older sha that was not re-run), loose ends only you can know (a peer session
not told, a silent open question, unshipped state) — and spawn one mid-tier
worker.
2. Worker — try to break it, not confirm it
Real runs, not re-assertion, scoped to the range for cleanup/glossed/ underspecced:
- Does it work? Run the thing and targeted checks for what changed now, never the full suite; cite the command and numbers.
- Run tests bare, never piped:
<test command> > /tmp/out 2>&1; echo "exit $?"— read the code from that line, then the totals from /tmp/out. - No regression? Use the decider line the orchestrator passed in your brief; never run the decider yourself, never decide. Gate rule per
DEV_RULES:REUSE …→ cite it (green sha and totals), no full run;RUN (…)→ run the FULL suite once, copy the printed reason into thefull-suite:line (never write your own), cite totals vs. the handoff baseline, and a failure that passes when run alone is re-run alone before it is called real. No run behind a claim counts as not checked. - Cleanup? Check the diff against the
DEV_RULESblock in the repo's agent config file; cite the rule each finding breaks, withfile:line. Repo rules win; skip anything a linter or test already enforces; a smell is labelled "possible …", never a hard violation. Smells: middle man (a function that only forwards to another), shotgun surgery (one change scattered over many files — a missing shared piece), mysterious name. Copied or duplicate code is areuse:item, not middle man. Dead code — grep the symbol repo-wide before flagging. Reuse: every new function or class gets areuse:entry. An old duplicate the diff didn't introduce → suggest/refactor duplicates; a reuse item whose fix is a merge goes there too, never to ledger mode (it refuses behaviour cha
Установить self-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobEditWriteAgentBash(git diff:*)Bash(git status:*)Bash(git log:*)Bash(git show:*)Bash(git rev-parse:*)Bash(git merge-base:*)FAQ
Что делает скилл self-review?
Verify what you delivered since the last self-review with real runs, and review its structure
Как установить скилл self-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл self-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic