sdlc-spec

sdlc-spec is a command for coding agents from MCKRUZ/claude-code-sdlc. It costs 0 tokens per session (1,343 once invoked), scanned A, original, MIT.

A command that turns a feature request or user story into a written, build-ready specification. The specification records the goal, requirements, risks, and acceptance checks that guide implementation and review.

In plain words
What is it for?
Use it to create or refine a spec in a repository’s specs directory, check whether it is ready, and confirm its risk level with a human.
Why use it?
It makes important decisions explicit before coding begins and gives the builder and reviewer a shared source of truth.

Command

Part of the claude-code-sdlc plugin — 9 skills, 28 commands, 20 agents 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 commands/mckruz/claude-code-sdlc/sdlc-spec
Clone the repo
git clone --depth 1 https://github.com/MCKRUZ/claude-code-sdlc

Or install claude-code-sdlc, the plugin that ships this one along with the rest of its 9 skills, 28 commands, 20 agents.

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 sdlc-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-spec.svg)](https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-spec)
Your own site
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-spec"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,343 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.00000 $0.01343
Opus 5 $0.00000 $0.00672
Sonnet 5 $0.00000 $0.00269
Haiku 4.5 $0.00000 $0.00134

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

Security

Grade A, and why

sdlc-spec 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.

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.

commands/sdlc-spec.md · 87 lines

How it starts

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

/sdlc-spec — Author a Ready Spec for the Build Loop

Turn a story into a ready spec (specs/NNNN-name.md) that clears the Definition of Ready before anyone builds it. This is the Intent beat of the Build loop wrapped as one command: scaffold → author → enforce the DoR → confirm the risk tier with a human. No spec, no build.

The spec is the durable per-change record — one spec = one branch = one PR. It lives in the repo's specs/ directory (in version control, not only under .sdlc/), because the agent re-reads it every session and the grader grades against it.

Instructions

  1. Resolve mode and repo root:

    • Workflow mode (default): look for .sdlc/state.yaml. The repo root is the directory containing .sdlc/. Read the spec backlog and risk-tier-map.md from Foundation for context.
    • Standalone mode (--repo <path>, or no .sdlc/ found): operate on the given repo with provisional context. Note the missing engagement context in the spec's source field.
  2. Gather Intent. From the story or the user's request, draft the spec content. Drive the Definition of Ready — do not let any of these stay implicit:

    • Goal — one sentence: what capability exists when this is done.
    • Why — the outcome that makes this worth building.
    • Scope in / Scope out — both stated. What the change must not touch is load-bearing.
    • Acceptance checks — each one testable. Apply the vague-line test to every line: "Could two people build different things from this?" If yes, rewrite it with a concrete value (a status code, a JSON body, a count, a path) until they couldn't.
    • Silent decisions — surface every unwritten product choice (fail open or closed? what does a blocked user see?) onto the spec's Decision List with a named human owner and an answer clock. The agent must not guess these.
    • Harness context — name the ONE existing pattern this change reuses, so the agent extends the codebase instead of inventing a second way to do something.

Read the full file on GitHub · 87 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 · 87 lines · 0 tokens per session scan A d9229dbe1429

Subscribe to this mod's changes

sdlc-spec is a command published in the GitHub repository MCKRUZ/claude-code-sdlc (4 stars, last pushed 5d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,343 tokens. 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.