spec-driven-dev-v2

spec-driven-dev-v2 is a skill for Claude Code, Codex from LichAmnesia/lich-skills. It costs 80 tokens per session (3,199 once invoked), scanned A, original, MIT.

A way to organize long-running software work into projects, sprints, and tasks, with separate task workspaces and repeated review cycles. A monorepo is one repository containing multiple related parts of a system; this workflow is designed for work spread across many files or parts.

In plain words
What is it for?
Use it to manage multi-day agent projects, break features into tasks, run review-and-fix loops, enforce architectural rules with checks, and resume work from saved state.
Why use it?
It keeps an agent’s progress, reviews, rules, and decisions understandable across sessions, while making it easier to isolate changes and catch problems before merging them.

Skill for Claude CodeCodex

Part of the lich-skills plugin — 12 skills shipped together

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/lichamnesia/lich-skills/spec-driven-dev-v2
Any agent
npx skills add LichAmnesia/lich-skills --skill spec-driven-dev-v2
Clone the repo
git clone --depth 1 https://github.com/LichAmnesia/lich-skills

Made for: Claude Code, Codex.

Or install lich-skills, the plugin that ships this one along with the rest of its 12 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-driven-dev-v2

README.md
[![agentmods](https://agentmods.dev/badge/skills/lichamnesia/lich-skills/spec-driven-dev-v2.svg)](https://agentmods.dev/skills/lichamnesia/lich-skills/spec-driven-dev-v2)
Your own site
<a href="https://agentmods.dev/skills/lichamnesia/lich-skills/spec-driven-dev-v2"><img src="https://agentmods.dev/badge/skills/lichamnesia/lich-skills/spec-driven-dev-v2.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,199 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.00080 $0.03199
Opus 5 $0.00040 $0.01599
Sonnet 5 $0.00016 $0.00640
Haiku 4.5 $0.00008 $0.00320

Measured 4d ago against content hash 562d27384583, 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-v2 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 4d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/governance-check.sh, scripts/task-lint.sh), 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.

skills/spec-driven-dev-v2/SKILL.md · 291 lines

How it starts

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

Spec-Driven Development v2

v1 assumed one agent shipping one feature in one session. v2 assumes an orchestrator (or a human) driving the agent across many sessions — possibly for days — and keeps work correct the entire time.

v2 adds:

  1. Three-layer hierarchy — Project → Sprint → Task
  2. Per-task state — JSON files an orchestrator can read to resume cold
  3. Review round-loop — review → feedback → modify → re-review until clean
  4. Worktree isolation — every task runs in a clean checkout, revertable alone
  5. Context pack — the briefing a reasoning-blind subagent reviewer needs
  6. Mechanical task gate — sizing/acceptance/rollback checks enforced by script
  7. Governance-as-code — boundary rules live in lint/CI, not markdown
  8. Artifact registry — new rules captured from reviews graduate to lint

When to use v2 over v1

Use v2 if any of:

  • Expected agent time > 4 hours
  • More than ~8 tasks, or more than one vertical slice
  • A subagent (/critic, Agent subagent_type=critic, etc.) reviews each task
  • An orchestrator (/loop, autoresearch:ship, goal-driven) drives iteration
  • Architectural boundaries (layering, dependency direction) must hold mechanically

For one-session features, use spec-driven-dev (v1) — v2 is overhead for them.

The Hierarchy

context/
  dev/
    projects-001-<slug>/                # one project = one RFC
      RFC.md                            # the contract: what & why
      PLAN.md                           # sprint list + dependency graph
      STATE.json                        # {current_sprint, status}
      sprints-001-<slug>/               # one sprint = one checkpoint
        SPRINT.md                       # goal, scope, exit criteria
        TASKS.md                        # task status tracker
        REVIEWS.md                      # review round log
        STATE.json                      # {current_task, current_round, next_action}
        tasks/
          TK-001-<slug>.md              # one task = one worktree
          TK-002-<slug>.md
        reviews/
          RV-001-round1.md              # round 1 for TK-001
          RV-001-round2.md              # after modify, round 2
          RV-001-round3.md              # …until verdict=approve
      sprints-002-<slug>/
        …
  artifact-registry/
    rules/
      RULE-001-<slug>.md                # captured pattern → lint rule
scripts/
  governance-check.sh                   # boundary + state validator
  task-lint.sh                          # mechanical task gate

Read the full file on GitHub · 291 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. 4d ago First seen · 291 lines · 80 tokens per session scan A 562d27384583

Subscribe to this mod's changes

spec-driven-dev-v2 is a skill published in the GitHub repository LichAmnesia/lich-skills (233 stars, last pushed 2mo ago), licensed MIT. It adds 80 tokens to every session and 3,199 once invoked, about $0.0004 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.

Related

Other skills, from other repositories

tendem-tasks

Use when a task is non-trivial and could benefit from human involvement — delegating work to a human expert (research, review, labeling, content, design, data work) and driving it end to end. Also use whenever Tendem is mentioned or its tools are in play.

Toloka/tendem-mcp · 62 tokens

flowstudio-power-automate-governance

Govern Power Automate flows and Power Apps at scale using the FlowStudio MCP cached store. Classify flows by business impact, detect orphaned resources, audit connector usage, enforce compliance standards, manage notification rules, and compute governance scores — all without Dataverse or the CoE Starter Kit. Load…

ninihen1/power-automate-mcp-skills · 151 tokens

tendem-task

Explicitly submit a new task to Tendem (hybrid AI + human experts) and drive it through scoping. Invoke as $tendem-task .

Toloka/tendem-mcp · 44 tokens

tendem-status

Explicitly check on a Tendem task and advance it (poll cleanly, don't busy-loop). Invoke as $tendem-status [taskid] — omit the taskid to pick from recent tasks.

Toloka/tendem-mcp · 45 tokens

octoperf-workspace

A workspace is the container everything else lives in. Read this before adding someone to one, changing what they can do, or wondering why a provider a colleague swears exists is nowhere to be found.

OctoPerf/octoperf-claude-plugins · 0 tokens

manage-helpdesk-ops

Connect Freshdesk, Zendesk, Jira, ClickUp, Trello, Airtable, Guesty, Hosthub, WebHotelier, couriers, Viva, or Yuboto, and create courier returns. Use when the user wants helpdesk tickets, boards, bookings, payments, or shipping on an agent — not Voice Logica support tickets.

voicelogica/voice-logica-plugin · 77 tokens