plugins/dp-cto/skills/draft/SKILL.md
Use when research is complete and the PRD needs to be authored — requires completed research phase.
npx skillsauth add raisedadead/dotplugins draftInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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. Should I return to brainstorming 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. Should I continue with 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.
development
Use when the user shares a URL, names a resource from SOURCES.md, shares operational feedback, says 'adopt', 'learn from', 'what can we steal from', 'compare with', 'self-develop', or 'how do we get better'.
tools
Use when you need to set up or rebuild the dp-lsp Docker image after installing the plugin — 'set up LSP', 'build the image', 'install language servers'.
development
Use when you want to write tests first, enforce test-driven development, or add test coverage — 'write tests for this', 'TDD this feature', 'add test coverage'. Strict RED-GREEN-REFACTOR discipline.
testing
Use when starting major work that needs formal design review — cross-team changes, architectural decisions, or complex features where requirements need discovery before implementation.