agentleFS
anaregdesignanaregdesign/skills/skills/development/spec-driven-workflow/SKILL.md

spec-driven-workflow

Skill2 starsChanged 9 months agoMITView on GitHub

Own the spec-first planning workflow for feature or behavior work. Use when the work needs user-visible requirements under `/doc/spec/`, a temporary execution plan in `/doc/plan.md`, ordered hierarchical sections using `Section`, `Subsection`, and optional `Sub-subsection` headings as needed, checkbox maintenance during implementation, and cleanup of the temporary plan file once all tracked work is done. Do not use this skill to decide app-code architecture or cloud platform topology.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

43 rules. 0 are common, 18 are distinctive, and 25 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 18

    Distinctive

    This author's own choices. Worth a look.

  • 25

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to turn a development request into a spec-first, plan-driven workflow.

    line 10
  2. Very specific:

    Keep the requirements document focused on what the user sees, needs, and accepts.

    line 11
  3. Distinctive:

    If the incoming request is overly detailed or repetitive, propose a higher-level goal framing, show the preserved constraints, and ask the …

    line 12
  4. Very specific:

    Read references/spec-documentation.md before writing or updating /doc/spec/.

    line 17
  5. Very specific:

    Read references/plan-documentation.md before creating or rewriting /doc/plan.md.

    line 18
  6. Very specific:

    Read references/commit-history-guidance.md before recording shared commit history.

    line 19
  7. Very specific:

    Read references/plan-execution-workflow.md before executing the plan.

    line 20
  8. Very specific:

    if /doc/spec/ is empty or the relevant spec does not exist yet, start by creating the initial user-facing spec under /doc/spec/

    line 22
  9. Distinctive:

    if the incoming instruction is overly fine-grained, propose a higher-level goal framing and ask the instruction giver to review it before …

    line 23
  10. Very specific:

    create or update the temporary execution tracker in /doc/plan.md

    line 24
  11. Very specific:

    keep /doc/plan.md checkboxes current

    line 27
  12. Distinctive:

    update the spec and plan if accepted behavior or execution sequence changes

    line 30
  13. Very specific:

    Document the user-visible requirement under /doc/spec/ before substantial implementation begins.

    line 37
  14. Very specific:

    If /doc/spec/ has no relevant document for the request yet, create the initial spec before creating the main implementation.

    line 38
  15. Very specific:

    Create or update /doc/plan.md before substantial implementation so execution is tracked in one place.

    line 39
  16. Very specific:

    Keep /doc/plan.md temporary.

    line 40
  17. Distinctive:

    When incoming instructions are overly fine-grained or repetitive, propose a higher-level goal that preserves the user's intent and ask the …

    line 41
  18. Very specific:

    use a single Section for simple, directly executable work

    line 44
  19. Very specific:

    add Subsection when a section spans several reviewable slices

    line 45
  20. Very specific:

    add Sub-subsection only when a subsection still needs a deeper ordered breakdown

    line 46
  21. Distinctive:

    Update checkboxes as work completes.

    line 48
  22. Distinctive:

    Remove or rewrite stale plan items when the work changes.

    line 49
  23. Distinctive:

    Keep shared commit history in Conventional Commits format when the repository uses it.

    line 51
  24. Distinctive:

    Prefer one logical, reviewable work unit per commit when practical.

    line 52
  25. Distinctive:

    Keep the spec and plan aligned.

    line 54
  26. Very specific:

    Do not turn /doc/plan.md into a permanent history log.

    line 55
  27. Very specific:

    Create /doc/spec/ if it does not exist.

    line 61
  28. Very specific:

    If /doc/spec/ exists but does not yet contain a relevant document for the request, start by creating the initial spec file.

    line 62
  29. Distinctive:

    Use a clear filename that ties back to the work item, typically with a stable slug.

    line 63
  30. Distinctive:

    If the request arrives as repeated micro-instructions, show a higher-level goal framing around the user goal, visible outcome, and real …

    line 65
  31. Very specific:

    Use /doc/plan.md as the temporary execution tracker for the current delivery unit.

    line 71
  32. Distinctive:

    Start with only the hierarchy levels that the work actually needs.

    line 72
  33. Distinctive:

    Keep the lowest active heading immediately executable.

    line 73
  34. Very specific:

    Add Subsection only when several reviewable slices need grouping.

    line 74
  35. Very specific:

    Add Sub-subsection only when a subsection still needs another ordered layer.

    line 75
  36. Distinctive:

    Keep plan items about delivery steps, not vague aspirations.

    line 77
  37. Distinctive:

    Check off the matching plan checkbox as each slice is finished.

    line 82
  38. Very specific:

    Update /doc/plan.md if work is reordered, split, or moved between Section, Subsection, and Sub-subsection blocks.

    line 83
  39. Distinctive:

    Update the spec when accepted behavior changes.

    line 86
  40. Distinctive:

    Keep the active plan small enough to stay useful.

    line 87
  41. Very specific:

    Delete /doc/plan.md once there is no remaining tracked work.

    line 92
  42. Very specific:

    Keep the durable behavior description in /doc/spec/, not in the deleted plan file.

    line 93
  43. Very specific:

    commit history and Conventional Commits guidance: references/commit-history-guidance.md

    line 99

“Common” is measured: kept by at least 6 in 10 of the 8 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 Driven Workflow

Overview

Use this skill to turn a development request into a spec-first, plan-driven workflow. Capture the user-visible requirement in /doc/spec/ first, then create a temporary execution tracker in /doc/plan.md and keep the spec and plan synchronized until implementation is complete. Keep the requirements document focused on what the user sees, needs, and accepts. Keep /doc/plan.md focused on execution state, sequencing, and checkbox progress. Delete /doc/plan.md once every tracked checkbox is complete so only durable project documents remain. If the incoming request is overly detailed or repetitive, propose a higher-level goal framing, show the preserved constraints, and ask the instruction giver to review that reframing before you drive the spec and plan from it. This skill owns planning artifacts and shared commit-log workflow, not app architecture or cloud platform rules. Pair it with the relevant coding or hosting skill after the spec and execution path are clear.

Quick Start

  1. Read references/spec-documentation.md before writing or updating /doc/spec/.
  2. Read references/plan-documentation.md before creating or rewriting /doc/plan.md.
  3. Read references/commit-history-guidance.md before recording shared commit history.
  4. Read references/plan-execution-workflow.md before executing the plan.
  5. For a new development request:
    • if /doc/spec/ is empty or the relevant spec does not exist yet, start by creating the initial user-facing spec under /doc/spec/
    • if the incoming instruction is overly fine-grained, propose a higher-level goal framing and ask the instruction giver to review it before drafting the spec and plan
    • create or update the temporary execution tracker in /doc/plan.md
    • choose only the hierarchy levels the work needs: a single Section for simple work, add Subsection for grouped reviewable slices, and add Sub-subsection only when a subsection still needs a deeper ordered breakdown
  6. During implementation:
    • keep /doc/plan.md checkboxes current
    • record changes in deliberate, reviewable commit units
    • revise the plan when technical findings change the execution path, sequencing, or slice boundaries
    • update the spec and plan if accepted behavior or execution sequence changes
  7. At completion:
    • confirm all plan checkboxes are done or intentionally removed
    • delete /doc/plan.md

Non-Negotiable Rules

  • Document the user-visible requirement under /doc/spec/ before substantial implementation begins.
  • If /doc/spec/ has no relevant document for the request yet, create the initial spec before creating the main implementation.
  • Create or update /doc/plan.md before substantial implementation so execution is tracked in one place.
  • Keep /doc/plan.md temporary. Delete it when all tracked checkboxes are complete and no execution tracking is still needed.
  • When incoming instructions are overly fine-grained or repetitive, propose a higher-level goal that preserves the user's intent and ask the instruction giver to review it before adopting it.
  • Preserve hard constraints, acceptance criteria, and externally required sequencing, but do not mirror incidental micromanagement step by step.
  • Structure /doc/plan.md as an ordered hierarchy only to the extent the work needs it:
    • use a single Section for simple, directly executable work
    • add Subsection when a section spans several reviewable slices
    • add Sub-subsection only when a subsection still needs a deeper ordered breakdown
  • Break work into the smallest meaningful reviewable steps and record them as checkboxes under the lowest useful heading.
  • Update checkboxes as work completes. Do not leave finished steps unchecked.
  • Remove or rewrite stale plan items when the work changes. Do not preserve obsolete steps just for history.
  • Revise /doc/plan.md when implementation reveals a better technical path. Do not force execution to follow an outdated plan.
  • Keep shared commit history in Conventional Commits format when the repository uses it.
  • Prefer one logical, reviewable work unit per commit when practical.
  • Split behavior changes, refactors, docs, tests, and dependency updates into separate commits when they represent different reasons to change, but do not force tiny broken commits.
  • Keep the spec and plan aligned. Do not let one artifact tell a different story from the other.
  • Do not turn /doc/plan.md into a permanent history log. When the work is done, delete it.

Workflow

1. Capture the request in /doc/spec

  • Create /doc/spec/ if it does not exist.
  • If /doc/spec/ exists but does not yet contain a relevant document for the request, start by creating the initial spec file.
  • Use a clear filename that ties back to the work item, typically with a stable slug.
  • Capture the request as a user-facing requirement document before writing the main implementation.
  • If the request arrives as repeated micro-instructions, show a higher-level goal framing around the user goal, visible outcome, and real constraints, then ask the instruction giver to confirm it before you rely on it.
  • Link the spec to /doc/plan.md while the temporary plan exists.

2. Create or update /doc/plan.md

  • Create /doc/ if it does not exist.
  • Use /doc/plan.md as the temporary execution tracker for the current delivery unit.
  • Start with only the hierarchy levels that the work actually needs.
  • Keep the lowest active heading immediately executable.
  • Add Subsection only when several reviewable slices need grouping.
  • Add Sub-subsection only when a subsection still needs another ordered layer.
  • Once the reframed goal is reviewed, plan against that higher-level goal rather than every repeated instruction line.
  • Keep plan items about delivery steps, not vague aspirations.

3. Implement and keep the workflow current

  • Complete work one meaningful slice at a time.
  • Check off the matching plan checkbox as each slice is finished.
  • Update /doc/plan.md if work is reordered, split, or moved between Section, Subsection, and Sub-subsection blocks.
  • Revise /doc/plan.md when technical review or implementation findings change dependencies, sequencing, or slice boundaries.
  • Record progress in coherent commits that match the current execution slice.
  • Update the spec when accepted behavior changes.
  • Keep the active plan small enough to stay useful.

4. Finish cleanly

  • Confirm every plan checkbox is complete or intentionally removed.
  • Delete /doc/plan.md once there is no remaining tracked work.
  • Keep the durable behavior description in /doc/spec/, not in the deleted plan file.

References

  • spec-writing guidance: references/spec-documentation.md
  • /doc/plan.md hierarchical structure and checkbox guidance: references/plan-documentation.md
  • commit history and Conventional Commits guidance: references/commit-history-guidance.md
  • plan execution and cleanup workflow: references/plan-execution-workflow.md

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.