/kairos:cdd-designfrom kairos
Orchestrates design brainstorming with a digraph-based control flow. Explores context, judges program ownership, gates on phase registration, runs grilling, and dispatches a parameterized spec-writer.
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.
Full brainstorm flow orchestration, callable standalone — this flow's own explore-context lands the request's design context, and the mode? gate then judges OWNERSHIP: does this change fall inside a registered program's charter scope? Belongs ⇒ phase-within-program, which gates on whether the phase is registered in the parent overall; belongs to no registered program ⇒ new-program, which routes straight to grilling with no inventory check.
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. Round rhythm — one review pass per dispatch; a fix round re-enters the review while the route is not done; ensure the working tree is clean before entering review (dirty → BLOCKED; the orchestrator writes no tree during dispatch). Failure face — cross-node failure handling lives in the Failure Modes table below (the single source); node Fail entries keep only local behavior.
flowchart TD
A[explore-context] --> M{mode?}
M -->|belongs to a registered program · phase-within-program| P{phase-registered?}
M -->|belongs to no registered program · new-program| G[run-grilling-session]
P -->|not registered| S[run-cdd-charter · sync]
S --> P
P -->|registered| G[run-grilling-session]
G --> Z2((BLOCKED: grilling plugin missing))
G --> X{size?}
X -->|phase-within-program · fit| W[run-cdd-spec]
X -->|phase-within-program · oversized| C[run-cdd-charter]
X -->|new-program · single-spec| W[run-cdd-spec]
X -->|new-program · multi| C[run-cdd-charter]
W --> H[handoff-next]
C --> D[handoff-phase-design]
explore-contextmode?mode?phase-within-program, which must then pass the register gate; belongs to none (possibly no program exists at all) → new-program, which connects straight to run-grilling-session and skips the inventory check — an unowned program has no parent inventory to check. Gate order matters: ownership is decided before the register gateexplore-context — the parent overall's Phase inventory + charter scope, i.e. every registered program's declared scope — plus the request's design contextphase-within-program ⇒ phase-registered?; inside no registered program's charter scope → new-program ⇒ run-grilling-sessionphase-registered?new-program never passes through this node (mode? routes it directly to grilling). Not registered → run the register-reflow node, then re-judgedocs/kairos/overalls/*-overall.md) Phase inventoryrun-grilling-session; not registered → run-cdd-charter · sync → re-judgeDone in the parent inventory → BLOCKED (never release grilling for an unmet phase)run-cdd-charter · syncphase-registered? for the re-judge — the landed registry entry routes the re-entry, not a re-import. Registration reflow — not the terminal overall write (run-cdd-charter is)phase-registered?run-grilling-sessionalternatives-before-design). Then import /mattpocock-skills:grilling(pi:/skill:grilling), scoped by mode: new-program → scope-level grilling (each candidate phase's scope / dependencies / acceptance / issue ownership, one grilling pass); phase-within-program → enumerate-then-grill: enumerate the requirements registered for the phase in the parent overall item by item (each requirement's status — [Pending] / Done / dropped), restate the full list to the user, and enter the grilling frontier several passes after the user confirms the enumerated coverage is complete. It lands the grilling outcome; the size judgment (size?) routes on it. Register-before-grill is guaranteed by the phase-registered? gate.mode? ownership verdict + gate verdictphase-registered?)size?mode? has already fixed the shape family, so size no longer decides between single-spec and phase-spec: on the new-program path — does the program fit one freestanding spec (single-spec → one unregistered standalone spec) or become a multi-phase program (multi → an overall charter)? on the phase-within-program path — does this phase fit one phase spec (fit → phase-spec · oversized → a charter that syncs the sub-phase split into the parent)? Size moves the document's length and task split, never its belongingphase-within-program path — fit → run-cdd-spec (phase-spec target) · oversized → run-cdd-charter; new-program path — single-spec → run-cdd-spec (standalone single-spec target) · multi → run-cdd-charter (overall charter target). The phase-within-program path carries no single-spec exitphase-within-program path resolving to a single-spec target → BLOCKED (shape contradicts ownership)run-cdd-spec/kairos:cdd-spec-writer(pi:/skill:cdd-spec-writer) with the target parameter (single-spec / phase-spec — the two near-identical dispatch variants are ONE node). That program runs in this session and lands the document's front-matter identity — slug: on either target, plus program: (the parent overall's slug:) on the phase-spec target. The spec is self-checked by the same procedure that program imports — import /kairos:cdd-docs-review(pi:/skill:cdd-docs-review) and apply its self-check obligations. Every row the run registers follows one discipline — one line asserts, the record explains: the row carries the identity, the single-sentence conclusion, the status and the relation, and the phase and decision records carry the reasoning behind themhandoff-nextrun-cdd-charter/kairos:cdd-spec-writer(pi:/skill:cdd-spec-writer) with the overall target; that program runs in this session and lands the document's front-matter slug: — an overall declares no program: (it is the program). The charter follows one discipline — one line asserts, the record explains: a phase row asserts the identity, the conclusion, the status and the relation, and its record explains what the phase was for and what proved it done; a decision row asserts the marker, the decision, the ruling and the status, and its record explains whyhandoff-phase-designhandoff-nextnext: face — this skill adds no design-domain continuation of ithandoff-phase-design/compact or the next phase's design session (kairos:cdd-design [Px program]), summarizing the committed charter| # | Invariant |
|---|---|
| I1 | Design first — zero implementation dispatch: no code commits, no implement dispatch; the flow ends in the spec-writer flows, never in implementation |
| I2 | Review Convergence — a review closes by its conclusion (APPROVED / CHANGES_REQUESTED / REVIEW_FIX); the loop advances by the engine's next: face, never by orchestrator guesswork. A mid-backfill or a user adjudication that lands governs over the suggestion (current world state wins). Fixes always dispatch via the fix round; the orchestrator must not edit in place as a substitute; a fix commit opens a new review, never a re-run of a closed one. Two lanes, and no borrowing between them: a decision the human states lands on the page, because it exists nowhere else; a finding a review names lands in the sidecar and is applied by the fix round, because an in-place edit moves the document's digest away from the review that recorded it — the engine answers doc-drift and hands the same face back on the next dispatch, so the shortcut costs a round and changes nothing |
| I3 | Spec commit discipline — spec approved = commit immediately; do not wait for dev merge (enforced inside the spec-writer flows) |
| I4 | Mid-Flight Backfill — a user-raised backfill of overall/spec/plan docs surfaced while a dispatch is in flight lands through four ordered steps on the current call's return: (1) land immediately — hot context, no deferral; (2) commit on its own — a standalone change, never mixed with implementation commits; (3) pause the loop until clean — an uncommitted backfill trips the next review's entry gate (dirty → BLOCKED); (4) audit in-band on resume — the next review audits the backfill in-band; a backfill rewriting the current task's own plan/spec text routes through the orchestrator's plan write authority |
| failure | behavior | reason |
|---|---|---|
| Grilling plugin missing | BLOCKED (install mattpocock-skills — see the kairos README's installation table) | Block policy: no degradation |
| Phase inventory missing / unparseable | BLOCKED (overall-sync-failed) | Registration gate cannot run |
| Registering with predecessor Design spec ≠ Done | BLOCKED (serial-phase) | Never release grilling for an unmet phase |
A phase-within-program path producing a single-spec | BLOCKED (stop before the write, re-judge the ownership) | Shape contradicts ownership |
| Overall sync inconsistent | BLOCKED (overall-sync-failed) | Refuse to register an inconsistent phase |
Completed round with no next: line (not BLOCKED/TIMEOUT) | HARD_ERROR — report the carried reason, re-run the same command to continue | No dispatchable next |
What SKILL.md sets; muted values are Claude Code's defaults
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-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-docs-reviewReviews 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./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