agentleFS
bolivian-perubolivian-peru/os-moda/skills/spec-driven-development/SKILL.md

spec-driven-development

Skill118 starsChanged 6 months agoApache-2.0View on GitHub

Build software via spec-driven development (github/spec-kit). Whenever the user asks for a feature larger than a one-line tweak, scaffold a spec-kit project, capture WHAT + WHY, declare tech stack, break into tasks, then iterate the implementation until tests pass.

68 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use using-agent-skills, git-workflow-and-versioning and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LLl0k0laDSkill

    using-agent-skills

    Use when starting a session or when you need to discover which skill applies to the current task. This is the meta-skill that governs how all other skills are discovered and invoked.

    Also in 28 projects that use this

  • LLl0k0laDSkill

    git-workflow-and-versioning

    Use when making any code change. Use when committing, branching, resolving conflicts, or when you need to organize work across multiple parallel streams.

    Also in 27 projects that use this

  • vinvcnSkill

    constraint-driven-development

    把一个项目的质量线确立为书面契约,并阻止 agent 悄悄降低它。通过访谈确定用户在意哪些维度,当用户心里没有数字时提供合理的默认阈值,把一切记录进 CONSTRAINTS.md,并盯住 diff 中质量线被削弱的迹象——新增的 @ts-ignore 或 eslint-disable 抑制注释、被跳过或删除的测试、被剥掉的断言、未实现的 stub、被调低的阈值。当没有任何质量线被写下来时使用;当用户说 "set up constraints" 或 "define our standards" 时;当用户希望把他们在意的维度——无障碍性、Web 性能、覆盖率——设置成被强制执行的约束时;当 agent 为了变绿不断静默检查或跳过测试时;当你需要一个覆盖率或性能阈值却不知道该选什么数字时;或者当 agent 写下的代码超出任何人会读的体量时。

    Also in 4 projects that use this

  • az9713Skill

    code-simplification

    Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

    Also in 31 projects that use this

  • az9713Skill

    deprecation-and-migration

    Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when deciding whether to maintain or sunset existing code.

    Also in 20 projects that use this

  • +7 more from LLl0k0laD

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 65 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Don't forget the audit trail: Every spec_kit_run is hash-chained in agentd's ledger.

    line 136
  2. Very specific:

    After spec_kit_init: "Project scaffolded at /workspace/csv-exporter.

    line 140
  3. Very specific:

    After specify: "Spec captured.

    line 142
  4. Very specific:

    After plan: "Tech stack locked: Python 3.12 + click + pytest.

    line 144
  5. Very specific:

    After implement (tests green): "Implementation complete.

    line 148
  6. Very specific:

    If implement fails after N iterations: stop, report which tests failed, ask the user.

    line 150
  7. Very specific:

    Every spec_kit_* tool call writes to agentd's hash-chained ledger:

    line 161

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

You ship software through GitHub's spec-kit (92K stars, MIT, baked into every osModa spawn). The workflow makes you a closed loop: humans declare WHAT and WHY; you generate plan, tasks, code; tests are the inner-loop signal of success; the human is the outer-loop reviewer.

When to invoke spec-kit

Use spec-kit when:

  • The user asks for a feature implementation: "build me X", "add Y", "implement Z", "rewrite this so it does W"
  • The work spans more than ~5 file edits
  • Tests will exist that you can iterate against
  • The user wants a reproducible artifact trail (specs, plans, tasks)

Skip spec-kit when:

  • One-line fix or typo
  • Operational task: use system-monitor, self-healing, app-deployer instead
  • Exploratory hack: free-form chat
  • The user explicitly says "just edit the file" / "don't write a spec"

The 8-step workflow

#SkillPurpose
1speckit-constitutionProject governance: code style, test policy, language choice
2speckit-specifyWhat & why (no tech stack yet). User stories with priorities.
3speckit-clarify (optional)Ask user for gaps before locking the plan
4speckit-planTech stack + architecture choices
5speckit-tasksOrdered actionable task list
6speckit-analyze (optional)Cross-artifact consistency check
7speckit-checklist (optional)Quality gates before implement
8speckit-implementGenerate code, run tests, iterate until green

How to call from your tool box

The two MCP tools spec_kit_init + spec_kit_run wrap the spec-kit workflow. Use them — don't shell out to specify directly. Tool calls are audit-ledgered; raw shell isn't.

Step 1 — scaffold

spec_kit_init({
  project_name: "csv-exporter",
  integration: "claude",
  constitution_seed: "Python 3.12+, pytest for tests, no async, single binary"
})

Returns { project_path: "/workspace/csv-exporter", skills: [9 speckit-*], next_action }. The 9 skills become available as /speckit-* slash commands inside that project.

Step 2 — set governance

spec_kit_run({
  project_path: "/workspace/csv-exporter",
  command: "constitution",
  prompt: "Python 3.12+, pytest, no async runtime, all functions have docstrings, max 200 LOC per module"
})

Writes /workspace/csv-exporter/memory/constitution.md. Read the user's .specify/.constitution-seed.md first if it exists — they may have pre-staged principles.

Step 3 — capture WHAT and WHY

spec_kit_run({
  project_path: ".../csv-exporter",
  command: "specify",
  prompt: "<user's exact feature request, expanded with their goals>"
})

Resist the urge to declare a tech stack here — that's step 4. Specify is purely product-level.

Step 4 — clarify (only if specify left gaps)

spec_kit_run({ command: "clarify", prompt: "" })

This is interactive in the user-facing flow. From your loop: skip unless specify output mentions ambiguities.

Step 5 — declare the plan

spec_kit_run({
  command: "plan",
  prompt: "Python 3.12, click for CLI, pandas for parsing, pytest for tests, single-file binary via shiv"
})

Writes /specs/<feature>/plan.md.

Step 6 — break into tasks

spec_kit_run({ command: "tasks", prompt: "" })

Writes /specs/<feature>/tasks.md with numbered ordered tasks.

Step 7 — implement

spec_kit_run({
  command: "implement",
  prompt: "",
  timeout_seconds: 1800   // give it 30 min for non-trivial features
})

This is the long step. The agent reads tasks.md, generates code, runs tests, iterates. Do not interrupt unless the user explicitly aborts. Token usage will be high — that's by design (token-max philosophy).

Common pitfalls

  • Don't run implement before plan — the implement step reads plan.md for the tech stack. Without it, the agent guesses (often wrong).
  • Don't write the spec FOR the user. Capture their exact words for the WHAT/WHY. If their description is too vague to act on, run clarify instead of inventing requirements.
  • Don't skip constitution for multi-feature projects. It's the cross-feature governance contract. Without it, feature 2 will violate decisions you implicitly made in feature 1.
  • Don't run two spec_kit_runs in parallel for the same project. They contend for the same .specify/ state. Sequence them.
  • Don't forget the audit trail. Every spec_kit_run is hash-chained in agentd's ledger. Querying agentctl events --type spec-kit shows the full project history. Show this to the user when they ask "what did you do?"

Telling the user about progress

After spec_kit_init: "Project scaffolded at /workspace/csv-exporter. Now capturing requirements."

After specify: "Spec captured. Read /workspace/csv-exporter/specs/0001-*/spec.md and review the user stories. Want me to clarify anything before locking the plan?"

After plan: "Tech stack locked: Python 3.12 + click + pytest. Tasks coming next."

During implement: report at task boundaries. Don't stream every line of compile output.

After implement (tests green): "Implementation complete. Tests pass. Specs and code are at /workspace/csv-exporter/. Next: review the diff (git diff if you initialized git) or run the binary."

If implement fails after N iterations: stop, report which tests failed, ask the user. Don't burn tokens flailing — they're cheap, but goodwill isn't.

Reference templates

The pre-deployed templates live at /var/lib/osmoda/templates/spec-kit/. Useful when:

  • A user asks "what does a spec look like?" — show them spec-template.md
  • You want to reference the canonical constitution structure — constitution-template.md
  • You're debugging why a speckit-* skill output looks wrong — compare against the template

Audit + visibility

Every spec_kit_* tool call writes to agentd's hash-chained ledger:

agentctl events --type spec-kit --limit 20

External integrators can query the per-server /api/v1/spec-kit/projects endpoint (see Phase 7-LITE) to discover all spec-kit projects on a given osModa server. This makes the substrate queryable in the YC sense — every action produces an artifact the intelligence at the center of the company can learn from.

Why this skill exists

osModa's positioning: GitHub gives you the workflow. osModa gives you the workstation. Spec-driven development is the canonical AI-coding-agent workflow as of 2026 — joining it is how we live the "software factories" YC principle structurally, not aspirationally. Use it for non-trivial work; the user is opting into a real software factory each time.

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.