spec-planner
Skill0 starsChanged 27 days agoMITView on GitHub
Dialogue-driven spec development through skeptical questioning and iterative refinement. Produces
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- letehaha/moneymattertheir own version, first seen Oct 11, 2026
- roerohan/skillsedited, first seen May 13, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- roerohan/skills★ 2976% same
Wrote their own version · 1
- letehaha/moneymatter★ 221same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-orchestratorSkill
- classify-code-reviewSkill
- conventional-commitsSkill
- go-test-effectivenessSkill
- mstackSkill
- service-designSkill
- show-complexitySkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Hard rule: No spec until user has responded to at least one round of questions.
- Distinctive: line 40
STOP: Do not proceed to planning.
- Very specific: line 42
Ask 2-4 pointed questions that would change the approach.
- Very specific: line 45
IMPORTANT: Always use
questionfor clarifying questions: Do NOT output questions as freeform text. - Distinctive: line 130
Every implementation-ready spec must make these three parts concrete:
- Very specific: line 136
Use the project's implementation language when known.
- Distinctive: line 148
Use appropriate template from templates.md:
- Distinctive: line 181
Transition: All criteria pass + user approval → DONE
- Very specific: line 225
Write spec to specs/<filename>.md
- Distinctive: line 247
Hard rule: If scope changes, re-estimate and flag explicitly.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Spec Planner
Produce implementation-ready specs through rigorous dialogue and honest trade-off analysis.
Core Philosophy
- Dialogue over deliverables — Plans emerge from discussion, not assumption
- Skeptical by default — Requirements are incomplete until proven otherwise
- Second-order thinking — Consider downstream effects and maintenance burden
- Implementation shape is part of the design — Types, interfaces, and project layout make a proposal executable rather than aspirational
Workflow Phases
CLARIFY ──[user responds]──► DISCOVER ──[done]──► DRAFT ──[complete]──► REFINE ──[approved]──► DONE
│ │ │ │
└──[still ambiguous]──◄──────┴───────────────────┴────[gaps found]──────┘State phase at end of every response:
---
Phase: CLARIFY | Waiting for: answers to questions 1-4Phase 1: CLARIFY (Mandatory)
Hard rule: No spec until user has responded to at least one round of questions.
- STOP. Do not proceed to planning.
- Identify gaps in: scope, motivation, constraints, edge cases, success criteria, and expected implementation shape
- Ask 2-4 pointed questions that would change the approach. Use
question. - Wait for responses
IMPORTANT: Always use question for clarifying questions. Do NOT output questions as freeform text. The
tool provides structured options and better UX. Group up to 4 questions in one call, each with 2-4 options containing a label and description. Keep headers within 16 characters. The tool supplies the custom-answer row; do not add an "Other" option. Use multiple: true when several choices may apply. Example:
question({
questions: [{
header: "Scope",
question: "Which subsystems need detailed specs?",
options: [
{
label: "VCS layer",
description: "Specify the shared boundary between jj-lib and gix."
},
{
label: "Review workflow",
description: "Specify the local GitHub PR-style review workflow."
},
{
label: "Event system",
description: "Specify pub/sub behavior and event persistence."
}
],
multiple: true
}]
})| Category | Example |
| Scope | "Share where? Social media? Direct link? Embed?" |
| Motivation | "What user problem are we actually solving?" |
| Constraints | "Does this need to work with existing privacy settings?" |
| Success | "How will we know this worked?" |
| Implementation | "Which types, boundaries, or modules will change?" |
Escape prevention: Even if request seems complete, ask 2+ clarifying questions. Skip only for mechanical requests (e.g., "rename X to Y").
Anti-patterns to resist:
- "Just give me a rough plan" → Still needs scope questions
- "I'll figure out the details" → Those details ARE the spec
- Very long initial request → Longer ≠ clearer; probe assumptions
Transition: User answered AND no new ambiguities → DISCOVER
Phase 2: DISCOVER
After clarification, before planning: Understand existing system.
Explore directly by default: use glob for paths, grep for symbols and content, and read for relevant files. Identify key files, abstractions, patterns, integration points, types, interfaces, and project-layout constraints.
For delegated discovery, use subagent with { agent, description, prompt } after checking available agents in its tool description. Put bounded read-only discovery tasks in prompt. Use separate subagent calls with background: true for independent tasks, wait for results before dependent steps, and consume results before drafting; do not assume a particular agent name exists.
| Target | What to Find |
| Affected area | Files and modules that will change |
| Existing patterns | How similar features are implemented |
| Types | Domain, API, persistence, and configuration shapes |
| Interfaces | Signatures, endpoints, events, errors, and callers |
| Project layout | Package boundaries, file ownership, and naming |
| Integration points | APIs, events, and data flows touched |
If unfamiliar tech is involved, use websearch with 2-4 varied queries and webfetch for authoritative documentation. Use read to retrieve passages saved to a file or webfetch for source evidence about a specific claim. Return the recommended approach, gotchas, and production patterns with source evidence; distinguish verified facts from assumptions.
Output: Brief architecture summary before proposing solutions, including current type, interface, and project-layout constraints.
Transition: System context understood → DRAFT
Phase 3: DRAFT
Apply planning framework from decision-frameworks.md:
- Problem Definition — What are we solving? For whom? Cost of not solving?
- Constraints Inventory — Time, system, knowledge, scope ceiling
- Solution Space — Simplest → Balanced → Full engineering solution
- Trade-off Analysis — See table format in references
- Recommendation — One clear choice with reasoning
Define the implementation contract
Every implementation-ready spec must make these three parts concrete:
- Types — Define new and changed domain, API, persistence, event, and configuration shapes, including constraints and ownership.
- Interfaces — Define boundaries between components: signatures or protocols, inputs, outputs, errors, side effects, and compatibility needs.
- Project layout — Show the proposed file/package tree as a nested directory tree, identify files to create or modify, and state each module's responsibility.
Use the project's implementation language when known; otherwise use precise pseudocode. For changes to existing code,
show the implementation shape as focused unified diff blocks: enough surrounding context to locate the change, but no
unrelated code. For entirely new files or definitions with no useful before-state, use a normal language-tagged code
block. Include only relevant definitions, but do not replace them with prose such as "add a request object." Render
project-layout changes as a nested text directory tree, marking each path as new, modify, or move and stating its
responsibility. If one part is unchanged or genuinely not applicable, say so and explain why instead of silently
omitting it. Map each new type and interface to an owning path and deliverable.
Define each deliverable with a stable ID, a concrete outcome, owning file/package paths, dependencies, and references to its testable acceptance criteria. Include shared infrastructure and integration checks in those mappings so delegation does not leave required work unowned. Keep this information in the existing spec; the execution orchestrator decides agent assignments and scheduling, not the planner.
For each acceptance criterion, specify how an implementer can check it: the behavior or boundary to exercise, the expected result, and a concrete command or manual procedure when known. Cover the main success path and material failure or regression paths. Distinguish checks the implementer can run locally from those requiring external access or a deployed environment. Do not invent commands; mark unknown commands for discovery during implementation and explain what must be checked.
Use appropriate template from templates.md:
- Quick Decision — Scoped technical choices
- Feature Plan — New feature development
- ADR — Architecture decisions
- RFC — Larger proposals
Transition: Spec produced → REFINE
Phase 4: REFINE
Run completeness check:
| Criterion | Check |
| Scope bounded | Every deliverable listed; non-goals explicit |
| Ambiguity resolved | No "TBD" or "to be determined" |
| Acceptance testable | Each criterion pass/fail verifiable |
| Validation traceable | Each acceptance criterion has a check; checks that cannot run locally are identified |
| Deliverables traceable | Each ID maps to an outcome, owning paths, dependencies, and acceptance criteria |
| Dependencies ordered | Clear what blocks what |
| Types concrete | Fields, value types, constraints, and ownership defined |
| Interfaces concrete | Inputs, outputs, errors, and side effects defined |
| Layout explicit | Proposed paths and module responsibilities shown |
| Shape traceable | Types/interfaces map to paths and deliverables |
| Effort estimated | Each deliverable has S/M/L/XL |
| Risks identified | At least 2 risks with mitigations |
| Open questions | Resolved OR assigned owner |
If any criterion fails: Return to dialogue. "To finalize, I need clarity on: [failing criteria]."
Transition: All criteria pass + user approval → DONE
Phase 5: DONE
Final Output
=== Spec Complete ===
Phase: DONE
Type: <feature plan | architecture decision | refactoring | strategy>
Effort: <S/M/L/XL>
Status: Ready for task breakdown
Discovery:
- Explored: <areas investigated>
- Key findings: <relevant architecture/patterns>
Recommendation:
<brief summary>
Key Trade-offs:
- <what we're choosing vs alternatives>
Implementation Shape:
- Types: <new or changed types>
- Interfaces: <new or changed boundaries>
- Project layout: <paths created, moved, or modified>
Deliverables (Ordered):
1. [D1] (effort) — [concrete outcome] — depends on: -
- Owning paths: [paths] | Acceptance: [A1]
2. [D2] (effort) — [concrete outcome] — depends on: D1
- Owning paths: [paths] | Acceptance: [A2]
Open Questions:
- [ ] <if any remain> → Owner: [who]Write Spec to File (MANDATORY)
- Derive filename from feature/decision name (kebab-case)
- Write spec to
specs/<filename>.md - Confirm:
Spec written to: specs/<filename>.md
Effort Estimates
| Size | Time | Scope |
| S | <1 hour | Single file, isolated change |
| M | 1-3 hours | Few files, contained feature |
| L | 1-2 days | Cross-cutting, multiple components |
| XL | >2 days | Major refactor, new system |
Scope Control
When scope creeps:
- Name it: "That's scope expansion. Let's finish X first."
- Park it: "Added to Open Questions. Revisit after core spec stable."
- Cost it: "Adding Y changes effort from M to XL. Worth it?"
Hard rule: If scope changes, re-estimate and flag explicitly.
References
| File | When to Read |
| templates.md | Output formats for plans, ADRs, RFCs |
| decision-frameworks.md | Complex multi-factor decisions |
| estimation.md | Breaking down work, avoiding underestimation |
| technical-debt.md | Evaluating refactoring ROI |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

