spec-driven-workflow

spec-driven-workflow is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 58 tokens per session (2,613 once invoked), scanned A, original, Apache-2.0.

A spec-first development workflow: write a clear description of what a feature must and must not do before writing code. It also connects the description to acceptance checks and tests; TDD means writing tests as part of guiding development.

In plain words
What is it for?
Use it to define features, write acceptance criteria, plan work before coding, and create tests from those requirements.
Why use it?
It reduces misunderstandings and rework by making requirements explicit before implementation begins. The agreed description becomes the reference for deciding when the work is complete.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define features, write acceptance criteria, plan work before coding, and create tests from those requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/spec-driven-workflow
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.

Any agent
npx skills add Morningstar202604/awesome-skillkit --skill spec-driven-workflow
Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit

Made for: Claude Code, Codex.

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-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/spec-driven-workflow/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/spec-driven-workflow)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/spec-driven-workflow"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/spec-driven-workflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-driven-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/spec-driven-workflow"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/spec-driven-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,613 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00058 $0.02613
Opus 5.5 $0.00023 $0.01045
Sonnet 5.5 $0.00012 $0.00523
Haiku 4.5 $0.00006 $0.00261

Measured 1mo ago against content hash 618beb7d8663, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-driven-workflow 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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/spec_generator.py, scripts/test_extractor.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.

site/skills/programming/cicd/spec-driven-workflow/SKILL.md · 175 lines

How it starts

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

Spec-Driven Workflow

Enforces spec-first: write the spec before any code, extract test stubs from acceptance criteria after validation passes, then implement one item at a time. Every line of code traces back to a requirement in the spec.

Iron Law:

NO CODE WITHOUT AN APPROVED SPEC.
NO EXCEPTIONS. NO "QUICK PROTOTYPES." NO "I'LL DOCUMENT IT LATER."

Why spec-first: resolving ambiguity in a spec takes minutes; discovering it in production takes days; the spec is the definition of "done"; acceptance criteria translate 1:1 into test cases.

Input Checklist

Input Required Description
Feature name and description Yes The seed for generating the spec template, e.g. --name "User Authentication" --description "OAuth 2.0 login flow"
Requirements source Yes User-interview notes, existing code, constraints (performance budget/security/compatibility)
Test framework No pytest / jest / go-test (test_extractor's --framework); defaults to pytest
Spec storage path No e.g. named by feature under specs/ (see delivery criteria); defaults to project convention
Spec status Required at the implementation stage Draft / In Review / Approved (no implementation before Approved)

When inputs are missing, ask for all at once: "Please provide: (1) feature name and one-line description; (2) key requirements/constraints/explicit non-goals; (3) test framework (pytest/jest/go-test)."

Pre-flight Checks

Run line by line; on any failure → fix per the remediation and STOP:

# 1. Python 3 is available
python3 --version
# Expected: Python 3.8+.

# 2. Both tool scripts exist
ls scripts/spec_generator.py scripts/test_extractor.py
# Expected: both filenames (run inside the skill directory). On failure: cd to the skill directory; still missing → STOP and report.
# Note: this skill has no spec_validator.py — spec completeness is validated manually by the Step 3 checklist.

# 3. The reference templates are in place
ls references/spec_format_guide.md references/acceptance_criteria_patterns.md references/bounded_autonomy_rules.md
# Expected: all three filenames. Missing → STOP and report an incomplete repo.

Read the full file on GitHub · 175 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · -11 tokens per session 618beb7d8663
  2. 1mo ago Changed · -164 lines · +32 tokens per session 4ae7fe487b3a
  3. 1mo ago First seen · 339 lines · 37 tokens per session scan A e6ad35b6fdf6

Subscribe to this mod's changes

spec-driven-workflow is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 25d ago), licensed Apache-2.0. It adds 58 tokens to every session and 2,613 once invoked, about $0.0002 per session on Opus 5.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-31.