Each code module's .prompt.md is the source; code implements it.
Core rules
- Read
guide.mdfully before writing/changing prompts, Stories or cases, andstory-guide.mdbefore a Story. Read RUNBOOK.md §2–§4 before you write a prompt or a test file. - Change the prompt first, then the code.
- One prompt per module: purpose and behavior. Give each rule one owner prompt. Link to a shared rule. Do not copy it. For a CLI, say if a rule belongs to the whole-CLI prompt or to one module's prompt.
- Keep caller behavior and important edges. Outside code (database, files, network, clock, randomness, programs): use an injected port that the PDD interpreter fakes, never direct calls. See RUNBOOK §21.
- Linked
.ui.svgis the layout spec: parts, words, order, ids and states. Prose and drawing must agree (RUNBOOK §13). - Derive expectations from requirements before code; never copy code output.
- Show prompt, Story and cases before building. The person decides; record their actual chat approval with --said (RUNBOOK §2), never invent it.
- Do not run
pdd lintbeforepdd test; test includes lint. Report only real checks and output.
Files
verification-setup.md: discover, create and independently repeat real behavior verification; useverification-recipe.mdwhen missing a recipe.guide.md: the full Prompting guide.review.md: how to review drafts and report results.story-guide.md: how to write a Story that a test can check.RUNBOOK.md: how to write prompts and tests that the PDD interpreter can check (§2–§10), and how to runpdd testandpdd simulate.autopilot-job-rules.md: Autopilot job rules.
How to write
- Name applicable
guide.mdrules. - Find the owning prompt by path.
- Write or change the prompt. Then write the Story in the person's words, with no function calls or type names. A Story is one "I can…" behavior, checked in a minute.
- Derive normal, limit and error cases. Keep each test step small (RUNBOOK §2).
- Show drafts and open choices that affect results.
- After changing prompt, Story and tests, run
pdd testas RUNBOOK.md says, and show the person thePrompt testsline(s) and the report link(s). Offerpdd simulate STORY. If a check fails, show it; never change the expected value yourself.
Without prompts, use code, callers and tests as evidence. Change no code until asked.
Workflow skills: pdd-small-change, pdd-bug, pdd-feature and pdd-product.