Skip to content
Back to skills

Cdd Docs Review

ASecurity

Reviews one CDD document — a phase spec, a single spec, a plan or a program charter — against the tree it describes. Judges three faces (the world the document asserts, the document's self-consistency, conformance with the decisions the engine already renders), a seven-form failure catalogue, the eleven questions of the document face and the self-check obligations. One procedure serves two consumers — a dispatched review round (one reviewer per round, findings into the round's carrier, status...

  • 68 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgonode

Works with

  • terminal

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add Oscaner/skills --skill cdd-docs-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cdd Docs Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cdd Docs Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/oscaner-cdd-docs-review/badge)](https://www.skillsdirectory.com/skills/oscaner-cdd-docs-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cdd-docs-review
description: Reviews one CDD document — a phase spec, a single spec, a plan or a program charter — against the tree it describes. Judges three faces (the world the document asserts, the document's self-consistency, conformance with the decisions the engine already renders), a seven-form failure catalogue, the eleven questions of the document face and the self-check obligations. One procedure serves two consumers — a dispatched review round (one reviewer per round, findings into the round's carrier, status derived by the engine, nothing printed) and an author-side self-check inside a writing flow (defects fixed in place, no carrier, no status, nothing printed). One-pass procedure, no self-loop, not a workflow stage of its own.
---

# Kairos CDD-Docs-Review

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:

1. `plan-completeness` — Is a spec requirement owned by no task, so implementation skips it silently and the requirement never ships?
2. `plan-decomposition` — Does the task granularity make a step impossible to verify on its own, so a defect crosses steps with nobody noticing?
3. `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?
4. `spec-completeness` — Is a condition that must hold left unwritten, so the downstream author can only guess — and guessing wrong changes behaviour?
5. `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?
6. `spec-clarity` — Can a statement be read two reasonable ways, and do the two readings derive different implementations?
7. `overall-scope` — Does the phase's scope descend to implementation detail, leaving the increment that phase delivers undecidable?
8. `overall-inventory` — Does the registry disagree with the tree, so "delivered" stops being credible?
9. `overall-dependency` — Does a dependency edge disagree with the actual serial order, so the schedule collides?
10. `overall-acceptance` — Is an acceptance cell undecidable when the phase closes?
11. `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?

## Flow Digraph

```mermaid
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
```

## Node Definitions

### `read-target`

- **Do**: Read the target and the facts the judgement rests on — the target document's own bytes, every tree fact it asserts (does the path exist, is the symbol there, how many places state the same thing) and the criteria rows the dispatch prompt's `**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.
- **Read**: the target document; the tree paths and symbols it names; the prompt's `**Criteria — <type>:**` body (a dispatch round only)
- **Exit**: every asserted tree fact has been checked against the tree as it stands → `judge`
- **Fail**: the target cannot be resolved, or a face the round context names has no readable input → BLOCKED (a judgement is never invented from a missing input)

### `judge`

- **Do**: Judge the target on three faces, in this order — **world face**: every tree fact the document states, and for each one whether the symbol or path exists, how many places state it, and who writes it, who reads it, at which step is it folded away; **self-consistency face**: the same fact's second statement, whether that second home is the bilingual README pair, a doc comment, two adjacent sentences or a count against the items it counts; **contract-conformance face**: never re-judge the contract — the decisions the engine already renders stand as given, and this face only asks whether the prose agrees with the decision. In a dispatch round, then answer the eleven numbered questions above, one by one, against the same reading. Then hold the failure catalogue below as identification questions — a document exhibiting one is defective even when every face read green:
  - **An assertion the tree does not support** — does this sentence survive a check against the tree as it stands?
  - **One fact, two statements** — do both statements still agree, and would the reader go wrong if only one were taken?
  - **A criterion narrower than what it governs** — does the rule cover every case it claims, or only the case its author had in mind?
  - **A definition domain missing a cell** — what happens when the value is empty, unchanged, one-to-many, or absent from an old record?
  - **A split or an ownership that hides work** — is a requirement owned by no task, or owned by two?
  - **A number counted from prose** — where was this count read from, and does it move the day the thing it counts moves?
  - **A gate that passes because it does nothing** — could this check stay green on the very violation it names?
- **Read**: the target document; the tree facts it asserts; the criteria rows the prompt's `**Criteria — <type>:**` body carried
- **Exit**: every face read, in a dispatch round every numbered question answered, and the failure catalogue walked → `defect?`
- **Fail**: a question cannot be answered from the inputs the round context named → BLOCKED (report the question and the input it needs)

### `defect?`

- **Do**: Gate on the judgement — any face finding, any unanswered question or any failure form the catalogue recognised sends the round to `carry`; a judgement with none of those ends it at the clean terminal.
- **Read**: the judgement record
- **Exit**: clean → the APPROVED clean terminal; any defect → `carry`
- **Fail**: the judgement record is incomplete → BLOCKED (return to `judge` before gating)

### `carry`

- **Do**: Dispatch round — one finding per defect, each carrying its summary, the tree fact it rests on, the severity the prompt's `**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.
- **Read**: the judgement record; the carrier schema the prompt's `## Handoff schema` declares (a dispatch round only)
- **Exit**: findings written → the `findings carried` terminal (dispatch round); defects fixed in place → the `defects fixed in place` terminal (author-side self-check)
- **Fail**: the carrier refuses a finding (a required field missing or mistyped) → BLOCKED (report the refused field, never a carrier the schema does not accept)

## Invariants

| # | 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 Modes

| 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 |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.