sdlc-next

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

A command that checks whether the current software-development phase has met its required exit conditions and moves to the next phase only when those checks pass.

In plain words
What is it for?
Use it to validate the current phase, see specific failed checks and suggested remedies, generate a report of missing work, and advance the project when the gates pass.
Why use it?
It prevents the workflow from advancing while required documents, checks, or other conditions are missing, and reports blockers when it cannot proceed.

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 validate the current phase, see specific failed checks and suggested remedies, generate a report of missing work, and advance the project when the gates pass.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-next"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-next.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 3,435 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.03435
Opus 5.5 $0.00000 $0.01374
Sonnet 5.5 $0.00000 $0.00687
Haiku 4.5 $0.00000 $0.00344

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

Security

Grade A, and why

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

commands/sdlc-next.md · 194 lines

How it starts

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

/sdlc-next — Advance to Next Phase

Run exit gate checks for the current phase and advance to the next phase if all gates pass.

Instructions

  1. Locate state file: Look for .sdlc/state.yaml in the current project directory. If not found, tell the user to run /sdlc-setup first.

  2. Read state: Load .sdlc/state.yaml to determine the current phase.

  3. Run gate checks: Execute the gate checker for the current phase:

    uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/check_gates.py --state .sdlc/state.yaml
    
  4. Evaluate results:

    If ANY MUST gate fails:

    • Display the failure report
    • List specific blockers with remediation suggestions
    • Do NOT advance the phase
    • Generate the phase HTML report anyway (shows what's missing): uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/generate_phase_report.py --state .sdlc/state.yaml --phase <phase-number>
    • Automatically open the report in the user's default browser (start on Windows, open on macOS, xdg-open on Linux)
    • Suggest actions: create missing artifacts, fix incomplete content, etc.
    • Offer smart repair: "Would you like me to attempt auto-repair on the fixable issues?" If yes, spawn the gate-repair agent, then re-run gates. See references/smart-repair.md for what's repairable.

    If all MUST gates pass (SHOULD/MAY may still have warnings):

    • Display success message
    • Show any SHOULD/MAY warnings
    • Generate the final phase HTML report before advancing:
      uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/generate_phase_report.py \
        --state .sdlc/state.yaml --phase <phase-number>
      
    • Automatically open the report in the user's default browser (start on Windows, open on macOS, xdg-open on Linux)
    • Confirm the sign-off questions first. Each phase's exit gate carries questions only a person can answer, and the human ticks each one (in this conversation or in SDLC Studio, the desktop app — one shared record). Read where they stand:
      uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/sign_off_confirmations.py status --state .sdlc/state.yaml --json
      
      If all_confirmed is false, at least one question is unconfirmed: do not ask for sign-off yet. Show each unconfirmed question with its pre-check from stage_readiness.py --state .sdlc/state.yaml --json (judgement[].hint — what the software could see, never a verdict) and ask the human, one question at a time via AskUserQuestion, whether they confirm it. Only when they say yes, record it:
      uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/sign_off_confirmations.py confirm        --state .sdlc/state.yaml --question-id <id from status> --actor "<the name the human gave>"
      
      Never confirm a question yourself, never treat a hint as a yes, and never record a name the human did not give. A question the human declines stays unconfirmed and the phase does not advance; tell them what remains.
    • Sprint slate outcome (advisory, Build only): when the current phase is build, put one line beside the feature-complete declaration so the human declares with the last sprint's outcome in view. Read the most recently closed record in .sdlc/sprints/SNN.md (state: closed) and count its ## Close table — slate S07: 5 of 6 merged, 1 carried, 0 dropped. If a sprint is still open, add its readiness from:
      uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/sprint.py status --state .sdlc/state.yaml --json
      
      (open sprint S08: N slated · M ready). Skip silently when .sdlc/sprints/ is absent or the JSON's sprint is null. This line informs the declaration; it never gates it — leaving Build stays a human call, and a sprint is never a phase gate.
    • HITL GATE — Ask for explicit sign-off before advancing: Present the phase summary (what was produced, key decisions made) and ask: "Does this look correct? Shall I advance to Phase N?" Do NOT call advance_phase.py until the human explicitly confirms.
    • Optional — capture discipline sign-off(s): After the human confirms the advance, use AskUserQuestion to offer (optionally) recording per-discipline sign-off on this phase's work: "Any discipline sign-offs to record for this phase? (e.g. Design signs the interaction specs, Data signs the data contract, Bizreq signs the business rules.)" This is optional — skipping it advances exactly as before. For each sign-off the human names, capture a Discipline:Section:Name triple; capture the overall signer name too if given. These feed the advance_phase.py invocation in step 6 via --signed-by "<name>" and one --discipline-signoff "Discipline:Section:Name" per sign-off (repeatable). No sign-offs → no flags → byte-identical state. The named human signs; the agent only records what it is told.

Read the full file on GitHub · 194 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. 1mo ago Changed · +13 lines bf7ca52b37b5
  2. 2mo ago Changed · +9 lines ebb42fb1f164
  3. 3mo ago First seen · 172 lines · 0 tokens per session scan A 3663b2ecb04b

Subscribe to this mod's changes

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

Related

sdlc-next compared with commands from other repositories

sdlc-next next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sdlc-nextMCKRUZ/claude-code-sdlcCommand81mo agoMITA0Claude Code
checklistgithub/spec-kitCommand154ktodayMITA13Claude Code
clarifygithub/spec-kitCommand154ktodayMITA27Claude Code
specifygithub/spec-kitCommand154ktodayMITA13Claude Code
analyzegithub/spec-kitCommand154ktodayMITA26Claude Code
convergegithub/spec-kitCommand154ktodayMITA35Claude Code
implementgithub/spec-kitCommand154ktodayMITA14Claude Code