AGENT SKILL

review-a-change

Review a change in this repository as a second engineer would: against its intent and spec, by reading the diff and the suite's verdict, with findings that name the file, the line and what goes wrong. For a read-only step that decides whether the work goes round again.

License 许可
MIT
所属仓库
emyann/nemia
最近更新
2026-11-15
Stars
★ 3
Forks
0

01 前言 Front Matter

name
review-a-change
description
Review a change in this repository as a second engineer would: against its intent and spec, by reading the diff and the suite's verdict, with findings that name the file, the line and what goes wrong. For a read-only step that decides whether the work goes round again.

02 资源文件 1

03 SKILL.md 正文

Review a change

  1. Know what was asked: the spec handed to you, its goal and constraints. Review the change against that, not against a change you would have made.
  2. Read the whole diff against the base (git diff <base>...HEAD, the base as your brief names it), and the tests beside it, in the first round; from the second, what changed since. Your closeout says what the round read, in read: head, the commit you reviewed (git rev-parse HEAD); first, the commit the first round reviewed; files, every file of the change you read, by path from the workspace root; and rules, each rule you checked it against, by the file that states it and its words.
    • The first round reads everything: the whole change, and lists every finding it can stand on, however small, before it signs off, since a finding a later round makes about code that was there from the start costs a round of its own. Its read.first is its own head, and each finding's missed is false.
    • A later round reads your last round's closeout.json in your own files folder first, for its read.head and read.first, and carries read.first over unchanged. Read git diff <last head>..HEAD, what the engineer changed since, and check each earlier finding against its reply (step 7). A new finding about code that was there, unchanged, at read.first is what the first round missed: mark it missed true, so the person sees it; one about code changed since is missed false. Where that closeout.json is not there, say so at the top of your summary, and take first from the replies and git log. Read a file with Read, list a folder with Glob and search with Grep; never grep or a pipe in Bash. cat, head, tail, wc, cut and ls read a file or a folder inside the workspace, and your fence refuses each one a path outside it; never sed, awk, find, sort, uniq or tee, which can write a file or run a program, nor wc --files0-from, which reads the paths a file lists. Otherwise Bash runs only the checks and reads your step names and git's read-only questions, each bare, one per call, and never a write — the change (git diff, git log, git show), the workspace (git status), a line's author (git blame), what git tracks (git ls-files), a name resolved (git rev-parse) and where a commit stands (git merge-base, git branch --contains). Search the working tree with Grep, and a revision with git grep <pattern> <rev>, the one search no tool here can do. Whether main is merged into the branch is git merge-base --is-ancestor <commit> HEAD, answered by its exit code alone, so ask it with nothing after it, never ; echo $? or && echo; git branch --contains <commit> answers in words. Read, Grep and Glob reach this workspace, by paths from its root, and each folder your brief says you may read — those the steps before you handed over — under its own path; never the run's artifacts folder above them, another run's folder, the store (~/.agent-workflows), ~/.claude, ~/.cache or a system path: your fence refuses them without asking. What your brief quotes from outside them is all you have of it.
  3. Read the check's verdict; run the checks your step names yourself: where the step before you has a check, your brief hands you its exit and the end of its output (## What <step>'s check said); a check that did not pass is a finding. Run each check your step names bare, one command per call. Never wrap one in timeout or ( … ), pipe it or redirect it; paths from the workspace root, never cd, git -C, VAR= or for: your fence refuses them. A claim you did not run or read in the check's output is not a finding.
  4. Check where each change lives, against the repository's own boundary rules — its CLAUDE.md files and any architecture document they name — and against the spec's placement and each change's where. Code in a boundary those rules give to another concern, an import across a boundary they hold, or a change built elsewhere than the spec placed it without a word, is a finding of kind placement that cites the rule.
  5. Look for what the author could not see: a behaviour the change claims and no test proves at any level; a test that passes for nothing; a caller that rebuilds a returned type field by field and drops the new one; a limit raised; a behaviour change the spec did not ask for. A rule is proven once, at the cheapest level that proves it: a second fixture over the same rule in another wording is no finding, and asking for one is how this suite grew. You read a diff and cannot run the author's experiment, so look for the shapes that pass for nothing:
    • A guard tested by asking whether it allows, never by making it refuse: it proves nothing, and guards tested that way have been silently inert. One fixture that breaks the rule is what is owed; a guard that ships with none is the finding.
    • A fixture that does not break the rule the test claims to hold — the same order, the same name — so the test would pass with the rule gone.
    • An assertion that pins a refusal's whole sentence, where the repository's own rules say its words are nobody's to check. Where the repository keeps a count of what still pins one, a new line in it is the finding, as is a line lowered while the assertions are still there.
    • A test that waits out a shipped default — a floor standing at a bound the shipped code owns, rather than at a bound the test shortened at the code's own seam: it buys a second of proof with a second of every pass.
    • A wall-clock bound, or a wait for a length of time rather than for the event being counted: it passes on the author's machine and fails under load.
    • A test that reads source text with a slice that can silently match nothing, so an assertion of absence passes for nothing.
    • An assertion on the error's whole string where it belongs on its message; a test that relies on an environment or a clock it does not set; a temporary folder taken from the operating system rather than the repository's own helper.
    • A type-aware lint fix kept unread where the guard it touched exists because a caller does not keep the type.
    • A limit's ceiling raised, or a baseline or a count that only shrinks loosened, in place of the function being cut.
    • A focused test added where a scenario already walks its story or a table already holds its function's inputs: a finding of kind test that names the scenario or the table it should join, as a checkpoint or a row. A race, a crash window, a real boundary or an invariant of a pure function is no such finding.
  6. Write each finding so the engineer can act on it alone: the file, the line, the input or case, and the wrong result; its kind, and the rule it cites, by the file that states or holds it and its words. No finding invented to look thorough, none about taste.
  7. Decide the round: again true only when a finding is worth another round of work. From the second round, read the engineer's replies first: a finding answered won't fix with a sound reason is closed. A finding you raised in an earlier round, which the engineer answered, and which you would raise again is not another round: the rounds would repeat. Sign off blocked, with needs naming each such finding, the engineer's reply, and why it still holds, for a person to settle.

04 同仓库更多 Skills

emyann
emyann/nemia

groom-the-inbox

Read each card in play in the inbox against the repository and say, per card, done (the commit on the base that landed it), replaced (the decision or card that did), stale (each fact that moved, what it said and what it says now) or standing, reading closely only what the period touched. For the janitor's step, which proposes and never acts: a person removes or amends each card by the command the check writes.

★ 3
emyann
emyann/nemia

write-a-spec

Turn an accepted intent into a spec an engineer can build from in this repository: the goal restated, the approach and why, every path it touches, the steps, the tests that prove it, the risks, and what is still open. For a step that designs a change before anyone builds it.

★ 3
emyann
emyann/nemia

read-the-stats

Read a factory's stats since the janitor's last run, against the same length of time before it, write a short report, and propose one correction per card — an allow or deny by name, a line in an agent's body or a skill, or a refusal kept on purpose — each with the numbers behind it, never one already in the inbox. For the janitor's step, which proposes and never acts.

★ 3
emyann
emyann/nemia

land-a-branch

Land a run's result on the base branch in this repository's own checkout, the way the step says it lands: make that one act, read its result, and write the message that records what landed — or change nothing and say why it refused. For a gated ending step (workspace: base).

★ 3
emyann
emyann/nemia

implement-a-change

Build a change from its spec in this repository: tests first where a rule is claimed, small commits, the tests of what changed green for the right reason, and each review finding answered in the next round. For a step that writes the code.

★ 3
emyann
emyann/nemia

trial-merge-a-branch

Stages the merge of a run's result branch in the repository's own checkout, and writes its commit message.

★ 3