agentleFS
gustavo-meilusgustavo-meilus/superpipelines/skills/sk-spec-driven-development/SKILL.md

sk-spec-driven-development

Skill4 starsChanged 6 months agoMITView on GitHub

Establishes a formal spec→plan→tasks→implement contract for multi-step feature work. Use when authoring multi-step pipelines, building new features, refactoring systems, or when a request is too ambiguous for direct execution and a verified specification must precede implementation.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    MANDATORY HUMAN APPROVAL: Before dispatching parallel implementation, spec.md and tasks.md are presented to the user.

    line 40
  2. Very specific:

    Every acceptance criterion in spec.md MUST be mapped to at least one task in tasks.md.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

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

Spec-Driven Development (SDD) — Workflow Reference

<glossary> <term name="spec.md">The canonical contract defining WHAT and WHY, focusing on user journeys and success criteria.</term> <term name="plan.md">The technical architecture document defining HOW, including stack, API contracts, and risk mitigations.</term> <term name="tasks.md">A decomposition of the plan into small, independent, and verifiable units of work (T-1, T-2, etc.).</term> </glossary>

The Four Phases

<protocol> ### 1. SPECIFY (`/specify`) - **Goal**: Define the outcome without implementation details. - User journeys, success criteria (AC), non-goals, and constraints are captured. - **Invariant**: The spec must be readable without code; it must answer "What does done look like?"

2. PLAN (/plan)

  • Goal: Design the technical implementation.
  • Tech stack, architecture (contracts/schemas), dependency matrix, and risks are defined.
  • Ambiguities surfaced in the spec are resolved via /clarify.

3. TASKS (/tasks)

  • Goal: Decompose the plan into chunks (5–30 min per agent session).
  • Each task requires a stable ID, description, file list, and verifiable AC.
  • Validation: Implementation is blocked if any spec AC lacks a corresponding task.

4. IMPLEMENT (/implement)

  • Goal: Execute tasks in parallel where dependencies allow.
  • Each task runs through an isolated RPI loop (Research, Plan, Implement).
  • pipeline-state.json is reconciled upon completion or failure of each task.</protocol>
<HARD-GATE> **MANDATORY HUMAN APPROVAL**: Before dispatching parallel implementation, `spec.md` and `tasks.md` are presented to the user. Execution waits for explicit `APPROVE`. A misunderstood spec at this stage will cause all parallel workers to fail simultaneously. </HARD-GATE>

Artifact Skeletons

<artifacts> ### `spec.md` - **Context**: Motivation for the change. - **User Journeys**: Scenarios and expected outcomes. - **Success Criteria**: Numbered list of verifiable ACs. - **Non-Goals**: Explicit out-of-scope items.

plan.md

  • Architecture: Layer diagrams and data flow.
  • API Contracts: Schemas and signatures.
  • Dependency Matrix: Upstream/downstream component mapping.

tasks.md

  • ID: T-1, T-2, etc.
  • Acceptance: A concrete command or check that returns pass/fail.
  • Depends On: Upstream task IDs.</artifacts>

Pattern Mapping

<mapping_table>

SDD CommandPattern 5 PhaseOutcome
/specifyPhase 1spec.md
/planPhase 2plan.md
/tasksPhase 3tasks.md
/analyzePhase 4Pre-gate validation
ApprovalPhase 4bHuman authorization
/implementPhase 5Parallel execution
</mapping_table>
<invariants> - Every acceptance criterion in `spec.md` MUST be mapped to at least one task in `tasks.md`. - Tasks must be small enough for a single agent session (avoiding context bloat). - Strict write/review isolation is maintained during the implementation phase. </invariants>

Reference Files

  • sk-4d-method/SKILL.md — Per-invocation wrapper.
  • sk-pipeline-patterns/SKILL.md — Pattern 5 definition.
  • sk-write-review-isolation/SKILL.md — Implementation review loop.
  • sk-pipeline-state/SKILL.md — State reconciliation rules.

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.