AGENT SKILL

qa

Check a submitted item in reviewing in three ways at once: the verifier against the artifacts, /code-review on the diff, and the walkthrough meanwhile; then the owner's accept or a send-back, in three rounds at most. Use right after a submit, or when the owner says qa, check it, review it or 'is it done'.

License 许可
MIT
所属仓库
lamtran8401/nook
最近更新
2026-10-27
Stars
★ 0
Forks
0

01 前言 Front Matter

name
qa
description
Check a submitted item in reviewing in three ways at once: the verifier against the artifacts, /code-review on the diff, and the walkthrough meanwhile; then the owner's accept or a send-back, in three rounds at most. Use right after a submit, or when the owner says qa, check it, review it or 'is it done'.
allowed-tools
Bash(nook *), Bash(git status *), Bash(git diff *), Bash(git log *), Bash(git add -N *), Read, Glob, Grep, Write, Edit
argument-hint
[item id] [--override "<why>"]

02 资源文件 1

03 SKILL.md 正文

!nook item enter qa $ARGUMENTS

Goal: a verdict that the owner can trust, in a fixed number of rounds. A review that passes a weak result costs more than one that sends it back. The line above took the item, gave its brief with the agents of the review, and printed the craft write-walkthrough. The verdict, the grades and the evidence: rubric.md (this folder). The flow: ${CLAUDE_PLUGIN_ROOT}/flows/flow.md.

Order

  1. Read the last verify: nook item verify <id> --last. It ties to the code of now. When it is missing, failed or older than the code, run nook item verify <id> first.
  2. Start the checks in the same turn, in the background:
    • the verifier: the Agent tool with subagent_type: nook:verifier, the brief (nook item brief <id>), the folder of each area and the verify output. It checks the artifacts and marks each met criterion.
    • /code-review with the Skill tool, on the branch of each git area (nook item diff <id> names them). The effort follows the size: low for S, medium for M, high for L. A new file that git does not track yet: run git add -N <file> first.
    • an area with sensitive in nook.yml: /security-review too. It needs an origin remote.
  3. Meanwhile, write works/<id>/walkthrough.md as the craft says.
  4. Collect the findings from two places only: the gaps of the verifier against the artifacts, and the bugs and nits of /code-review. Give each finding of /code-review one tag by the rule defects: important, nit or pre-existing.
  5. An unmet criterion or an important finding: nook item reject <id> --reason "<tag>: <AC n or file:line> <what>". The tag names the defect of the rule defects, or criterion for an unmet one, such as missing test: AC 4 has no test. The metrics count the send-backs by tag. Stop. Next: /cook <id>.
  6. Nits: fix each one in place, and record it with nook item nit <id> "<the finding>" --fix "<the change>". A round holds 5 nits; a sixth finding is a defect, so reject. A nit that shows a convention of an area adds --area <a> --line "<convention>". Then run nook item verify <id> once. No new round starts for nits, and the accept lists each one.
  7. Every criterion met: report as below. An area with preview: the owner types /verify to see the app run; the model cannot start it. Say: accept: type /gate accept <id>. Stop. Next: /pr <id>, then /close <id>.

Rounds

  • A second round goes to the same verifier with SendMessage, to the id in nook notes <id>; /code-review reads only the new diff.
  • After three rounds, nook item enter qa refuses a fourth one. The owner picks: /gate replan <id> --reason "<why>" to rethink the approach, or /qa <id> --override "<why>" for one more round. Only the owner types an override.

An answer kind (spike, research or investigate): the verifier checks findings.md and its ## Results. Read ${CLAUDE_PLUGIN_ROOT}/skills/requirements/answer.md. Kind doc: the verifier reads the document as its reader does, against each criterion. Kind fix: the verifier also reads the ## Root cause of bug.md. A type that names a symptom, such as "the code is wrong", is a finding for the owner: ask what made the bug possible at its earliest point.

The report

Waits for you: accept: type /gate accept SHOP-12
Findings: 0 important, 2 nits fixed, 1 pre-existing (export.ts:31 drops the timezone; not this item).
Evidence: AC1 run (list.test.ts:42 fails on the base), AC2 run, AC3 owner: the banner on the page.
Open guesses: G2 (med) status order. Proposed ADR: 0009 filter in the query. Proposed lessons: none.
Walkthrough: works/SHOP-12/walkthrough.md.
Your turn:
  1. /gate accept SHOP-12   each criterion is met   (recommended)
  2. /gate reject SHOP-12 --reason "<why>"   send it back to the build
  3. /qa SHOP-12   check again after your own fix

Start with the count of findings, then the evidence with the weakest grade first, the open guesses, the proposed ADR and the proposed lessons. A lesson is one line that the next item can use, such as "a table header uses the words of the API". Write each proposed lesson in ## Lessons of the walkthrough too. The owner keeps a lesson at the accept: /gate accept SHOP-12 --lesson "<lesson>", once for each lesson, or a check box at the accept in nook web.

Gotchas

  • Early victory: a check that runs two tests and says "all green" checked the tests, not the criteria. Each criterion needs its own evidence that could have failed.
  • The lead is no fresh pair of eyes: it read the build. Do not skip the verifier because the diff is small.
  • A test that passes on the base (proof: weak) proves nothing. A criterion that rests on it is not met.
  • Code that no criterion asks for is an important finding even when it works.
  • A clean git status in an area that the plan changes means that the work is missing.
  • QA finds a bug after the accept, or the owner finds one in review that the story let through: the owner types /sub-bug <id> "<report>". The accept of the story waits for the sub-bug; the close too.
  • The owner asks for a small change before the accept: fix it in place, then record it with nook item change <id> "<what>" --area <a> --line "<convention>". It is no send-back. A change of substance, such as a new criterion, needs nook item replan.
  • The model starts /qa only right after a submit; else the owner types it. Never run the accept: the owner types it.

04 同仓库更多 Skills

lamtran8401
lamtran8401/nook

yolo

Run an item alone from its state to the owner's accept: the lead runs the phases, records each guess, passes the plan gate with proceed, and stops at a stop rule. Use when the owner types /yolo with an id, a prompt, or nothing.

★ 0
lamtran8401
lamtran8401/nook

write-walkthrough

Write walkthrough.md, the explanation of finished work: what works now in plain words, the changed files, where to start reading, the key code, the met criteria, how to try it, the risks. It is the source of the Walkthrough tab of the web app. Use after /qa, or for a question about the code.

★ 0
lamtran8401
lamtran8401/nook

wiki-tidy

Find what is wrong in the wiki: broken links, pages with no index line, lines too near the code, stale epic pages, topics with no source, two pages on one topic, adjectives with no example. Fix the mechanical part after one yes; list the rest. Use when the owner says tidy the wiki, or after many pages changed.

★ 0
lamtran8401
lamtran8401/nook

wiki-merge

Merge related wiki pages into one complete page: the pages of the features of one process or epic become one page with the flow from end to end. The old pages move to the archive after the owner's yes, and their links point at the new page. Use when the owner says merge these pages, or when wiki-tidy finds pages on one topic.

★ 0
lamtran8401
lamtran8401/nook

wiki-ask

Answer a question from the wiki: the index first, then only the pages whose line matches, an answer in a few lines with a link to each page. Use when the owner asks what the wiki says, or asks why or how about a known topic. Not to add a page: wiki-add.

★ 0
lamtran8401
lamtran8401/nook

wiki-add

Keep the lesson of a source in the wiki: a page in the shelf business/ or tech/ with its main points, a real example for each, the gotchas and the link of the source; written after the owner's yes. Use when the owner says add this to the wiki, keep this, or gives a PRD, a ticket, notes or an article to keep.

★ 0