agentleFS
H2SxxaH2Sxxa/spec-coding-skills/skills/spec-plan/SKILL.md

spec-plan

Skill3 starsChanged 8 months agoMITView on GitHub

Turn ambiguous software requests into BDD-style implementation-ready specs with clear scope, constraints, assumptions, acceptance criteria, validation steps, execution guardrails, and an implementation plan. Use this whenever the user is defining requirements, asking for a plan or spec, wants boundaries clarified before coding, mentions acceptance criteria or BDD, or when coding would be risky without first making done explicit.

5 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions5 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 5

    1. martinffx/atelier★ 46same name
    2. JunhuaLiu1/awesome-skills★ 14same name
    3. xfstudio/skills★ 9same name
    4. cassianodiniz/cass★ 4same name
    5. p-larsson/spec-orbit★ 2same 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 repository2 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

31 rules. 0 are common, 17 are distinctive, and 14 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 17

    Distinctive

    This author's own choices. Worth a look.

  • 14

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the task is still fuzzy and the agent should define success before implementation begins.

    line 8
  2. Very specific:

    Read references/self-check.md before finalizing a persisted task spec, handing a plan to implementation, or when ambiguity could lead to …

    line 17
  3. Very specific:

    Use references/output-template.md when writing a persisted task spec or a complex plan that needs stable structure.

    line 19
  4. Very specific:

    Before doing anything else, look for a SPEC.md in the target repository root.

    line 23
  5. Distinctive:

    If it exists, treat it as the repository-specific preference layer for:

    line 25
  6. Distinctive:

    If it is missing, use the built-in defaults for this skill series instead of blocking on the missing file.

    line 32
  7. Distinctive:

    If it is partial, use the fields it defines and fall back to defaults for the rest.

    line 34
  8. Very specific:

    When no repository root SPEC.md is available, use these defaults:

    line 38
  9. Distinctive:

    Add execution guardrails so implementation does not silently change scope, behavior, validation, or acceptance criteria.

    line 55
  10. Very specific:

    Default persisted path: docs/specs/<slug>.md, unless the repository root SPEC.md defines a different location.

    line 65
  11. Distinctive:

    When persisting a task spec, create or update the file and then continue into implementation only if the user asked for execution or the …

    line 67
  12. Distinctive:

    When using conversation plan mode, state that the plan is not being persisted and then proceed directly if the user asked for …

    line 69
  13. Very specific:

    Before handing either mode to implementation, apply references/self-check.md.

    line 71
  14. Very specific:

    Before producing a plan for existing, non-trivial, risky, or multi-turn work, retrieve relevant memory through spec-index.

    line 75
  15. Very specific:

    Use the retrieved memory only when it is relevant.

    line 87
  16. Distinctive:

    If no relevant memory is found, say so briefly and continue.

    line 89
  17. Very specific:

    If the implementation already exists and the main need is debugging or fixing regressions, use spec-crlp.

    line 95
  18. Very specific:

    If the main need is to save or look up prior knowledge, use spec-index.

    line 96
  19. Distinctive:

    If the user explicitly wants immediate implementation and the task is already well-bounded, keep planning lightweight.

    line 97
  20. Very specific:

    Read the repository root SPEC.md when present and apply the built-in defaults for anything it does not define.

    line 102
  21. Very specific:

    Call out failure modes, edge cases, setup requirements, and validation rules from the repository root SPEC.md when present, otherwise from …

    line 108
  22. Distinctive:

    Prefer this shape unless the user asks for a different format:

    line 115
  23. Distinctive:

    Write acceptance criteria as behaviors that can be observed or validated.

    line 137
  24. Distinctive:

    Avoid vague statements like "works well" or "is user friendly" unless you translate them into something observable.

    line 146
  25. Distinctive:

    Use Gherkin for behavior-oriented acceptance criteria when it improves precision:

    line 148
  26. Distinctive:

    Keep non-behavioral acceptance criteria as plain Markdown bullets.

    line 157
  27. Distinctive:

    Prefer concrete boundaries over broad ambition.

    line 161
  28. Distinctive:

    Use the self-check reference to remove execution-time guessing before implementation begins.

    line 166
  29. Distinctive:

    Keep the plan implementation-oriented rather than managerial.

    line 168
  30. Very specific:

    Keep repository-level conventions in the repository root SPEC.md when one exists, not inside one task-specific spec.

    line 184
  31. Very specific:

    If the same repository preference keeps coming up, recommend creating or updating a repository root SPEC.md.

    line 185

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Spec Planning

Use this skill when the task is still fuzzy and the agent should define success before implementation begins.

This skill turns a request into a practical spec. The goal is not project-management theater. The goal is to make coding safer and faster by clarifying scope, constraints, edge cases, validation, and what counts as done.

Bundled resources

  • references/self-check.md defines the self-check checklist, ambiguity handling, blocking-question rules, execution guardrails, and change-control policy.
  • references/output-template.md defines the preferred implementation-ready spec output shape for persisted task specs and complex conversation plans.

Read references/self-check.md before finalizing a persisted task spec, handing a plan to implementation, or when ambiguity could lead to execution-time guessing.

Use references/output-template.md when writing a persisted task spec or a complex plan that needs stable structure.

Repository preference override

Before doing anything else, look for a SPEC.md in the target repository root.

If it exists, treat it as the repository-specific preference layer for:

  • shared validation rules
  • environment and configuration constraints that affect planning
  • knowledge-base location
  • cross-skill workflow conventions

If it is missing, use the built-in defaults for this skill series instead of blocking on the missing file.

If it is partial, use the fields it defines and fall back to defaults for the rest.

Built-in defaults

When no repository root SPEC.md is available, use these defaults:

  • validation behavior: prefer discoverable repository tooling; if no validation commands are discoverable, say validation is not configured yet
  • knowledge-base location: docs/knowledge-base/
  • task spec location: docs/specs/<slug>.md
  • task execution mode: keep the plan in conversation for small, well-bounded tasks; persist it for complex, risky, or multi-turn work
  • context retrieval: query spec-index for relevant decisions, constraints, setup notes, pitfalls, and validation rules before planning non-trivial work
  • self-check: apply references/self-check.md before implementation handoff

Core responsibilities

  • Convert the user's request into a concrete problem statement.
  • Separate in-scope work from out-of-scope work.
  • Make assumptions and constraints visible.
  • Classify ambiguity as assumptions, open questions, or blocking questions.
  • Define acceptance criteria in observable, testable terms.
  • Identify edge cases, dependencies, and setup prerequisites.
  • Add execution guardrails so implementation does not silently change scope, behavior, validation, or acceptance criteria.
  • Produce an execution plan that can guide implementation work.

Output mode

Choose one output mode before finalizing the plan:

  • Conversation plan: Use this for small, well-bounded tasks where the user wants momentum and the plan only needs to guide the current turn.
  • Persisted task spec: Use this for multi-step, risky, ambiguous, review-heavy, or multi-turn work that needs stable acceptance criteria for later correction.

Default persisted path: docs/specs/<slug>.md, unless the repository root SPEC.md defines a different location.

When persisting a task spec, create or update the file and then continue into implementation only if the user asked for execution or the task clearly implies execution. If the user only asked for planning, stop after producing the spec.

When using conversation plan mode, state that the plan is not being persisted and then proceed directly if the user asked for implementation.

Before handing either mode to implementation, apply references/self-check.md. If the self-check finds unresolved blocking questions, stop before implementation and ask for the needed decision.

Context retrieval before planning

Before producing a plan for existing, non-trivial, risky, or multi-turn work, retrieve relevant memory through spec-index.

Look for:

  • prior decisions that constrain the solution
  • existing architecture or product boundaries
  • setup requirements or environment gotchas
  • validation rules and known flaky checks
  • known pitfalls, edge cases, or implementation patterns

Build retrieval queries from the user's request, likely components, file paths, tools, frameworks, domain terms, and error words.

Use the retrieved memory only when it is relevant. Summarize the useful matches in the resulting spec under Context From Memory.

If no relevant memory is found, say so briefly and continue. Do not block planning on an empty knowledge base.

Skip retrieval for small, self-contained tasks where no durable project context is likely to matter.

When this skill is not the right fit

  • If the implementation already exists and the main need is debugging or fixing regressions, use spec-crlp.
  • If the main need is to save or look up prior knowledge, use spec-index.
  • If the user explicitly wants immediate implementation and the task is already well-bounded, keep planning lightweight.

Planning workflow

  1. Restate the request as a concrete objective.
  2. Read the repository root SPEC.md when present and apply the built-in defaults for anything it does not define.
  3. Retrieve relevant memory through spec-index when the task is existing-project, non-trivial, risky, or likely to span turns.
  4. Extract known constraints from the conversation, the repository, repository preferences, and relevant memory.
  5. Identify what is in scope and what is not.
  6. Classify ambiguity into assumptions, open questions, and blocking questions.
  7. Translate the request into acceptance criteria that can later be validated.
  8. Call out failure modes, edge cases, setup requirements, and validation rules from the repository root SPEC.md when present, otherwise from the built-in defaults.
  9. Break the work into a practical execution sequence.
  10. Apply references/self-check.md before finalizing the plan or handing it to implementation.
  11. Note open questions only when they are genuinely decision-shaping.

Preferred spec structure

Prefer this shape unless the user asks for a different format:

# Spec
## Goal
## Problem Statement
## Context From Memory
## In Scope
## Out Of Scope
## Constraints
## Assumptions
## Blocking Questions
## Acceptance Criteria
## Edge Cases
## Validation Plan
## Execution Plan
## Open Questions
## Self-Check

Acceptance criteria guidance

Write acceptance criteria as behaviors that can be observed or validated.

Good acceptance criteria usually answer questions like:

  • What should happen when the happy path succeeds?
  • What should happen on invalid input or missing configuration?
  • What should remain unchanged?
  • How will we verify that the implementation is correct?

Avoid vague statements like "works well" or "is user friendly" unless you translate them into something observable.

Use Gherkin for behavior-oriented acceptance criteria when it improves precision:

Scenario: User completes the happy path
  Given the required setup exists
  When the user performs the target action
  Then the expected observable result should happen

Keep non-behavioral acceptance criteria as plain Markdown bullets. Do not force Gherkin onto setup notes, implementation steps, or architectural decisions.

Good habits

  • Prefer concrete boundaries over broad ambition.
  • Retrieve relevant memory before planning work where prior decisions or pitfalls could change the plan.
  • Make setup prerequisites explicit when they could block execution.
  • Reuse the repository root SPEC.md when present, otherwise apply the built-in defaults instead of redefining conventions per task.
  • Persist the task spec when future correction work will need a stable reference.
  • Use the self-check reference to remove execution-time guessing before implementation begins.
  • Name the files, systems, or components likely to be affected when that is already knowable.
  • Keep the plan implementation-oriented rather than managerial.
  • Make reasonable assumptions when the risk is low, and label them clearly.

Avoid

  • Padding the plan with timelines, staffing, or resource-allocation language unless the user explicitly asked for that.
  • Writing acceptance criteria that cannot be tested or observed.
  • Smuggling implementation details into the spec when the user only needs requirements.
  • Creating a long list of questions when a few explicit assumptions would keep momentum.
  • Handing a plan to implementation while blocking questions remain unresolved.
  • Letting implementation silently change scope, behavior, validation, or acceptance criteria.

Handoffs

  • Hand the resulting spec to spec-crlp once implementation feedback starts coming in.
  • Send durable constraints, setup rules, or project decisions to spec-index when they should be reusable later.
  • Keep repository-level conventions in the repository root SPEC.md when one exists, not inside one task-specific spec.
  • If the same repository preference keeps coming up, recommend creating or updating a repository root SPEC.md.

Example requests

  • "Before you code this, help me define the acceptance criteria and edge cases."
  • "Turn this rough feature idea into a concrete spec and execution plan."
  • "I do not want to jump into implementation yet. Clarify scope, assumptions, and validation first."

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.