sdlc-refine

sdlc-refine is a command for Claude Code from MCKRUZ/claude-code-sdlc. It costs 0 tokens per session (5,250 once invoked), scanned A, original, MIT.

A command for reviewing sprint specifications and checking whether each has enough detail to be ready for engineering work. It also records separate Engineering and Data assessments and lists unresolved gaps.

In plain words
What is it for?
Use it to prepare a refinement agenda, inspect why specifications are not ready, and update upstream planning documents when a gap belongs to an earlier project phase.
Why use it?
It removes the need to manually find incomplete specifications, pending assessments, and overdue decisions before a sprint begins.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-code-sdlc plugin — 10 skills, 32 commands, 21 agents, 1 hook shipped together

Good fit Use it to prepare a refinement agenda, inspect why specifications are not ready, and update upstream planning documents when a gap belongs to an earlier project phase.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MCKRUZ/claude-code-sdlc
Claude Code
/plugin install claude-code-sdlc

Made for: Claude Code.

Or install claude-code-sdlc, the plugin that ships this one along with the rest of its 10 skills, 32 commands, 21 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-refine/github.svg)](https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-refine)
Your own site
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-refine"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-refine/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 sdlc-refine

Your own site · 80×15
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-refine"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-refine.svg" alt="Reviewed on agentmods" width="80" 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 5,250 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.00000 $0.05250
Opus 5.5 $0.00000 $0.02100
Sonnet 5.5 $0.00000 $0.01050
Haiku 4.5 $0.00000 $0.00525

Measured 9d ago against content hash 68b73a38e782, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sdlc-refine 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 9d 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-refine.md · 293 lines

How it starts

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

/sdlc-refine — Refine the Sprint's Specs to Ready

Refine the specs slated into a sprint (or one spec) until each clears the Definition of Ready and its independent Engineering and Data verdicts — the weekly Intent-triage ceremony made executable. With no arguments it renders the refinement agenda for the Mon/Wed/Fri review: which slated specs are NOT READY and why, which verdicts are pending and for how long, which DL-NN decisions are overdue. It never approves anything itself, never assigns a tier, never answers a decision, and never edits check_spec.py. Works inside an SDLC project or standalone against any repo with a specs/ directory.

Refinement runs in any phase where specs exist — Foundation onward, and mid-Build for the next sprint. A gap that lives in a Phase 1 or 2 artifact is fixed through --upstream without regressing the phase: the artifact is edited in place, the change is recorded, and that phase's layer is refreshed. The lifecycle and the ready rule are in references/sprint-model.md.

Instructions

  1. Resolve mode and repo root:

    • Workflow mode (default): look for .sdlc/state.yaml; pass --state .sdlc/state.yaml to every script. The repo root is the directory containing .sdlc/; the Phase 0–2 artifacts under .sdlc/artifacts/ are the context the specs are checked against.
    • Standalone mode (--repo <path>, or no .sdlc/state.yaml found): pass --repo <path>. There is no engagement context to check against — skip the upstream checks in step 5, say so in the agenda header, and run the DoR, vague-line, and verdict steps as usual. A bare .sdlc/ directory without state.yaml is still standalone.
    • Examples show --state .sdlc/state.yaml; substitute --repo <path> in standalone mode.
  2. Determine the verb from the arguments: (none) → agenda (step 3); --spec <id|path> → one spec (step 4); --sprint SNN → batch over the slate (step 5); validate → record a verdict (step 6); --upstream --spec <id> → the no-regression path (step 7).

Read the full file on GitHub · 293 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. 9d ago First seen · 293 lines · 0 tokens per session scan A 68b73a38e782

Subscribe to this mod's changes

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