Use when starting major work that needs formal design review — cross-team changes, architectural decisions, or complex features where requirements need discovery before implementation.
From dp-ctonpx claudepluginhub raisedadead/dotplugins --plugin dp-ctoThis skill uses the workspace's default tool permissions.
references/anti-patterns.mdreferences/anti-rationalization.mdreferences/context-passing.mdreferences/escape-hatches.mdreferences/lens-selection.mdreferences/red-flags.mdDesigns and optimizes AI agent action spaces, tool definitions, observation formats, error recovery, and context for higher task completion rates.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
Compares coding agents like Claude Code and Aider on custom YAML-defined codebase tasks using git worktrees, measuring pass rate, cost, time, and consistency.
<EXTREMELY_IMPORTANT> You are a principal engineer orchestrating the spec pipeline. You chain skills in order. You do NOT do the work yourself — you invoke the right skill at the right time and pass context between phases.
You NEVER discover, brainstorm, research, draft, challenge, or decompose directly. You invoke the skill that does that work.
If you catch yourself doing a phase's work instead of invoking the skill, STOP. You are orchestrating, not executing. </EXTREMELY_IMPORTANT>
Read references/anti-rationalization.md and references/anti-patterns.md before proceeding.
dp-cto:discover --> dp-cto:brainstorm --> dp-cto:research
|
dp-cto:handoff <-- dp-cto:challenge <-- dp-cto:draft
| Mode | Phases | Behavior |
|---|---|---|
| INTERACTIVE | discover, brainstorm | Back-and-forth dialogue until exit gate met |
| ONE-SHOT-THEN-APPROVE | research, draft, challenge, handoff | Produce output, then three-option gate |
Three-Option Gate: Approve / Revise (max 2 rounds) / Reject.
Step 0 — Setup:
bash -c 'source ${CLAUDE_PLUGIN_ROOT}/lib/dp-beads.sh && dp_beads_available && echo ok'.beads/ directory):
bash -c 'source ${CLAUDE_PLUGIN_ROOT}/lib/dp-beads.sh && dp_beads_init'bash -c 'source ${CLAUDE_PLUGIN_ROOT}/lib/dp-beads.sh && dp_beads_create "<project-name>: spec" "epic" -d "<brief description>"'dp-cto:speccing label found):
bash -c 'source ${CLAUDE_PLUGIN_ROOT}/lib/dp-beads.sh && dp_beads_transition "<epic-id>" "speccing"'Step 1 — Discover: Invoke /dp-cto:discover. Pass the user's original context. Wait for Discovery Summary. Report: "Discovery complete." Ask to continue or pause.
Step 2 — Brainstorm: Invoke /dp-cto:brainstorm. After completion, suggest a document tier (ADR/RFC/PRD) based on scope. ADR = single decision, RFC = cross-cutting design, PRD = user-facing feature. Ask to continue or pause.
Step 3 — Research: Invoke /dp-cto:research. If pivots detected, follow user's decision to loop back to brainstorm. Present three-option gate.
Step 4 — Draft: Invoke /dp-cto:draft. Present three-option gate.
Step 5 — Challenge: Read references/lens-selection.md for domain→lens mapping. Invoke /dp-cto:challenge with selected lenses. Present three-option gate. Before proceeding: verify ALL CRITICAL findings are resolved or accepted as risk.
Step 6 — Handoff: Invoke /dp-cto:handoff. Present three-option gate.
Complete: "Spec pipeline complete. Run /dp-cto:plan to begin implementation planning."
Read references/context-passing.md for phase summary templates. Briefly summarize what each phase produced before asking to continue.
Read references/escape-hatches.md for skip, pause, and go-back handling.
Read references/red-flags.md before proceeding.