/create-prd-from-idea:five-element-spec-scope-before-codingfrom create-prd-from-idea
Translates vague requests or GitHub issues into concrete, testable specs using five structured elements (problem, scope, acceptance criteria, edge cases, success criterion) before coding. Prevents scope creep and PR churn.
Ships in create-prd-from-idea. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Translate a vague request or GitHub issue into a concrete, actionable spec before writing any code.
Core principle: If you can't write down what "done" looks like in two sentences, you're not ready to start.
The five-element spec is a lightweight planning format that forces explicit scope boundaries, testable acceptance criteria, and a binary done/not-done signal. It takes 5 minutes for small tasks and prevents hours of rework from scope mismatches, PR churn, and "I thought we wanted X" surprises.
Always before:
Skip for:
success_criterion fieldcp -R skills/five-element-spec ~/.claude/skills/five-element-spec
Invoke with /five-element-spec before starting any non-trivial implementation task.
git clone https://github.com/agentskillexchange/skills.git
cp -R skills/five-element-spec ~/.agent-skills/five-element-spec
A complete spec answers five questions:
1. PROBLEM — What is broken or missing? What pain does this cause?
2. SCOPE — What is in scope? What is explicitly out of scope?
3. ACCEPTANCE CRITERIA — What must be true when this is done? (testable)
4. EDGE CASES — What unusual inputs or states must be handled?
5. SUCCESS CRITERION — One sentence: how will we know it's done?
## Problem
[1-2 sentences: what is broken/missing and why it matters]
## Scope
**In scope:**
- [Specific thing 1]
- [Specific thing 2]
**Out of scope (explicitly):**
- [Thing someone might expect but we're not doing]
## Acceptance Criteria
- [ ] [Testable condition 1 — "X works when Y" or "CI passes for Z"]
- [ ] [Testable condition 2]
- [ ] [Testable condition 3]
## Edge Cases
- [Input or state that needs explicit handling]
- [Boundary condition]
## Success Criterion
[One sentence. "When [action], [outcome] happens, verified by [test/check]."]
gh issue view OWNER/REPO#NUM
Look for: what's the complaint? what does the reporter expect? what's missing?
Use the 5-element template above. If you can't fill it in, the issue needs more information — file a comment asking for clarification rather than guessing.
Record the spec as a task or ticket in your tracking system of choice, with the success_criterion as a first-class field. The binary done/not-done signal from the success criterion is what enables autonomous completion without mid-task re-planning.
| Anti-Pattern | Fix |
|---|---|
| "I'll figure out the scope as I go" | Figure out the scope before you start. Scope discovered mid-implementation causes rework. |
| "The issue title is clear enough" | Issue titles describe the symptom. Acceptance criteria describe what done looks like. These are different. |
| "I'll add acceptance criteria to the PR" | PR acceptance criteria are retrospective. Spec first, then implementation, then PR. |
| "This is small, I don't need a spec" | If it's small enough to skip a spec, it's small enough to write the spec in 3 minutes. Do it. |
| "The issue has a lot of comments, I'll read them later" | Read them now. The thread often contains the acceptance criteria, edge cases, and out-of-scope decisions already worked out. |
| Implementing everything in the issue | Issues are wishlists. Specs are commitments. Pick the minimum slice that closes the issue. |
A good spec:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
11 skills in this plugin
/ardGuides users through a structured interview to clarify their AI agent idea and produces an Agent Requirement Document (ARD)./brave-manRuns a structured clarifying interview for new project requests before building. Instead of writing code, it outputs a fully specified prompt.md for a fresh agent session to execute, preventing expensive mistakes./cl:srsGenerate IEEE 830 SRS from raw requirements. Use when the user says "write SRS", "generate requirements doc", "analyze requirements", "I have raw requirements from a client", or pastes a client email/chat/PRD.
/idea-osFive-phase pipeline (triage → clarify → research → PRD → plan) that turns a raw idea into four linked files: clarifying questions, deep research, a PRD with non-goals and metrics, and a phased execution plan with mermaid user journey and kill criteria./make-planCreate a detailed, phased implementation plan with documentation discovery. Use when asked to plan a feature, task, or multi-step implementation — especially before executing with do./pddTransforms a rough idea into a detailed design document with implementation plan. Follows Prompt-Driven Development — iterative requirements clarification, research, design, and planning.npx claudepluginhub skillmds/skillmd --plugin create-prd-from-ideaOther plugins' skills for the same job