[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EFZM2KBQHYQHQTHBZYCCZX":3,"skill-same:01M7EFZM2KBQHYQHQTHBZYCCZX":49},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7EFZM2KBQHYQHQTHBZYCCZX","code-review",null,"Review the changes since a fixed point (default origin\u002Fpre-main) along four axes: Standards (does the code follow this repo's documented coding standards and the review baseline?), Spec (does the code match what the originating issue\u002Fspec asked for?), Correctness (what breaks at runtime?) and Comments (do the comments the change adds earn their place?). Runs the reviews in parallel read-only sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \"review since X\".","kaminski-dev\u002Fdk-agent-kit","kaminski-dev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39885406?v=4","01M7EFZ8VTE8FQS6R0G2Y6RB55","01M7EFZ8WESD6VKM8G7BQYAYWX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fcode-review\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: code-review\ndescription: \"Review the changes since a fixed point (default origin\u002Fpre-main) along four axes: Standards (does the code follow this repo's documented coding standards and the review baseline?), Spec (does the code match what the originating issue\u002Fspec asked for?), Correctness (what breaks at runtime?) and Comments (do the comments the change adds earn their place?). Runs the reviews in parallel read-only sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \\\"review since X\\\".\"\n---\n\nFour-axis review of the diff between `HEAD` and a fixed point the user supplies:\n\n- **Standards**: does the code conform to this repo's documented coding standards?\n- **Spec**: does the code faithfully implement the originating issue \u002F spec?\n- **Correctness**: what breaks at runtime: a crash between an effect and its commit, a failure shown as empty, an edge value, a test that cannot fail?\n- **Comments**: does each comment the diff adds earn its place?\n\nThe axes run as **parallel sub-agents** so they don't pollute each other's context, then this skill aggregates their findings and, when you wrote the change, answers them.\n\nTracker commands are in `docs\u002Fagents\u002Fissue-tracker.md`. If it is missing, tell the user to run `\u002Fdk:setup`.\n\n## Process\n\n### 1. Pin the fixed point\n\nWhatever the user said is the fixed point (a commit SHA, branch name, tag, `HEAD~5`, etc.). If they didn't specify one, use `origin\u002Fpre-main` after a `git fetch -q origin`: every branch here starts from it. When `git ls-remote --heads origin pre-main` prints nothing, the repo has no `pre-main` and the fixed point is `origin\u002Fmain`.\n\nCapture the diff command once: `git diff \u003Cfixed-point>...HEAD` (three-dot, so the comparison is against the merge-base). Also note the list of commits via `git log \u003Cfixed-point>..HEAD --oneline`. When `git status --porcelain` shows uncommitted work, review it too: add `git diff HEAD` (staged and unstaged changes) and the untracked files from `git ls-files --others --exclude-standard`, which the sub-agents read in full as new files.\n\nBefore going further, confirm the fixed point resolves (`git rev-parse \u003Cfixed-point>`) and there is something to review: a non-empty branch diff, a non-empty `git diff HEAD`, or untracked files. A bad ref or an empty change should fail here, not inside four parallel sub-agents.\n\n### 2. Identify the spec source\n\nLook for the originating spec, in this order:\n\n1. Issue references in the branch name, the commit messages or the open PR (`#123`, `Closes #45`), fetched via the workflow in the tracker doc, comments included. Comments starting `Scope amendment:` and the PR body's \"Also in this PR\" list extend the spec: that work counts as requested.\n2. A path the user passed as an argument.\n3. A spec file under `docs\u002F`, `specs\u002F`, or `.scratch\u002F` matching the branch name or feature.\n4. If nothing is found, ask the user where the spec is. If they say there isn't one, the **Spec** sub-agent will skip and report \"no spec available\".\n\n### 3. Identify the standards sources\n\nRead `CODING_STANDARDS.md` first (at the root and nearest to the changed files), then every doc it links or names. Then add `CONTRIBUTING.md`, the `AGENTS.md` sections that set rules for code, and any other doc in the repo on how code should be written, such as a skill `AGENTS.md` requires for edits. Those paths are the list the Standards sub-agent gets, so it reads them instead of guessing where standards live.\n\nOn top of whatever the repo documents, the Standards axis always carries the **smell baseline** below: a fixed set of Fowler code smells (_Refactoring_, ch.3) that applies even when a repo documents nothing. Two rules bind it:\n\n- **The repo overrides.** A documented repo standard always wins; where it endorses something the baseline would flag, suppress the smell.\n- **Always a nit.** Each smell is a labelled heuristic (\"possible Feature Envy\"), never a `should` or a `blocker`. Like any standard here, skip anything tooling already enforces.\n\nEach smell reads *what it is* → *how to fix*; match it against the diff:\n\n- **Mysterious Name**: a function, variable, or type whose name doesn't reveal what it does or holds. → rename it; if no honest name comes, the design's murky.\n- **Duplicated Code**: the same logic shape appears in more than one hunk or file in the change. → extract the shared shape, call it from both.\n- **Feature Envy**: a method that reaches into another object's data more than its own. → move the method onto the data it envies.\n- **Data Clumps**: the same few fields or params keep travelling together (a type wanting to be born). → bundle them into one type, pass that.\n- **Primitive Obsession**: a primitive or string standing in for a domain concept that deserves its own type. → give the concept its own small type.\n- **Repeated Switches**: the same `switch`\u002F`if`-cascade on the same type recurs across the change. → replace with polymorphism, or one map both sites share.\n- **Shotgun Surgery**: one logical change forces scattered edits across many files in the diff. → gather what changes together into one module.\n- **Divergent Change**: one file or module is edited for several unrelated reasons. → split so each module changes for one reason.\n- **Speculative Generality**: abstraction, parameters, or hooks added for needs the spec doesn't have. → delete it; inline back until a real need shows.\n- **Message Chains**: long `a.b().c().d()` navigation the caller shouldn't depend on. → hide the walk behind one method on the first object.\n- **Middle Man**: a class or function that mostly just delegates onward. → cut it, call the real target direct.\n- **Refused Bequest**: a subclass or implementer that ignores or overrides most of what it inherits. → drop the inheritance, use composition.\n\nThe baseline also covers what agents add that Fowler's list misses. Same two rules apply:\n\n- **Defensive Interior**: `try\u002Fcatch`, nil checks, retries or re-validation deep inside internal code whose inputs a boundary (handler, CLI, config, external API) already validated. A guard is right only when the state it handles is legitimate, one the system may really be in; a guard against a state that should never exist hides the bug where it surfaced. → find what produced the state and fix it there; handle errors at the boundary; let internal code trust its types.\n- **Swallowed Error**: a catch or error branch that logs-and-continues, returns a default, clamps a value, or drops the error without a reason the caller can see. → when the state it handles is legitimate, handle it there and name why; otherwise propagate it and fix what produced it.\n- **Dead Code**: unused functions, exports, parameters or branches the change leaves behind (commented-out code is the Comments axis's). → delete it; history keeps it.\n- **Deprecated API**: a call the library or this repo marks deprecated, where the replacement is available. → use the replacement.\n\nThe **comment policy** is the part of `AGENTS.md` or `CODING_STANDARDS.md` (root or nearest to the changed files) that says which comments to write or keep. Note the file and heading when one exists; it goes to the Comments sub-agent, which applies it over its default keep list.\n\n### 4. Spawn the sub-agents in parallel\n\nIssue all four sub-agent calls together, in the foreground, and aggregate the reports they return: Standards, Spec and Correctness with `subagent_type: \"dk:reviewer\"`, Comments with `subagent_type: \"dk:comment-reviewer\"`. Both types are read-only, so the reviewers can share one worktree. They give each finding its id and severity; each prompt hands its axis the id prefix, so ids stay unique across the four reports: `ST` for Standards, `SP` for Spec, `CO` for Correctness, `CM` for Comments.\n\n**Standards sub-agent prompt** should include:\n\n- The full diff command and commit list.\n- The list of standards-source files you found in step 3, **plus the smell baseline from step 3** pasted in full (the sub-agent has no other access to it).\n- The brief: \"Report, per file\u002Fhunk where relevant, (a) every place the diff violates a documented standard: cite the standard (file + the rule); and (b) any baseline smell you spot: name it and quote the hunk. A clear breach of a documented standard is at least a `should`, one whose rule needs judgement to apply is a `nit`, and a baseline smell is always a `nit`; a documented repo standard overrides the baseline. Skip anything tooling enforces. Whether a test can fail is the Correctness axis's question unless a documented standard rules on it. Under 400 words.\"\n\n**Spec sub-agent prompt** should include:\n\n- The diff command and commit list.\n- The path or fetched contents of the spec.\n- The brief: \"Report: (a) requirements the spec asked for that are missing or partial; (b) behaviour in the diff that wasn't asked for (scope creep), where recorded scope amendments count as asked for; (c) requirements that look implemented but where the implementation looks wrong. Quote the spec line for each finding. Under 400 words.\"\n\n**Correctness sub-agent prompt** should include:\n\n- The diff command and commit list, plus the untracked files from step 1, which it reads in full.\n- The brief: \"Report what breaks at runtime. Walk every item of these kinds the diff adds or changes, and answer each question for it:\n  - **Side effect** (provider call, mail, webhook): what happens if the process dies between the effect and its commit? Does a retry past the lease repeat it? Does one tenant's or runner's failure block the others? Can a reader run before the lock?\n  - **Query a UI renders**: does a failed load look different from an empty one? Does a failed refresh still report success?\n  - **Form**: does Enter submit it before it is ready? Does a disabled control show why? Does the unsaved-changes check compare values, so an edit undone by hand reads as clean?\n  - **Boundary value**: does it hold at zero, empty and nil? Are protocol tokens compared case-insensitively where the protocol says so? Does each `ORDER BY … LIMIT` have a tie-breaker? Does the server repeat the client's validation? Do a write and its audit row share a transaction?\n  - **Test**: does it run the mechanism its name claims? Judge it by two imagined edits. **Break the behaviour** (the code under test returns nothing or a wrong value, skips an effect or does it twice): if the test still passes, it proves nothing. **Change the internals** (every observable result kept, the code underneath restructured): if the test now fails, it is pinned to the implementation, such as a call to an internal helper or an exact error message no caller reads; the error type callers branch on is the contract. An empty test passes the first edit: it asserts loosely or not at all (`toBeDefined`, `toBeTruthy`, `not.toThrow`); asserts only a call (`toHaveBeenCalled` without its payload), or only an empty result (`toEqual([])`) when a subject that does nothing still returns it, such as a default or initial value (a function that does nothing returns `undefined` or `None`, which fails `toEqual([])`); expects a value computed by the code under test; restates a constant, config default or prompt string; or asserts on data the test built, with no call to the subject. An absence assertion (`not.toHaveBeenCalled`, an empty result) counts when the contract promises the absence and it is paired with a presence case on another input. Fix: call the subject with one concrete input and assert the literal output or effect (for a mock, the payload it received); delete the test when no such assertion exists. Cross-row relations between tables and compile-time type tests stay.\n  - **Changed doc line** (ADR, glossary, AGENTS.md): does the code it describes back it?\n  For each finding, name the trigger (the crash point, the value, the order of events) and what the user or the data ends up with. Under 400 words.\"\n\n**Comments sub-agent prompt** should include:\n\n- The diff command and commit list, plus the untracked files from step 1, which it reads in full.\n- The comment policy from step 3 (file and heading), or \"no comment policy: use your default keep list\".\n\nIts rules live in the agent, so the prompt carries nothing more than its id prefix.\n\nIf the spec is missing, skip the Spec sub-agent and note this in the final report.\n\n### 5. Aggregate\n\nPresent the four reports under `## Standards`, `## Spec`, `## Correctness` and `## Comments` headings, verbatim or lightly cleaned. Do **not** merge or rerank findings, because the axes are deliberately separate (see _Why separate axes_).\n\nEnd with a one-line summary: findings per axis and severity, and the worst issue _within each axis_ (if any). Don't pick a single winner across axes: that's the reranking the separation exists to prevent.\n\n### 6. Answer findings\n\nWhen you wrote the change (`dk:implement` sends you here), or the user asks you to fix what the review found, answer every finding; otherwise step 5's report ends the review.\n\n**Budget.** 3 rounds, steps 4 and 5 being round 1. Extend to 5 only when the change touches security, permissions, auth, data loss or concurrency and a blocker or should stays open with evidence, or when the user asks. When a round brings only nits and their fixes change no behaviour code, the loop ends: declined nits and comment-, doc- or format-only fixes need no new round.\n\n1. **Judge** each finding and its severity yourself, by impact and likelihood against the change's intent, whatever label it came with. A rare path or a small cost is a nit unless its impact (data loss, security, money, a customer-visible break) makes it a blocker or should.\n2. **Answer** each id in the **ledger**, a table of id, severity and outcome, kept in the scratch directory and carried into the PR body when one follows:\n   - `fixed: \u003Ccommit>, \u003Cthe check that shows it>`: the smallest fix. Prefer deleting or narrowing code over a new lock, cache, helper or option; add one focused test that fails without the fix when the intent needs it.\n   - `disagree: \u003Cwhy, with file:line, a test or output>`.\n   - `declined: \u003Cone line>`: out of scope, or a nit. One worth doing goes through scope intake (`dk:issue-flow` step 3), and its outcome carries the issue number.\n\n   Agree on the evidence alone, never to end the loop.\n3. **Measure.** Run `git diff --shortstat \u003Cfixed-point>` before the first fix and after each round's fixes, once the checks they touch pass and the fixes are committed. When review fixes grew the diff, cut first: undo or narrow what no blocker or should needs, before another round.\n4. **Next round**, only while budget remains and a blocker or should is open, or behaviour code changed since the last round. Run steps 4 and 5 again with the same diff command; each prompt adds its own axis's ledger rows and the change since the last round (`git diff \u003Clast round's HEAD>`), and asks for only the open ids and the code changed since. An open id is one no reviewer has marked `resolved` yet.\n\nDone when no blocker or should is open on the current diff. Stuck when an id stays disputed after two replies, or the budget ends with a blocker or should open: show both sides in 2-3 lines each, and the user decides. Budget end is not approval.\n\nReport the rounds run, the ledger, the diff's shortstat before and after, and the issue number of each declined finding that scope intake filed.\n\n## Why separate axes\n\nA change can pass one axis and fail another:\n\n- Code that follows every standard but implements the wrong thing → **Standards pass, Spec fail.**\n- Code that does exactly what the issue asked but breaks the project's conventions → **Spec pass, Standards fail.**\n- Code that follows the standards and does what the issue asked, but mails a customer twice when the process dies after the send → **Standards and Spec pass, Correctness fail.**\n- Clean, correct code wrapped in comments that narrate how it was written → **Standards, Spec and Correctness pass, Comments fail.**\n\nReporting them separately stops one axis from masking another.\n","Four-axis review of the diff between `HEAD` and a fixed point the user supplies:\n\n- **Standards**: does the code conform to this repo's documented coding standards?\n- **Spec**: does the code faithfully implement the originating issue \u002F spec?\n- **Correctness**: what breaks at runtime: a crash between an effect and its commit, a failure shown as empty, an edge value, a test that cannot fail?\n- **Comments**: does each comment the diff adds earn its place?\n\nThe axes run as **parallel sub-agents** so they don't pollute each other's context, then this skill aggregates their findings and, when you wrote the change, answers them.\n\nTracker commands are in `docs\u002Fagents\u002Fissue-tracker.md`. If it is missing, tell the user to run `\u002Fdk:setup`.\n\n## Process\n\n### 1. Pin the fixed point\n\nWhatever the user said is the fixed point (a commit SHA, branch name, tag, `HEAD~5`, etc.). If they didn't specify one, use `origin\u002Fpre-main` after a `git fetch -q origin`: every branch here starts from it. When `git ls-remote --heads origin pre-main` prints nothing, the repo has no `pre-main` and the fixed point is `origin\u002Fmain`.\n\nCapture the diff command once: `git diff \u003Cfixed-point>...HEAD` (three-dot, so the comparison is against the merge-base). Also note the list of commits via `git log \u003Cfixed-point>..HEAD --oneline`. When `git status --porcelain` shows uncommitted work, review it too: add `git diff HEAD` (staged and unstaged changes) and the untracked files from `git ls-files --others --exclude-standard`, which the sub-agents read in full as new files.\n\nBefore going further, confirm the fixed point resolves (`git rev-parse \u003Cfixed-point>`) and there is something to review: a non-empty branch diff, a non-empty `git diff HEAD`, or untracked files. A bad ref or an empty change should fail here, not inside four parallel sub-agents.\n\n### 2. Identify the spec source\n\nLook for the originating spec, in this order:\n\n1. Issue references in the branch name, the commit messages or the open PR (`#123`, `Closes #45`), fetched via the workflow in the tracker doc, comments included. Comments starting `Scope amendment:` and the PR body's \"Also in this PR\" list extend the spec: that work counts as requested.\n2. A path the user passed as an argument.\n3. A spec file under `docs\u002F`, `specs\u002F`, or `.scratch\u002F` matching the branch name or feature.\n4. If nothing is found, ask the user where the spec is. If they say there isn't one, the **Spec** sub-agent will skip and report \"no spec available\".\n\n### 3. Identify the standards sources\n\nRead `CODING_STANDARDS.md` first (at the root and nearest to the changed files), then every doc it links or names. Then add `CONTRIBUTING.md`, the `AGENTS.md` sections that set rules for code, and any other doc in the repo on how code should be written, such as a skill `AGENTS.md` requires for edits. Those paths are the list the Standards sub-agent gets, so it reads them instead of guessing where standards live.\n\nOn top of whatever the repo documents, the Standards axis always carries the **smell baseline** below: a fixed set of Fowler code smells (_Refactoring_, ch.3) that applies even when a repo documents nothing. Two rules bind it:\n\n- **The repo overrides.** A documented repo standard always wins; where it endorses something the baseline would flag, suppress the smell.\n- **Always a nit.** Each smell is a labelled heuristic (\"possible Feature Envy\"), never a `should` or a `blocker`. Like any standard here, skip anything tooling already enforces.\n\nEach smell reads *what it is* → *how to fix*; match it against the diff:\n\n- **Mysterious Name**: a function, variable, or type whose name doesn't reveal what it does or holds. → rename it; if no honest name comes, the design's murky.\n- **Duplicated Code**: the same logic shape appears in more than one hunk or file in the change. → extract the shared shape, call it from both.\n- **Feature Envy**: a method that reaches into another object's data more than its own. → move the method onto the data it envies.\n- **Data Clumps**: the same few fields or params keep travelling together (a type wanting to be born). → bundle them into one type, pass that.\n- **Primitive Obsession**: a primitive or string standing in for a domain concept that deserves its own type. → give the concept its own small type.\n- **Repeated Switches**: the same `switch`\u002F`if`-cascade on the same type recurs across the change. → replace with polymorphism, or one map both sites share.\n- **Shotgun Surgery**: one logical change forces scattered edits across many files in the diff. → gather what changes together into one module.\n- **Divergent Change**: one file or module is edited for several unrelated reasons. → split so each module changes for one reason.\n- **Speculative Generality**: abstraction, parameters, or hooks added for needs the spec doesn't have. → delete it; inline back until a real need shows.\n- **Message Chains**: long `a.b().c().d()` navigation the caller shouldn't depend on. → hide the walk behind one method on the first object.\n- **Middle Man**: a class or function that mostly just delegates onward. → cut it, call the real target direct.\n- **Refused Bequest**: a subclass or implementer that ignores or overrides most of what it inherits. → drop the inheritance, use composition.\n\nThe baseline also covers what agents add that Fowler's list misses. Same two rules apply:\n\n- **Defensive Interior**: `try\u002Fcatch`, nil checks, retries or re-validation deep inside internal code whose inputs a boundary (handler, CLI, config, external API) already validated. A guard is right only when the state it handles is legitimate, one the system may really be in; a guard against a state that should never exist hides the bug where it surfaced. → find what produced the state and fix it there; handle errors at the boundary; let internal code trust its types.\n- **Swallowed Error**: a catch or error branch that logs-and-continues, returns a default, clamps a value, or drops the error without a reason the caller can see. → when the state it handles is legitimate, handle it there and name why; otherwise propagate it and fix what produced it.\n- **Dead Code**: unused functions, exports, parameters or branches the change leaves behind (commented-out code is the Comments axis's). → delete it; history keeps it.\n- **Deprecated API**: a call the library or this repo marks deprecated, where the replacement is available. → use the replacement.\n\nThe **comment policy** is the part of `AGENTS.md` or `CODING_STANDARDS.md` (root or nearest to the changed files) that says which comments to write or keep. Note the file and heading when one exists; it goes to the Comments sub-agent, which applies it over its default keep list.\n\n### 4. Spawn the sub-agents in parallel\n\nIssue all four sub-agent calls together, in the foreground, and aggregate the reports they return: Standards, Spec and Correctness with `subagent_type: \"dk:reviewer\"`, Comments with `subagent_type: \"dk:comment-reviewer\"`. Both types are read-only, so the reviewers can share one worktree. They give each finding its id and severity; each prompt hands its axis the id prefix, so ids stay unique across the four reports: `ST` for Standards, `SP` for Spec, `CO` for Correctness, `CM` for Comments.\n\n**Standards sub-agent prompt** should include:\n\n- The full diff command and commit list.\n- The list of standards-source files you found in step 3, **plus the smell baseline from step 3** pasted in full (the sub-agent has no other access to it).\n- The brief: \"Report, per file\u002Fhunk where relevant, (a) every place the diff violates a documented standard: cite the standard (file + the rule); and (b) any baseline smell you spot: name it and quote the hunk. A clear breach of a documented standard is at least a `should`, one whose rule needs judgement to apply is a `nit`, and a baseline smell is always a `nit`; a documented repo standard overrides the baseline. Skip anything tooling enforces. Whether a test can fail is the Correctness axis's question unless a documented standard rules on it. Under 400 words.\"\n\n**Spec sub-agent prompt** should include:\n\n- The diff command and commit list.\n- The path or fetched contents of the spec.\n- The brief: \"Report: (a) requirements the spec asked for that are missing or partial; (b) behaviour in the diff that wasn't asked for (scope creep), where recorded scope amendments count as asked for; (c) requirements that look implemented but where the implementation looks wrong. Quote the spec line for each finding. Under 400 words.\"\n\n**Correctness sub-agent prompt** should include:\n\n- The diff command and commit list, plus the untracked files from step 1, which it reads in full.\n- The brief: \"Report what breaks at runtime. Walk every item of these kinds the diff adds or changes, and answer each question for it:\n  - **Side effect** (provider call, mail, webhook): what happens if the process dies between the effect and its commit? Does a retry past the lease repeat it? Does one tenant's or runner's failure block the others? Can a reader run before the lock?\n  - **Query a UI renders**: does a failed load look different from an empty one? Does a failed refresh still report success?\n  - **Form**: does Enter submit it before it is ready? Does a disabled control show why? Does the unsaved-changes check compare values, so an edit undone by hand reads as clean?\n  - **Boundary value**: does it hold at zero, empty and nil? Are protocol tokens compared case-insensitively where the protocol says so? Does each `ORDER BY … LIMIT` have a tie-breaker? Does the server repeat the client's validation? Do a write and its audit row share a transaction?\n  - **Test**: does it run the mechanism its name claims? Judge it by two imagined edits. **Break the behaviour** (the code under test returns nothing or a wrong value, skips an effect or does it twice): if the test still passes, it proves nothing. **Change the internals** (every observable result kept, the code underneath restructured): if the test now fails, it is pinned to the implementation, such as a call to an internal helper or an exact error message no caller reads; the error type callers branch on is the contract. An empty test passes the first edit: it asserts loosely or not at all (`toBeDefined`, `toBeTruthy`, `not.toThrow`); asserts only a call (`toHaveBeenCalled` without its payload), or only an empty result (`toEqual([])`) when a subject that does nothing still returns it, such as a default or initial value (a function that does nothing returns `undefined` or `None`, which fails `toEqual([])`); expects a value computed by the code under test; restates a constant, config default or prompt string; or asserts on data the test built, with no call to the subject. An absence assertion (`not.toHaveBeenCalled`, an empty result) counts when the contract promises the absence and it is paired with a presence case on another input. Fix: call the subject with one concrete input and assert the literal output or effect (for a mock, the payload it received); delete the test when no such assertion exists. Cross-row relations between tables and compile-time type tests stay.\n  - **Changed doc line** (ADR, glossary, AGENTS.md): does the code it describes back it?\n  For each finding, name the trigger (the crash point, the value, the order of events) and what the user or the data ends up with. Under 400 words.\"\n\n**Comments sub-agent prompt** should include:\n\n- The diff command and commit list, plus the untracked files from step 1, which it reads in full.\n- The comment policy from step 3 (file and heading), or \"no comment policy: use your default keep list\".\n\nIts rules live in the agent, so the prompt carries nothing more than its id prefix.\n\nIf the spec is missing, skip the Spec sub-agent and note this in the final report.\n\n### 5. Aggregate\n\nPresent the four reports under `## Standards`, `## Spec`, `## Correctness` and `## Comments` headings, verbatim or lightly cleaned. Do **not** merge or rerank findings, because the axes are deliberately separate (see _Why separate axes_).\n\nEnd with a one-line summary: findings per axis and severity, and the worst issue _within each axis_ (if any). Don't pick a single winner across axes: that's the reranking the separation exists to prevent.\n\n### 6. Answer findings\n\nWhen you wrote the change (`dk:implement` sends you here), or the user asks you to fix what the review found, answer every finding; otherwise step 5's report ends the review.\n\n**Budget.** 3 rounds, steps 4 and 5 being round 1. Extend to 5 only when the change touches security, permissions, auth, data loss or concurrency and a blocker or should stays open with evidence, or when the user asks. When a round brings only nits and their fixes change no behaviour code, the loop ends: declined nits and comment-, doc- or format-only fixes need no new round.\n\n1. **Judge** each finding and its severity yourself, by impact and likelihood against the change's intent, whatever label it came with. A rare path or a small cost is a nit unless its impact (data loss, security, money, a customer-visible break) makes it a blocker or should.\n2. **Answer** each id in the **ledger**, a table of id, severity and outcome, kept in the scratch directory and carried into the PR body when one follows:\n   - `fixed: \u003Ccommit>, \u003Cthe check that shows it>`: the smallest fix. Prefer deleting or narrowing code over a new lock, cache, helper or option; add one focused test that fails without the fix when the intent needs it.\n   - `disagree: \u003Cwhy, with file:line, a test or output>`.\n   - `declined: \u003Cone line>`: out of scope, or a nit. One worth doing goes through scope intake (`dk:issue-flow` step 3), and its outcome carries the issue number.\n\n   Agree on the evidence alone, never to end the loop.\n3. **Measure.** Run `git diff --shortstat \u003Cfixed-point>` before the first fix and after each round's fixes, once the checks they touch pass and the fixes are committed. When review fixes grew the diff, cut first: undo or narrow what no blocker or should needs, before another round.\n4. **Next round**, only while budget remains and a blocker or should is open, or behaviour code changed since the last round. Run steps 4 and 5 again with the same diff command; each prompt adds its own axis's ledger rows and the change since the last round (`git diff \u003Clast round's HEAD>`), and asks for only the open ids and the code changed since. An open id is one no reviewer has marked `resolved` yet.\n\nDone when no blocker or should is open on the current diff. Stuck when an id stays disputed after two replies, or the budget ends with a blocker or should open: show both sides in 2-3 lines each, and the user decides. Budget end is not approval.\n\nReport the rounds run, the ledger, the diff's shortstat before and after, and the issue number of each declined finding that scope intake filed.\n\n## Why separate axes\n\nA change can pass one axis and fail another:\n\n- Code that follows every standard but implements the wrong thing → **Standards pass, Spec fail.**\n- Code that does exactly what the issue asked but breaks the project's conventions → **Spec pass, Standards fail.**\n- Code that follows the standards and does what the issue asked, but mails a customer twice when the process dies after the send → **Standards and Spec pass, Correctness fail.**\n- Clean, correct code wrapped in comments that narrate how it was written → **Standards, Spec and Correctness pass, Comments fail.**\n\nReporting them separately stops one axis from masking another.\n",{"name":5,"description":7},"main","53eb522da63c98ceb28f1af6a9d88cb3711b2097","plugins\u002Fdk\u002Fskills\u002Fcode-review","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit","https:\u002F\u002Fgithub.com\u002Fkaminski-dev","2026-11-05 04:08:01",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add kaminski-dev\u002Fdk-agent-kit --skill code-review",{"tool":35,"command":36},"bunx","bunx skills add kaminski-dev\u002Fdk-agent-kit --skill code-review",{"tool":38,"command":39},"pnpm","pnpm dlx skills add kaminski-dev\u002Fdk-agent-kit --skill code-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fcode-review\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"agents\u002Fopenai.yaml","REFERENCE","参考文档",123,"https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fcode-review\u002Fagents\u002Fopenai.yaml",[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7EG1RARBVATTAE5WVX76WS5","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7EG1MXJHKQPYRD5ZR3HH4F8","verify","Prove a change works by driving it in a stack you started, against a control run of the pre-fix state. Use before calling any change verified, or when asked to verify or prove a fix.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fverify\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7EG1H4K07BAM3WZ5CCSWVA0","verify-doc-check","Monthly check that this repo's docs\u002Fagents\u002Fverify.md still starts the stack: read every claim against the source, run the recipe in a fresh worktree, fix or file each drifted step.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fverify-doc-check\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":18},"01M7EG1EWNF1SSMAJZDD5F6BWZ","triage","Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M7EG1AQAXT5E40W5YRZDHBH6","to-tickets","Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fto-tickets\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":18},"01M7EG18P4M7YT88WHJA7M5N6F","to-spec","Turn the current conversation into a spec and publish it to the project issue tracker: no interview, just synthesis of what you've already discussed.","https:\u002F\u002Fgithub.com\u002Fkaminski-dev\u002Fdk-agent-kit\u002Fblob\u002Fmain\u002Fplugins\u002Fdk\u002Fskills\u002Fto-spec\u002FSKILL.md",[],[]]