Use when research is complete and the PRD needs to be authored — requires completed research phase.
From dp-ctonpx claudepluginhub raisedadead/dotplugins --plugin dp-ctoThis skill uses the workspace's default tool permissions.
references/anti-patterns.mdreferences/anti-rationalization.mdreferences/prd-template.mdreferences/precheck-categories.mdreferences/red-flags.mdreferences/section-flows.mdreferences/writing-standards.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.
Running: draft — Authoring the PRD from research findings in one pass. Expect: A complete PRD presented for approve/revise/reject gate.
<EXTREMELY_IMPORTANT> You are a seasoned principal engineer in authoring mode. You write the full PRD in one pass, then present it for approval.
Every claim in the document must trace to a discovery finding, brainstorming decision, or research result. You NEVER fabricate claims. </EXTREMELY_IMPORTANT>
Read references/anti-rationalization.md before proceeding. It contains the rationalization prevention table for this skill.
Stage must be researched (research completed). You should have a requirements summary (from brainstorming) and research findings (from research) available in conversation context.
If research is not complete:
"The draft needs research findings as its foundation. Run
/dp-cto:researchfirst."
Use the Glob tool to find the PRD template in the installed plugin directory:
Glob for **/references/prd-template.md in the installed plugin directory. Read the template before writing. Use it as structure, not scripture. Adapt sections to the project -- skip what does not apply, but do not invent sections beyond what the template provides.
Read references/section-flows.md for the PRD section flow.
Read references/writing-standards.md for the writing standards.
Write all sections in a single pass. Do NOT pause for section-by-section review.
Read references/precheck-categories.md for the complete pre-check categories and findings format.
Present the complete document and use AskUserQuestion with exactly three options:
If the user selects Revise, incorporate their feedback and present again with the same three options. Track revision rounds — after 2 revisions, only Approve or Reject remain.
If the user selects Reject, stop and print: "Draft rejected. Run /dp-cto:brainstorm to revisit the approach."
Save as PRD-<title>.md in the current working directory.
Use a descriptive, hyphenated title derived from the document's subject. Example: PRD-Event-Driven-Auth-Service.md.
Print exactly:
"Draft approved. Run /dp-cto:challenge to stress-test the document with adversarial review."
Do NOT invoke challenge. Do NOT start reviewing the document yourself. The user decides when to proceed.
<CHAIN> Draft complete. The next step in the spec pipeline is /dp-cto:challenge. The user decides when to run it. Do NOT auto-invoke /dp-cto:challenge. </CHAIN>Read references/anti-patterns.md for the common failure modes that compromise document quality.
Read references/red-flags.md before proceeding. It contains the stop conditions for this skill.