sdd-gen

sdd-gen is a skill for Claude Code from viamus/claude-sdd-plugin. It costs 41 tokens per session (3,542 once invoked), scanned A, original, MIT.

A pipeline that turns approved SDD specifications—structured documents describing what to build—into implementation code. It checks the result, runs tests, audits quality, fixes some issues, and delivers the code when checks pass.

In plain words
What is it for?
Use it to generate code from one or more approved specifications, including groups of specifications processed in dependency order.
Why use it?
It reduces the need to run generation, consistency checks, testing, and quality review as separate tasks. It also detects when the code has drifted from the approved specification.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Part of the sdd plugin — 8 skills shipped together

Good fit Use it to generate code from one or more approved specifications, including groups of specifications processed in dependency order.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/viamus/claude-sdd-plugin/sdd-gen
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.

Any agent
npx skills add viamus/claude-sdd-plugin --skill sdd-gen
Clone the repo
git clone --depth 1 https://github.com/viamus/claude-sdd-plugin

Made for: Claude Code.

Or install sdd, the plugin that ships this one along with the rest of its 8 skills.

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 sdd-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/viamus/claude-sdd-plugin/sdd-gen.svg)](https://agentmods.dev/skills/viamus/claude-sdd-plugin/sdd-gen)
Your own site
<a href="https://agentmods.dev/skills/viamus/claude-sdd-plugin/sdd-gen"><img src="https://agentmods.dev/badge/skills/viamus/claude-sdd-plugin/sdd-gen.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,542 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.00041 $0.03542
Opus 5 $0.00020 $0.01771
Sonnet 5 $0.00008 $0.00708
Haiku 4.5 $0.00004 $0.00354

Measured 8d ago against content hash 8462a910d361, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

sdd-gen 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 8d 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.

skills/sdd-gen/SKILL.md · 400 lines

How it starts

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

SDD Gen — Generate, Verify & Deliver

You are the SDD Orchestrator. This command runs the complete code delivery pipeline:

┌→ Generate → Check → Test → Audit ─┐
│        (if critical fixes needed)  │
└────────────────────────────────────┘
              │ (all pass)
              ▼
           Deliver

The user does NOT need to run check or audit separately. This command handles everything.

Modes of Operation

Mode Trigger Behavior
Single /sdd:sdd-gen spec-name Full pipeline for one spec
Multiple /sdd:sdd-gen spec1 spec2 spec3 Full pipeline for listed specs in parallel
All /sdd:sdd-gen --all Full pipeline for all approved specs, respecting dependency order

Pipeline Overview

Step 1: Validate (approval + dependencies)
Step 2: Plan (show what will be generated, wait for confirmation)
Step 3: Generate (create code from spec)
Step 4: Consistency Check (verify code matches spec)
  → If issues found: auto-correct and re-check (max 2 retries)
Step 5: Test (MANDATORY — run all tests, must pass)
  → If tests fail: auto-fix and re-test (max 2 retries)
  → This step CANNOT be skipped or removed by any other step
Step 6: Quality Audit (best practices, security, performance)
  → If ALL pass: proceed to Deliver
  → If critical issues found: loop back to Step 3 (re-generate with fixes)
    The full cycle runs again: Generate → Check → Test → Audit
    Maximum 2 full loops. After that, deliver with warnings.
Step 7: Deliver (final summary with test results)

Step 1: Validate

Determine which specs to implement

  • If $ARGUMENTS contains --all: search specs/ for ALL files with status: approved
  • If $ARGUMENTS contains multiple names/paths (space-separated): use each one
  • If $ARGUMENTS is a single name/path: use that one
  • If no arguments: search specs/ for files with status: approved
    • If multiple found, ask: "Found X approved specs. Generate all in parallel, or pick specific ones?"
    • If none found, say: "No approved specs found. Use /sdd:sdd-review to approve a spec."

Read the full file on GitHub · 400 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. 8d ago First seen · 400 lines · 41 tokens per session scan A 8462a910d361

Subscribe to this mod's changes

sdd-gen is a skill published in the GitHub repository viamus/claude-sdd-plugin (4 stars, last pushed 5mo ago), licensed MIT. It adds 41 tokens to every session and 3,542 once invoked, about $0.0002 per session on Opus 5. 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.