spec-driven-dev

A step-by-step workflow for turning a feature idea into a written product plan, design, tickets, and tasks. It moves through stages from exploring the idea to preparing work for coding.

In plain words
What is it for?
Use it to create structured product requirements, designs, tickets, and coding tasks from a feature idea. It also supports checking the required document formats and syncing the finished specification.
Why use it?
It reduces confusion about what should be built and in what order. Validation checks and saved progress help prevent missing details and allow work to resume after a failure.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kivo360/omoios/spec-driven-dev
Any agent
npx skills add kivo360/OmoiOS --skill spec-driven-dev
Clone the repo
git clone --depth 1 https://github.com/kivo360/OmoiOS

Made for: Claude Code, Codex.

Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,217 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.13217
Opus 5 $0.00034 $0.06609
Sonnet 5 $0.00014 $0.02643
Haiku 4.5 $0.00007 $0.01322

Measured 3d ago against content hash a5abcabba747, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

spec-driven-dev scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/api_client.py, scripts/generate_ids.py, scripts/init_feature.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/spec-driven-dev/SKILL.md · 1,942 lines

How it starts

The opening of the file, as written. The whole thing — 1,942 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Spec-Driven Development

A systematic workflow for turning feature ideas into actionable work items that AI agents can execute.

Architecture Note: This skill is designed to work with a state machine orchestrator that executes each phase as a separate Claude SDK session. Each phase saves checkpoints to the database and can resume from any point after failure. See docs/spec-execution-stability.md for the full architecture.


🔴 CRITICAL: Read This Skill Document Thoroughly

YOU MUST follow this skill document exactly. This is not optional guidance—it is the required workflow.

Before Creating ANY Spec Files:

  1. READ THIS ENTIRE SKILL DOCUMENT - Don't skim. Read every section to understand the required formats.
  2. CHECK EXISTING FILES - Run ls -la .omoi_os/ to see what already exists. Don't duplicate.
  3. REFERENCE THE TEMPLATES - Every file type has a specific format. Copy the exact structure.
  4. USE THE CLI TOOLS - Validate with python spec_cli.py validate before syncing.

During Spec Creation:

  1. REFER BACK TO THIS DOCUMENT OFTEN - When unsure about format, re-read the relevant section.
  2. COPY FRONTMATTER EXACTLY - Don't improvise. Use the exact field names shown in templates.
  3. CHECK YOUR WORK - After creating files, run validation to catch errors early.

Output Requirements:

  • ALL files MUST have YAML frontmatter - No exceptions
  • ALL frontmatter fields MUST match the templates - Use exact field names
  • ALL specs MUST be synced - Run python spec_cli.py sync push when done
  • ALL IDs MUST follow conventions - TKT-001, TSK-001, REQ-FEATURE-001, etc.

If You're Unsure:

  1. Re-read this skill document - The answer is here
  2. Look at the Concrete Example section - Full file contents are provided
  3. Run validation - python spec_cli.py validate will tell you what's wrong

🔄 State Machine Architecture

Overview

Spec generation runs as a state machine with discrete phases. Each phase:

  1. Receives context from previous phases
  2. Executes a focused, time-boxed Claude SDK session
  3. Validates output with evaluators
  4. Saves checkpoint to database and file system
  5. Stores session transcript for potential resumption

Read the full file on GitHub · 1,942 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 1,942 lines · 68 tokens per session scan A a5abcabba747

Subscribe to this mod's changes

spec-driven-dev is a skill published in the GitHub repository kivo360/OmoiOS (75 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 68 tokens to every session and 13,217 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.