sdlc-gate

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

A command that checks whether the current software-development phase meets its exit requirements. SDLC means the software development life cycle: the stages used to plan, build, and review a project.

In plain words
What is it for?
Use it to validate the current or selected SDLC phase, check its visual report and linked artifact pages, and run the project's seven gate checks.
Why use it?
It catches missing documents, visual review files, or failed checks before the project moves to its next phase. It does not advance the phase by itself.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-gate.svg)](https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-gate)
Your own site
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-gate"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-gate.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,108 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.01108
Opus 5 $0.00000 $0.00554
Sonnet 5 $0.00000 $0.00222
Haiku 4.5 $0.00000 $0.00111

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

Security

Grade A, and why

sdlc-gate 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-gate.md · 75 lines

How it starts

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

/sdlc-gate — Run Exit Criteria Check

Run the 7-gate validation system for the current (or specified) SDLC phase without advancing.

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. Check visual report exists: Before running gates, verify that the phase visual report exists at .sdlc/reports/<slug>-visual.html, where <slug> is the phase's registry slug (e.g. 00-discovery-visual.html, build-visual.html). Also verify that artifact sub-pages exist and are linked from the main report.

    • If the visual report is missing: STOP. Tell the user: "The phase visual report has not been generated yet. The visual report is the primary stakeholder review artifact and must exist before running gate checks. Generate it now?" If yes, generate the visual report with artifact sub-pages first, then proceed with gates.
    • If sub-pages are missing: WARN but proceed. Note which artifacts lack sub-pages in the gate output.
  4. Run gate checks: Execute the gate checker:

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

    Optionally specify a phase: --phase <N>

  5. Display results: Show each gate result with:

    • Gate name (G1-integrity, G2-completeness, G3-metrics, G4-compliance, G5-consistency, G6-quality, G7-exit-criteria)
    • PASS / FAIL / MANUAL status
    • Severity (MUST / SHOULD / MAY)
    • Details on what passed or failed
  6. Generate phase report: Always generate the HTML report after running gates, regardless of pass/fail status:

    uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/generate_phase_report.py \
      --state .sdlc/state.yaml --phase <phase-number>
    

    The script writes .sdlc/reports/<slug>-report.html (registry slug, e.g. 00-discovery-report.html, build-report.html). After generating, automatically open the report in the user's default browser:

    start .sdlc/reports/<slug>-report.html    # Windows
    open .sdlc/reports/<slug>-report.html     # macOS
    xdg-open .sdlc/reports/<slug>-report.html # Linux
    

    This is the artifact stakeholders review before the manual gate sign-off.

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

Subscribe to this mod's changes

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