SharpPad: Command for Claude Code

.claude/commands/kiro/spec-requirements.md

spec-requirements is a command for Claude Code from gaoconggit/SharpPad. It costs 6 tokens per session (1,179 once invoked), scanned A, a copy of spec-requirements, MIT.

A command that turns a feature description into a detailed requirements document. It uses EARS, a structured format for describing when a system should behave in a particular way, and reads the project's existing specification context.

In plain words
What is it for?
Use it to start or expand requirements for a feature in a Kiro specification, then refine those requirements with the user.
Why use it?
It separates what the software must do from how it will be built, making missing or unclear requirements easier to find before design and implementation begin.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

This is gaoconggit/SharpPad's own configuration. It tells Claude Code how to work on SharpPad itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything SharpPad configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gaoconggit/SharpPad. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gaoconggit/SharpPad/main/.claude/commands/kiro/spec-requirements.md
Clone the repo
git clone --depth 1 https://github.com/gaoconggit/SharpPad

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/gaoconggit/sharppad/spec-requirements/github.svg)](https://agentmods.dev/commands/gaoconggit/sharppad/spec-requirements)
Your own site
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/spec-requirements"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/spec-requirements/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.

agentmods 80×15 button for spec-requirements

Your own site · 80×15
<a href="https://agentmods.dev/commands/gaoconggit/sharppad/spec-requirements"><img src="https://agentmods.dev/badge/commands/gaoconggit/sharppad/spec-requirements.svg" alt="Reviewed on agentmods" width="80" 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,179 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 92% copy Near-identical to another mod 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.00006 $0.01179
Opus 5.5 $0.00002 $0.00472
Sonnet 5.5 $0.00001 $0.00236
Haiku 4.5 $0.00001 $0.00118

Measured 13d ago against content hash 2188a0e312ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 13d 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.

Origin

This is a copy

92% identical to spec-requirements — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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

How it starts

The opening of the file, as written. The whole thing — 131 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: !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"). For non-software, select 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 · 131 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. 13d ago First seen · 131 lines · 6 tokens per session scan A 2188a0e312ab

Subscribe to this mod's changes

spec-requirements is a command published in the GitHub repository gaoconggit/SharpPad (83 stars, last pushed 7mo ago), licensed MIT. It adds 6 tokens to every session and 1,179 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to spec-requirements, differing in 5 lines, and is treated as a copy.