sdlc-audit-artifacts

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

A review command for checking whether project planning documents are still current and showing their change history. It also identifies what could be affected when an artifact changes; artifacts are the stored documents produced during planning.

In plain words
What is it for?
Use it to refresh the project’s change ledger, find stale pre-build documents, inspect the impact of changes, and review an artifact’s full change trail. It can run within an SDLC project or against another repository with an .sdlc directory.
Why use it?
Planning documents can become outdated as code and decisions change. This command surfaces possible staleness and risks without changing files or blocking the development process.

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-audit-artifacts
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-audit-artifacts

README.md
[![agentmods](https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-audit-artifacts.svg)](https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-audit-artifacts)
Your own site
<a href="https://agentmods.dev/commands/mckruz/claude-code-sdlc/sdlc-audit-artifacts"><img src="https://agentmods.dev/badge/commands/mckruz/claude-code-sdlc/sdlc-audit-artifacts.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,560 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.01560
Opus 5 $0.00000 $0.00780
Sonnet 5 $0.00000 $0.00312
Haiku 4.5 $0.00000 $0.00156

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

Security

Grade A, and why

sdlc-audit-artifacts 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 4d 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-audit-artifacts.md · 95 lines

How it starts

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

/sdlc-audit-artifacts — Artifact Freshness, Impact & History

Audit the content of your pre-Build artifacts: which ones have gone stale relative to the things they depend on, what a change would put at risk, and the full change trail of any one artifact.

This is a sibling to /sdlc-audit, not a replacement. /sdlc-audit audits gate effectiveness (are the gates well-calibrated). This command audits artifact staleness and change history. They answer different questions and never overlap.

Everything here is advisory — it surfaces candidates a human dispositions; it never blocks a gate, changes a verdict, or edits your artifacts, specs, or state.yaml.

Instructions

  1. Resolve mode and repo root:

    • Workflow mode (default): look for .sdlc/state.yaml. Pass --state .sdlc/state.yaml to the script. If not found, tell the user to run /sdlc-setup first.
    • Standalone mode (--repo <path>, or no .sdlc/ found): run against any repo containing a .sdlc/ directory. History and staleness are only as deep as the ledger in that repo.
  2. Freshen the change-ledger (so staleness reflects what is actually on disk):

    uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/audit_artifacts.py record --scan --state .sdlc/state.yaml
    

    This appends only to the change-ledger (.sdlc/metrics/artifact-log.jsonl) — it hashes the artifact tree and records any new or drifted files. It never touches your artifacts, specs, or state.yaml. On the very first run it seeds a baseline ("history starts now") — it does not invent a past. In standalone mode pass --repo <path> instead of --state.

  3. Pick the lens from the user's request:

    • Freshness dashboard (default) — per artifact: when it last changed and by whom (from the ledger), its sign-off status (from state.yaml), and FRESH or STALE vs. its declared sources. Scope with --phase <id>, --artifact <id|path>, or --since <YYYY-MM-DD>:
      uv run --project ${CLAUDE_PLUGIN_ROOT}/scripts ${CLAUDE_PLUGIN_ROOT}/scripts/audit_artifacts.py report --state .sdlc/state.yaml
      

Read the full file on GitHub · 95 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. 4d ago First seen · 95 lines · 0 tokens per session scan A 28dcba15bfb8

Subscribe to this mod's changes

sdlc-audit-artifacts 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,560 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.