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.
npx skills add catlog22/Claude-Code-Workflow --skill spec-generatorgit clone --depth 1 https://github.com/catlog22/Claude-Code-WorkflowWrote 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.
[](https://agentmods.dev/skills/catlog22/claude-code-workflow/spec-generator)<a href="https://agentmods.dev/skills/catlog22/claude-code-workflow/spec-generator"><img src="https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/spec-generator/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.
<a href="https://agentmods.dev/skills/catlog22/claude-code-workflow/spec-generator"><img src="https://agentmods.dev/badge/skills/catlog22/claude-code-workflow/spec-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.04232 |
| Opus 5.5 | $0.00019 | $0.01693 |
| Sonnet 5.5 | $0.00009 | $0.00846 |
| Haiku 4.5 | $0.00005 | $0.00423 |
Grade A, and why
spec-generator 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 339 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spec Generator
Structured specification document generator producing a complete specification package (Product Brief, PRD, Architecture, Epics) through 6 sequential phases with multi-CLI analysis and interactive refinement. Document generation only - execution handoff to existing workflows (lite-plan, plan, req-plan).
Architecture Overview
Phase 0: Specification Study (Read specs/ + templates/ - mandatory prerequisite)
|
Phase 1: Discovery -> spec-config.json + discovery-context.json
| (includes spec_type selection)
Phase 1.5: Req Expansion -> refined-requirements.json (interactive discussion + CLI gap analysis)
| (-y auto mode: auto-expansion, skip interaction)
Phase 2: Product Brief -> product-brief.md + glossary.json (multi-CLI parallel analysis)
|
Phase 3: Requirements (PRD) -> requirements/ (_index.md + REQ-*.md + NFR-*.md)
| (RFC 2119 keywords, data model definitions)
Phase 4: Architecture -> architecture/ (_index.md + ADR-*.md, multi-CLI review)
| (state machine, config model, error handling, observability)
Phase 5: Epics & Stories -> epics/ (_index.md + EPIC-*.md)
|
Phase 6: Readiness Check -> readiness-report.md + spec-summary.md
| (terminology + scope consistency validation)
├── Pass (>=80%): Handoff to execution workflows
├── Review (60-79%): Handoff with caveats
└── Fail (<60%): Phase 6.5 Auto-Fix (max 2 iterations)
|
Phase 6.5: Auto-Fix -> Updated Phase 2-5 documents
|
└── Re-run Phase 6 validation
Key Design Principles
- Document Chain: Each phase builds on previous outputs, creating a traceable specification chain from idea to executable stories
- Multi-Perspective Analysis: CLI tools (Gemini/Codex/Claude) provide product, technical, and user perspectives in parallel
- Interactive by Default: Each phase offers user confirmation points;
-yflag enables full auto mode - Resumable Sessions:
spec-config.jsontracks completed phases;-cflag resumes from last checkpoint - Template-Driven: All documents generated from standardized templates with YAML frontmatter
- Pure Documentation: No code generation or execution - clean handoff to existing execution workflows
- Spec Type Specialization: Templates adapt to spec type (service/api/library/platform) via profiles for domain-specific depth
- Iterative Quality: Phase 6.5 auto-fix loop repairs issues found in readiness check (max 2 iterations)
- Terminology Consistency: glossary.json generated in Phase 2, injected into all subsequent phases
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- phases/01-5-requirement-clarification.md 13 KB
- phases/01-discovery.md 7.8 KB
- phases/02-product-brief.md 8.7 KB
- phases/03-requirements.md 6.9 KB
- phases/04-architecture.md 8.7 KB
- phases/05-epics-stories.md 6.0 KB
- phases/06-5-auto-fix.md 4.3 KB
- phases/06-readiness-check.md 17 KB
- README.md 4.8 KB
- specs/document-standards.md 8.7 KB
- specs/glossary-template.json 976 B
- specs/quality-gates.md 9.5 KB
- templates/architecture-doc.md 10 KB
- templates/epics-template.md 5.5 KB
- templates/product-brief.md 3.8 KB
- templates/profiles/api-profile.md 1.4 KB
- templates/profiles/library-profile.md 1.2 KB
- templates/profiles/service-profile.md 1.5 KB
- templates/requirements-prd.md 5.8 KB
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.
- 3mo ago First seen · 339 lines · 47 tokens per session scan A 4912ef2e16ba
spec-generator is a skill published in the GitHub repository catlog22/Claude-Code-Workflow (2,109 stars, last pushed 5mo ago), licensed MIT. It adds 47 tokens to every session and 4,232 once invoked, about $0.0002 per session on Opus 5.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-09-03.
spec-generator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| spec-generatorcatlog22/Claude-Code-Workflow | Skill | 2.1k | 5mo ago | MIT | A | 47 | Claude Code |
| spawn-agentkhanhbkqt/spawn-agent | Skill | 45 | 9mo ago | MIT | A | 46 | Claude Code, Codex |
| newsroom-stylejamditis/mooc-starter-kit | Skill | 11 | 2mo ago | none | A | 43 | Claude Code, Codex |
| beat-briefjamditis/mooc-starter-kit | Skill | 11 | 2mo ago | none | A | 40 | Claude Code, Codex |
| first-skilljamditis/mooc-starter-kit | Skill | 11 | 2mo ago | none | A | 39 | Claude Code, Codex |
| skill-dispatcherfarhanic017/dynamic-skill-loader | Skill | 7 | 6mo ago | GPL-3.0 | A | 68 | Claude Code, Codex |
| auditictechgy/context-guard | Skill | 3 | 2mo ago | Apache-2.0 | A | 29 | Claude Code |