CDD Design
Orchestrate design brainstorms and route changes to the right program phase.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/cdd-design-oscaner/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.What this command does
- Makes a new, empty temporary folder.
- Downloads the skill's folder,
packages/kairos/skills/cdd-design, fromgithub.com/Oscaner/skills(branchmain), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep. - Copies that folder to
~/.claude/skills/cdd-design-oscaner/. - Deletes the temporary folder.
Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.
Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Independent brainstorm orchestrator -- Node-anchored flow with digraph as single control-flow source of truth. Consumes the /superpowers:brainstorming(pi:/skill:brainstorming) flow inline as this session's baseline (one import per 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).
What this skill does
Kairos CDD-Design
Full brainstorm flow orchestration, callable standalone — the imported brainstorm flow 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.
Flow Digraph
flowchart TD
A[run-cdd-design-session] --> B[explore-context]
A --> Z1((BLOCKED: upstream plugin missing))
B --> 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]
Node Definitions
run-cdd-design-session
- Do: Import
/superpowers:brainstorming(pi:/skill:brainstorming); it lands the design context this flow routes on — the request's scope and its exploration surface. It settles no mode: which program owns the change is themode?gate's judgment, never the import's default - Read: nothing before the import; the import resolves the design context
- Exit: Import landed →
explore-context - Fail: Upstream superpowers plugin missing → BLOCKED (no downgrade, no skip, no inline restatement)
explore-context
- Do: Explore project context — mode is not settled yet, so the exploration has to surface both sides of the ownership judgment: the request's own material and the program ledger it is judged against
- Read: whatever the task needs — e.g. project files, docs, git log, and the program ledger the ownership gate judges against (each registered overall's charter scope + Phase inventory)
- Exit: Exploration complete →
mode? - Fail: Context read fails → report + fail-open
mode?
- Do: Judge OWNERSHIP, not existence — the criterion is not "does a parent overall exist" but "does this change belong to a registered program's charter scope". A program that exists (even one whose phases are all Done) does not own a change outside its scope, and sharing the repository is not belonging. Belongs to a registered program →
phase-within-program, which must then pass the register gate; belongs to none (possibly no program exists at all) →new-program, which connects straight torun-grilling-sessionand skips the inventory check — an unowned program has no parent inventory to check. Gate order matters: ownership is decided before the register gate - Read: the program ledger from
explore-context— the parent overall's Phase inventory + charter scope, i.e. every registered program's declared scope — plus the request's design context - Exit: inside a registered program's charter scope →
phase-within-program⇒phase-registered?; inside no registered program's charter scope →new-program⇒run-grilling-session - Fail: —
phase-registered?
- Do: Read the parent overall's Phase inventory — is the requested phase registered?
new-programnever passes through this node (mode?routes it directly to grilling). Not registered → run the register-reflow node, then re-judge - Read: parent overall (
docs/kairos/overalls/*-overall.md) Phase inventory - Exit: registered →
run-grilling-session; not registered →run-cdd-charter · sync→ re-judge - Fail: Phase inventory missing or unparseable → BLOCKED (overall-sync-failed); serial-phase — registering a new phase whose hard-dependency predecessor has Design spec ≠
Donein the parent inventory → BLOCKED (never release grilling for an unmet phase)
run-cdd-charter · sync
- Do: Run the charter sync variant of the parameterized writer — the phase registration as a four-table sync of the parent overall (issue inventory / phase inventory / dependency graph / version bump + change history), then flow back to
phase-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-charteris) - Read: the parent overall
- Exit: Sync landed →
phase-registered? - Fail: four-table sync inconsistent → BLOCKED (overall-sync-failed)
run-grilling-session
- Do: 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 thephase-registered?gate. - Read: landed grilling outcome + the
mode?ownership verdict + gate verdict - Exit: Grilling outcome landed → the size judgment
- Fail: Grilling an unregistered phase → register-gate violation (BLOCKED upstream at
phase-registered?)
size?
- Do: Judge SIZE only —
mode?has already fixed the shape family, so size no longer decides between single-spec and phase-spec: on thenew-programpath — does the program fit one freestanding spec (single-spec→ one unregistered standalone spec) or become a multi-phase program (multi→ an overall charter)? on thephase-within-programpath — 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 belonging - Read: grilling output + exploration context + the parent overall's charter scope (phase-within-program mode)
- Exit:
phase-within-programpath —fit→run-cdd-spec(phase-spec target) ·oversized→run-cdd-charter;new-programpath —single-spec→run-cdd-spec(standalone single-spec target) ·multi→run-cdd-charter(overall charter target). Thephase-within-programpath carries nosingle-specexit - Fail: A
phase-within-programpath resolving to asingle-spectarget → BLOCKED (shape contradicts ownership)
run-cdd-spec
- Do: Import
/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). The delegated writer lands the document's front-matter identity —slug:on either target, plusprogram:(the parent overall'sslug:) on the phase-spec target - Read: grilling output + exploration context
- Exit: Handoff executed →
handoff-next - Fail: Target skill missing → BLOCKED (install kairos — see the kairos README's installation table)
run-cdd-charter
- Do: Import
/kairos:cdd-spec-writer(pi:/skill:cdd-spec-writer) with the overall target; the delegated writer lands the document's front-matterslug:— an overall declares noprogram:(it is the program) - Read: grilling output + parent overall (oversized phase-within-program case)
- Exit: Handoff executed →
handoff-phase-design - Fail: Target skill missing → BLOCKED (install kairos — see the kairos README's installation table)
handoff-next
- Do: Hand off following the engine's
next:face — this skill adds no design-domain continuation of it - Read: the committed spec
- Exit: Handoff executed → flow ends for this skill
- Fail: Target missing → BLOCKED (install kairos — see the kairos README's installation table)
handoff-phase-design
- Do: Hand off — to
/compactor the next phase's design session (kairos:cdd-design[Px program]), summarizing the committed charter - Read: the committed charter + the run's next phase context
- Exit: Handoff executed → flow ends for this skill
- Fail: Target missing → BLOCKED (install kairos — see the kairos README's installation table)
Invariants
| # | Invariant |
|---|---|
| I1 | Design first — zero implementation dispatch: no code commits, no implement dispatch; the flow ends in the delegated 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 |
| I3 | Spec commit discipline — spec approved = commit immediately; do not wait for dev merge (enforced inside the delegated 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 Modes
| failure | behavior | reason |
|---|---|---|
| Upstream superpowers plugin missing | BLOCKED (install superpowers — see the kairos README's installation table) | Block policy: no silent fallback |
| 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 |
| Four-table 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 |
Related skills
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.
Ask Questions If Underspecified
trailofbits
Ask clarifying questions before starting work on ambiguous requests.
Claude Plugin Marketplace Builder
daymade
Convert a Claude skills repository into an installable marketplace with auto-updates.