Ppdd.bot
中EN

Write a spec

A one-line request becomes a spec: problem, approach, acceptance, out of scope, open decisions, how to split.

SKILL.mdmarkdown · 39 lines
---
name: spec
description: >
Turn a one-line request or a discussion into a spec an agent can implement.
Use when the user says "write a spec", "turn this into requirements", or "let's lock down what we discussed",
or when the request is a sentence or two and starting right away would likely miss the point.
Not for one-line changes.
---
# Write a spec
Read the relevant code first, then write. Ask at most 3 questions about what you can't work out. For everything else, pick the most reasonable default and mark it "default".
## Output
Save to [docs/specs/]<date>-<slug>.md with these six sections.
### Problem
Who hits what problem, and how they get by today. Two or three sentences.
### Approach
Describe the behavior a user will see. No implementation detail.
### Acceptance
A checklist. Each item maps to a test or a manual verification step:
- [ ] When ..., then ...
### Out of scope
What this change will not do, so the work doesn't grow as it goes.
### Open decisions
Calls on user-facing copy, pricing, restricting users, or deleting data: the recommended option, the alternative, the rollback.
### How to split
Split into PRs by risk. Each one merges and rolls back on its own.
## After writing
- Show the user Acceptance and Open decisions. Start only after they confirm.
- Keep file paths and code snippets out of the spec. They go stale fast.