/kairos:cdd-docs-reviewfrom kairos
Reviews CDD documents (phase specs, single specs, plans, program charters) against their described tree. Judges document-world alignment, self-consistency, and conformance with engine decisions. Supports dispatched review rounds and author-side self-checks.
Ships in kairos. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The document face's review procedure — one pass from the target to its terminal. It reads what a document says about the tree, and it never re-judges what the engine already decides: the criteria rows the dispatch prompt's **Criteria — <type>:** body carries are the authority, and this procedure supplies the judgement those rows ask for.
Invocation discipline — every engine command runs as a background dispatch: launch it in the background and await the completion notification — never poll — then read the full output (stdout/stderr). Output filtering is forbidden — no piping to tail/head, no 2>&1 |, no EXIT=$? capture. Dispatch boundary — the obligation runs both ways: a dispatched child carries every verification / build command to completion inside its own turn, never ending that turn to await a background task it launched itself — ending the turn terminates the child, so the awaited notification never arrives and the round dies half-finished while still looking successful; the launching side certifies success by the terminal contract (a clean working tree and the target action actually completed), never by exit code 0. Failure face — cross-node failure handling lives in the Failure Modes table below (the single source); node Fail entries keep only local behavior.
Dispatch round — the mode a review round uses. Take the three faces, the failure catalogue, the eleven questions and the obligation ids from this procedure. A defect becomes a finding that carries its summary, the tree fact it rests on, the severity from the rubric the prompt's **Criteria — <type>:** body carries and the lens field the finding schema declares, taken from the criteria row that raised it; the findings are written into the round's findings carrier — OUTPUT_HANDOFF, the path the round context names — and the round stops there. The round's status is the engine's to derive from that carrier: the reviewer never judges the status of its own round, and it prints nothing — no verdict, no summary, no finding list on stdout or stderr.
Author-side self-check — the mode a writing flow uses before it hands a document off. Take the three faces, the failure catalogue and the obligation ids as a checklist. A defect is fixed in place in the document under review, inside the same round, and the touched clause is read back afterwards. There is no carrier, no status and no printing here: this is a self-check inside the flow, not a review round, and it grants no approval — the downstream review still has to happen.
One reviewer per round — a round on the document face runs one agent and never fans out into parallel sub-agents; the generic two-axis code review fans out by default, and that default is overridden here, on the document face only. Named, never listed — which faces a round reads is named by its round context; this procedure carries no table of them, so a face the engine adds needs no edit here. No second vocabulary — this procedure owns neither a per-criterion label set nor a severity scale: both are the engine's, and a call site that restates them has shipped a second copy.
The document-face questions — eleven questions in registry order; the ID is what the engine routes on and the sentence is the failure the question catches. An unanswered question is never a pass:
plan-completeness — Is a spec requirement owned by no task, so implementation skips it silently and the requirement never ships?plan-decomposition — Does the task granularity make a step impossible to verify on its own, so a defect crosses steps with nobody noticing?plan-buildability — Is a step of the plan not executable against the tree as it stands — a missing prerequisite, a command that does not exist, an order no edge permits?spec-completeness — Is a condition that must hold left unwritten, so the downstream author can only guess — and guessing wrong changes behaviour?spec-consistency — Do two places state the same fact differently, so the downstream reader goes wrong whichever one is taken — and when a document gives a reading (a count, a list, an enumeration), which items does it count, and are those items still on the tree?spec-clarity — Can a statement be read two reasonable ways, and do the two readings derive different implementations?overall-scope — Does the phase's scope descend to implementation detail, leaving the increment that phase delivers undecidable?overall-inventory — Does the registry disagree with the tree, so "delivered" stops being credible?overall-dependency — Does a dependency edge disagree with the actual serial order, so the schedule collides?overall-acceptance — Is an acceptance cell undecidable when the phase closes?overall-boundary — Is a non-goal drawn so loosely that it filters nothing?The self-check obligations — the obligation ids, the checklist an author-side run holds itself to. The body of each lives in the engine's registry (SELF_REVIEW_OBLIGATIONS) and is not repeated here; the question beside an id is what the id asks in this procedure's own words:
evidence-before-assertion — did I run it and read its whole output, or am I reporting an intention?two-axis-self-check — does this hold against both the repository's existing standard and the document it was authored from?fix-in-round — is every defect this pass surfaced fixed in this round, or merely recorded?self-check-is-not-review — am I treating this pass as an approval, when the downstream review still has to happen?assertion-refutable-layer — which layer would refute this assertion, the design read alone or the implementation read alone, and does it sit where only that layer can refute it?tree-fact-checked-in-round — was this tree fact checked against the tree in this round, or written from memory?domain-before-rule — does the rule define the empty value, the unchanged value, the one-to-many relation and the record missing the field?field-provenance — who writes this field, who reads it, and at which step is it folded away?alternatives-before-design — are the rejected approaches stated with the death of each, before the first design line?facets-before-filling — are the faces all listed before any one of them is filled?count-is-not-identity — is a count standing where a type or a set could name the same fact?one-todo-per-sentence — does a sentence carry two todos, so a reader acting on it can finish only one?flowchart TD
A[read-target] --> B[judge]
B --> C{defect?}
C -->|clean| E((APPROVED: clean))
C -->|defect found| D[carry]
D -->|dispatch round| F((findings carried))
D -->|author-side self-check| G((defects fixed in place))
A -->|missing input| X((BLOCKED: named blocking reason))
B -->|unanswerable question| X
C -->|incomplete judgement| X
D -->|refused carrier field| X
X -->|return to judge| B
read-target**Criteria — <type>:** body carries. In an author-side self-check the target is the document being written in this session and no criteria rows are read.**Criteria — <type>:** body (a dispatch round only)judgejudge**Criteria — <type>:** body carrieddefect?defect?carry; a judgement with none of those ends it at the clean terminal.carryjudge before gating)carry**Criteria — <type>:** body assigns and the lens field from the criteria row that raised it; write them into the round's findings carrier and stop. Author-side self-check — fix the defect in place in the document under review, in this round, and read the touched clause back.## Handoff schema declares (a dispatch round only)findings carried terminal (dispatch round); defects fixed in place → the defects fixed in place terminal (author-side self-check)| # | Invariant |
|---|---|
| I1 | One home for the judgement — the three faces, the failure catalogue, the eleven questions and the obligation ids are stated once, here; a call site takes them from this procedure instead of restating them |
| I2 | No contract re-judgement — a decision the engine already renders (presence · change-history-* · cross-doc-chain · residue) stands as given; the contract-conformance face only asks whether the prose agrees with it |
| I3 | The reviewer never judges its own round — in a dispatch round the status is derived by the engine from the findings carrier, and nothing is printed |
| I4 | One reviewer per round — a round on the document face runs one agent and never fans out into parallel sub-agents |
| I5 | A missing input is reported, never filled in — a face the round context does not name, a target that does not resolve or a question its inputs cannot answer is a BLOCKED round |
| I6 | No second vocabulary — this procedure carries no per-criterion label set and no table of the faces a round reads; the label set is the prompt's **Lens labels:** line and the faces are the round context's |
| failure | behavior | reason | recovery |
|---|---|---|---|
| a face the round context names has no readable input | BLOCKED (unnamed input) | a judgement invented from a missing input is worse than none (I5) | report the missing face; the round re-dispatches once it is named |
| the target document cannot be resolved | BLOCKED (no target) | one round, one target — there is nothing else to judge | report the path the round context named |
| a numbered question cannot be answered from the named inputs | BLOCKED (unanswerable question) | an unanswered question is never a pass | report the question id and the input it needs |
| the judgement record is incomplete at the gate | BLOCKED (incomplete judgement) | a partial judgement cannot route clean or defective | return to the judge node and finish the faces |
| the findings carrier refuses a finding | BLOCKED (carrier field) | the carrier is the whole product of a dispatch round (I3) | name the refused field and rewrite the finding |
| an author-side self-check surfaces a defect it cannot fix | BLOCKED (unfixable in place) | a self-check that records instead of fixing leaves the defect in the document | report the defect and the clause; the flow's author decides |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cdd, document-review, specification-review, quality-assurance
npx claudepluginhub oscaner/skills --plugin kairos6 skills in this plugin
/cdd-closeIndependent cdd-close orchestrator -- Node-anchored flow with digraph as single control-flow source of truth. Owns its Git finish menu (merge / PR / keep / discard) and gates on the landed finish outcome, then closes related issues. Layers personal rules (no worktrees / conventional commits / typed-discard). Callable standalone; invoke as kairos:cdd-close(pi:/skill:cdd-close)./cdd-designIndependent brainstorm orchestrator -- Node-anchored flow with digraph as single control-flow source of truth. Explores the request's design context in this session, judges which program owns the change and gates on phase registration, runs grilling, and dispatches the parameterized spec-writer(/kairos:cdd-spec-writer) under one template (single-spec / phase-spec / overall charter). Callable standalone; invoke as kairos:cdd-design(pi:/skill:cdd-design)./cdd-devIndependent cdd-dev orchestrator -- Node-anchored flow with digraph as single control-flow source of truth. Determines base via the engine artifact, dispatches the CDD implement / review / fix chain following the engine's next face, and runs the branch final review — the engine's next directive carries the pipeline continuation. Callable standalone; referenced by no other skill./cdd-planIndependent plan-writing orchestrator -- Node-anchored flow with digraph as single control-flow source of truth. Drafts the plan from the approved spec in this session, backfills the design spec on substantive drift before authoring, commits the authored plan before the review-fix loop, and runs the loop following the engine's next face — the engine's next directive carries the pipeline continuation. Callable standalone; invoke as kairos:cdd-plan(pi:/skill:cdd-plan)./cdd-spec-writerIndependent spec-writer -- Node-anchored flow with digraph as single control-flow source of truth. Lands the design decisions in this session, then authors the target spec (single-spec / phase-spec / overall — one parameterized flow), commits it before the review-fix loop, and runs the loop following the engine's next face — the engine's next directive carries the pipeline continuation. Callable standalone; invoke as kairos:cdd-spec-writer(pi:/skill:cdd-spec-writer).Other plugins' skills for the same job