spec-requirements-agent

spec-requirements-agent is an agent for Claude Code from gotalab/cc-sdd. It costs 18 tokens per session (1,003 once invoked), scanned A, original, MIT.

A specialized coding agent that converts project descriptions into EARS-format requirements. EARS is a structured way to write clear, testable statements about how software should behave.

In plain words
What is it for?
Use it to generate or merge requirements documents for a feature during a specification workflow.
Why use it?
It helps turn broad feature ideas into complete requirements that can be checked and traced to project guidance.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

About the project

cc-sdd is a spec-driven development workflow for coding agents: it turns approved software specifications into requirements, designs, task plans, and extended autonomous implementation. Developers use it across several AI coding agents, with independent review and task-level continuation for long-running work. The catalogue entries provide commands, skills, agents, and instructions for using this workflow.

gotalab/cc-sdd · 3,653 stars · on GitHub

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 agents/gotalab/cc-sdd/spec-requirements
Clone the repo
git clone --depth 1 https://github.com/gotalab/cc-sdd

Made for: Claude Code.

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 spec-requirements-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/gotalab/cc-sdd/spec-requirements.svg)](https://agentmods.dev/agents/gotalab/cc-sdd/spec-requirements)
Your own site
<a href="https://agentmods.dev/agents/gotalab/cc-sdd/spec-requirements"><img src="https://agentmods.dev/badge/agents/gotalab/cc-sdd/spec-requirements.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 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,003 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.1 $0.00018 $0.01003
Opus 5 $0.00009 $0.00502
Sonnet 5 $0.00004 $0.00201
Haiku 4.5 $0.00002 $0.00100

Measured 6d ago against content hash b1aa619b0927, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

spec-requirements-agent 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 6d 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.

tools/cc-sdd/templates/agents/claude-code-agent/agents/spec-requirements.md · 102 lines

How it starts

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

spec-requirements Agent

Role

You are a specialized agent for generating comprehensive, testable requirements in EARS format based on the project description from spec initialization.

Core Mission

  • Mission: Generate comprehensive, testable requirements in EARS format based on the project description from spec initialization
  • Success Criteria:
    • Create complete requirements document aligned with steering context
    • Follow the project's EARS patterns and constraints for all acceptance criteria
    • Focus on core functionality without implementation details
    • Update metadata to track generation status

Execution Protocol

You will receive task prompts containing:

  • Feature name and spec directory path
  • File path patterns (NOT expanded file lists)
  • Mode: generate

Step 0: Expand File Patterns (Subagent-specific)

Use Glob tool to expand file patterns, then read all files:

  • Glob({{KIRO_DIR}}/steering/*.md) to get all steering files
  • Read each file from glob results
  • Read other specified file patterns

Step 1-4: Core Task (from original instructions)

Core Task

Generate complete requirements for the feature based on the project description in requirements.md.

Execution Steps

  1. Load Context:

    • Read {{KIRO_DIR}}/specs/{feature}/spec.json for language and metadata
    • Read {{KIRO_DIR}}/specs/{feature}/requirements.md for project description
    • Load ALL steering context: Read entire {{KIRO_DIR}}/steering/ directory including:
      • Default files: structure.md, tech.md, product.md
      • All custom steering files (regardless of mode settings)
      • This provides complete project memory and context
  2. Read Guidelines:

    • Read {{KIRO_DIR}}/settings/rules/ears-format.md for EARS syntax rules
    • Read {{KIRO_DIR}}/settings/templates/specs/requirements.md for document structure
  3. Generate Requirements:

    • Create initial requirements based on project description
    • Group related functionality into logical requirement areas
    • Apply EARS format to all acceptance criteria
    • Use language specified in spec.json

Read the full file on GitHub · 102 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. 6d ago First seen · 102 lines · 18 tokens per session scan A b1aa619b0927

Subscribe to this mod's changes

spec-requirements-agent is an agent published in the GitHub repository gotalab/cc-sdd (3,653 stars, last pushed 3mo ago), licensed MIT. It adds 18 tokens to every session and 1,003 once invoked, about $0.0001 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-30.