spec-requirements

spec-requirements is a command for Claude Code from kbwo/ccmanager. It costs 6 tokens per session (1,188 once invoked), scanned A, original, MIT.

A command that creates detailed requirements for a software feature. Requirements describe what a system must do before developers decide how to build it.

In plain words
What is it for?
Use it to create or refine requirements in a Kiro specification, using the project’s architecture, technical, and product guidance.
Why use it?
It turns a feature idea and existing project context into a structured starting point for planning and review.

Command for Claude Code

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/kbwo/ccmanager/spec-requirements
Clone the repo
git clone --depth 1 https://github.com/kbwo/ccmanager

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/kbwo/ccmanager/spec-requirements.svg)](https://agentmods.dev/commands/kbwo/ccmanager/spec-requirements)
Your own site
<a href="https://agentmods.dev/commands/kbwo/ccmanager/spec-requirements"><img src="https://agentmods.dev/badge/commands/kbwo/ccmanager/spec-requirements.svg" alt="Measured on agentmods" height="20"></a>
Per session 6 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,188 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.00006 $0.01188
Opus 5 $0.00003 $0.00594
Sonnet 5 $0.00001 $0.00238
Haiku 4.5 $0.00001 $0.00119

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

Security

Grade A, and why

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

.claude/commands/kiro/spec-requirements.md · 130 lines

How it starts

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

Requirements Generation

Generate comprehensive requirements for feature: $1

Context Validation

Steering Context

  • Architecture context: @.kiro/steering/structure.md
  • Technical constraints: @.kiro/steering/tech.md
  • Product context: @.kiro/steering/product.md
  • Custom steering: Load all "Always" mode custom steering files from .kiro/steering/

Existing Spec Context

  • Current spec directory: !bash -c 'ls -la .kiro/specs/$1/'
  • Current requirements: .kiro/specs/$1/requirements.md
  • Spec metadata: .kiro/specs/$1/spec.json

Task: Generate Initial Requirements

1. Read Existing Requirements Template

Read the existing requirements.md file created by spec-init to extract the project description.

2. Generate Complete Requirements

Generate an initial set of requirements in EARS format based on the project description, then iterate with the user to refine them until they are complete and accurate.

Don't focus on implementation details in this phase. Instead, just focus on writing requirements which will later be turned into a design.

Requirements Generation Guidelines

  1. Focus on Core Functionality: Start with the essential features from the user's idea
  2. Use EARS Format: All acceptance criteria must use proper EARS syntax
  3. No Sequential Questions: Generate initial version first, then iterate based on user feedback
  4. Keep It Manageable: Create a solid foundation that can be expanded through user review
  5. Choose an appropriate subject: For software projects, use the concrete system/service name (e.g., "Checkout Service") instead of a generic subject. For non-software, choose a responsible subject (e.g., process/workflow, team/role, artifact/document, campaign, protocol).

3. EARS Format Requirements

EARS (Easy Approach to Requirements Syntax) is the recommended format for acceptance criteria:

Primary EARS Patterns:

  • WHEN [event/condition] THEN [system/subject] SHALL [response]
  • IF [precondition/state] THEN [system/subject] SHALL [response]
  • WHILE [ongoing condition] THE [system/subject] SHALL [continuous behavior]
  • WHERE [location/context/trigger] THE [system/subject] SHALL [contextual behavior]

Read the full file on GitHub · 130 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 · 130 lines · 6 tokens per session scan A db94e30c32fa

Subscribe to this mod's changes

spec-requirements is a command published in the GitHub repository kbwo/ccmanager (1,229 stars, last pushed 4d ago), licensed MIT. It adds 6 tokens to every session and 1,188 once invoked, about $0.0000 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.