Spec-Driven-Development: Instructions file for Claude Code

CLAUDE.md

Spec-Driven-Development CLAUDE.md is an instructions file for Claude Code from FredAntB/Spec-Driven-Development. It costs 459 tokens per session, scanned A, original, MIT.

A set of instructions for spec-driven development, a workflow that defines requirements, design, and tasks before implementation. Claude Code reads the instructions at the start of a session.

In plain words
What is it for?
Use it when starting or resuming a structured development task, reviewing requirements and design documents, tracking work, or handling conflicts between the design and the code.
Why use it?
It keeps implementation tied to an agreed specification and requires design updates when the implementation must change. It also prevents unfinished tasks from being marked complete without verification.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is FredAntB/Spec-Driven-Development's own configuration. It tells Claude Code how to work on Spec-Driven-Development itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Spec-Driven-Development configures →

Reuse

Borrowing it

Nothing to install: this file belongs to FredAntB/Spec-Driven-Development. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/FredAntB/Spec-Driven-Development/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/FredAntB/Spec-Driven-Development

Made for: Claude Code.

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-Development CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fredantb/spec-driven-development/claude-md/github.svg)](https://agentmods.dev/instructions/fredantb/spec-driven-development/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fredantb/spec-driven-development/claude-md"><img src="https://agentmods.dev/badge/instructions/fredantb/spec-driven-development/claude-md/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-Development CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fredantb/spec-driven-development/claude-md"><img src="https://agentmods.dev/badge/instructions/fredantb/spec-driven-development/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 459 This file is loaded in full into every session.
When invoked 459 The same file — it is already loaded in full.
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.00459 $0.00459
Opus 5.5 $0.00184 $0.00184
Sonnet 5.5 $0.00092 $0.00092
Haiku 4.5 $0.00046 $0.00046

Measured 1mo ago against content hash 35b69b04272c, 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-Development CLAUDE.md 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.

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.md · 63 lines

What it actually says

CLAUDE.md

Auto-read by Claude Code at session start.

Generated by the spec-driven-development skill.

Session startup — read in this order

  1. If CONTEXT.md exists — read it first

    • Resume the active task from the resume block
    • Announce which session this is and what you're picking up
    • Do not ask what to work on unless the user interrupts
  2. Read requirements.md — the contract for what the system does

  3. Read design.md — the blueprint for how it is built

  4. Read tasks.md — find the next incomplete [ ] task

If none of these files exist yet, the project has not been specced. Offer to run the SDD skill interview to create them.


Hard constraints

  • Never implement requirements not in requirements.md
  • Never alter the data model without updating design.md first
  • Never create files not listed or implied in design.md
  • Never mark a task [x] without verifying its acceptance criterion
  • Never guess when a requirement is ambiguous — ask instead

Divergence protocol

If implementation must deviate from design.md:

  1. Stop
  2. Describe the conflict clearly
  3. Wait for explicit user approval
  4. Update design.md FIRST, then implement
  5. Record the divergence in CONTEXT.md

CONTEXT.md update rules

At the end of each session (or at a natural stopping point):

  • Add a session log row: date, one-line summary, files changed
  • Update the resume block with the next active task
  • Record any divergences from design.md
  • Resolve any open questions that were answered

At the start of each session:

  • Read CONTEXT.md before doing anything else
  • Announce: "Session [N] resuming. Last worked on [task]. Picking up at [task]."

Skill mode

If the user wants to generate or update spec files, or set up AI config files, apply the full SDD skill from SKILL.md (if present in this folder). Otherwise operate as a spec-aware coding assistant using the existing files.

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 First seen · 63 lines · 459 tokens per session scan A 35b69b04272c

Subscribe to this mod's changes

Spec-Driven-Development CLAUDE.md is an instructions file published in the GitHub repository FredAntB/Spec-Driven-Development (155 stars, last pushed 5mo ago), licensed MIT. It adds 459 tokens to every session, about $0.0018 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-30.