agentleFS
Synter-Media-AISynter-Media-AI/free-skills/skills/spec-driven-dev/SKILL.md

spec-driven-dev

Skill4 starsChanged 6 months agoMITView on GitHub

Spec-driven dev workflow. Invoke before implementing any feature or fixing any bug — spec lookup, clarifications, plan approval.

12 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

13 rules. 0 are common, 9 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 9

    Distinctive

    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
  1. Distinctive:

    Check for an existing spec:

    line 10
  2. Very specific:

    If no spec exists, tell the user and create one from the template at docs/specs/templates/pr-spec.md.

    line 15
  3. Distinctive:

    If ANY box is unchecked, ask clarifying questions before proceeding.

    line 26
  4. Distinctive:

    Scope: Should this affect Z? Is this limited to one component?

    line 33
  5. Distinctive:

    Create BHV-AREA-NNN entries in the spec file:

    line 39
  6. Distinctive:

    Check if this change affects system architecture:

    line 48
  7. Very specific:

    If yes, check docs/specs/architecture/ for a relevant diagram.

    line 54
  8. Very specific:

    Update it or create a new one using docs/specs/templates/architecture-diagram.md.

    line 55
  9. Distinctive:

    Wait for explicit approval before writing code.

    line 76
  10. Distinctive:

    Update Status column: UNVERIFIED → MATCH or MISMATCH

    line 81
  11. Distinctive:

    Add test evidence to the spec

    line 82
  12. Very specific:

    Update docs/specs/bugs/ledger.md if bugs were found or fixed

    line 83
  13. Distinctive:

    Update architecture diagrams if data flow changed

    line 84

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

Step 1: Spec Lookup

Check for an existing spec:

  • PRs: docs/specs/history/prs/YYYY-MM/PR-<number>.md
  • Bugs: docs/specs/bugs/ledger.md
  • Baseline: docs/specs/baseline/<capability>/

If no spec exists, tell the user and create one from the template at docs/specs/templates/pr-spec.md.

Step 2: Ambiguity Check

Evaluate the request:

  • Expected behavior is defined with concrete inputs/outputs
  • Error cases and edge cases are specified
  • Scope is clear — which files change, which don't
  • There is only one reasonable implementation approach

If ANY box is unchecked, ask clarifying questions before proceeding.

Step 3: Clarifying Questions

Group your questions:

Behavior: What should happen when X? What's the output for Y? Scope: Should this affect Z? Is this limited to one component? Architecture: New agent tool or extend existing? DB migration needed? Testing: What assertions prove this works?

Step 4: Define Behavior Changes

Create BHV-AREA-NNN entries in the spec file:

  • AREA = category code (AGENT, AUTH, IDE, CONN, ADS, PPC, BILLING, WS, ONBOARD, REPORT, MCP, SEC, UI, INFRA, CREATIVE)
  • NNN = sequential number within that area
  • Fill in Before / After columns
  • Set Status to UNVERIFIED initially

Step 5: Architecture Diagram Check

Check if this change affects system architecture:

  • Does it add a new service or component?
  • Does it change data flow between existing components?
  • Does it modify database relationships?
  • Does it add a new integration path?

If yes, check docs/specs/architecture/ for a relevant diagram. Update it or create a new one using docs/specs/templates/architecture-diagram.md.

Existing diagrams:

  • system-context.md — top-level service map
  • agent-lifecycle.md — agent state machine
  • auth-flows.md — login and signup paths
  • conn-oauth-flow.md — platform OAuth sequence
  • billing-credit-flow.md — credit allocation and consumption
  • ws-multitenancy.md — workspace isolation ER diagram
  • ads-campaign-creation.md — campaign creation flow
  • mcp-transport.md — MCP server transport architecture

Step 6: Implementation Plan

Present:

  • Files to create or modify (with paths)
  • Expected behavior after implementation
  • What will NOT change
  • Diagrams to update (if any)
  • Test plan

Wait for explicit approval before writing code.

Step 7: Implement and Update Spec

After coding:

  1. Update Status column: UNVERIFIED → MATCH or MISMATCH
  2. Add test evidence to the spec
  3. Update docs/specs/bugs/ledger.md if bugs were found or fixed
  4. Update architecture diagrams if data flow changed
  5. Stage all spec files with your code: git add docs/specs/...

If the user says "just do it" or "skip the spec"

Say: "I want to build exactly what you need. Two quick questions to make sure I get it right." Then ask only the most critical clarification questions.


About this skill

Part of the Synter free skills collection — open-source agent skills for advertising, PPC, and marketing automation.

Want this skill (and 40+ more) running on autopilot against your live ad accounts? Try Synter — AI Agent Media Buyers that connect to Google, Meta, LinkedIn, TikTok, Reddit, Amazon, and 7+ more platforms.

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.