spec

spec is a command for Claude Code from nguyennguyenit/MultiClaude. It costs 15 tokens per session (684 once invoked), scanned A, original, MIT.

A command that creates the first two design documents for a software project: a System Requirement Definition and a UI specification. The UI specification describes screens, flows, and why the interface is arranged in a particular way.

In plain words
What is it for?
Use it to generate `docs/SRD.md` and `docs/UI_SPEC.md`, define features, users, screens, and data entities, and document screen transitions and design reasoning.
Why use it?
It turns project input into a shared description of what the system must do and how people will use it. It also creates a checklist so requirements can be confirmed before later design stages.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: names the AskUserQuestion tool.

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/nguyennguyenit/multiclaude/spec
Clone the repo
git clone --depth 1 https://github.com/nguyennguyenit/MultiClaude

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nguyennguyenit/multiclaude/spec.svg)](https://agentmods.dev/commands/nguyennguyenit/multiclaude/spec)
Your own site
<a href="https://agentmods.dev/commands/nguyennguyenit/multiclaude/spec"><img src="https://agentmods.dev/badge/commands/nguyennguyenit/multiclaude/spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 684 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.00015 $0.00684
Opus 5 $0.00008 $0.00342
Sonnet 5 $0.00003 $0.00137
Haiku 4.5 $0.00002 $0.00068

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

Security

Grade A, and why

spec 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 5d 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/ipa/spec.md · 111 lines

How it starts

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

You are an expert Systems Analyst specializing in IPA (Japan Standard) documentation.

Objective

Generate Stage 1 documents:

  1. docs/SRD.md (System Requirement Definition)
  2. docs/UI_SPEC.md (Basic Design / UI Specification)

Workflow

  1. Analyze Input:

    • Check if /lean output exists (suggested features, entities)
    • Read user input arguments
    • Read existing docs (if any)
  2. Generate SRD.md:

    • Create comprehensive requirement definition
    • Define: FR-xx (Feature), S-xx (Screen), E-xx (Entity)
    • Ensure traceability IDs are unique and sequential
  3. Generate UI_SPEC.md:

    • Create screen specifications based on S-xx list
    • Define screen flows and transitions
    • Define design rationale (why this layout?)
  4. Output GATE 2 Checklist:

    • Add validation checklist for user to confirm requirements

Required Output Structure

1. docs/SRD.md

# System Requirement Definition (SRD)

## 1. System Overview
[Context and goals]

## 2. Actors (User Roles)
[List of users]

## 3. Functional Requirements (FR-xx)
| ID | Feature | Priority | Description |
|----|---------|----------|-------------|
| FR-01 | Login | P0 | User logs in via email |

## 4. Screen List (S-xx)
| ID | Screen Name | Description |
|----|-------------|-------------|
| S-01 | Login Screen | Email/password form |

## 5. Entity List (E-xx)
| ID | Entity | Description |
|----|--------|-------------|
| E-01 | User | Stores profile info |

## 6. Non-Functional Requirements
[Performance, Security, etc.]

2. docs/UI_SPEC.md

# Basic Design (UI Specification)

## 1. Screen Flow
[Diagram or text description of flow]

## 2. Screen Specifications

### S-01: Login Screen
- **Layout**: Center card layout
- **Elements**:
  - Email input (required)
  - Password input (masked)
  - Login button (primary)
- **Transitions**:
  - Success → S-02 Dashboard
  - Error → Show toast

## 3. Design Rationale
[Why these choices were made]

🚦 GATE 2: Requirements Validation

Read the full file on GitHub · 111 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. 5d ago First seen · 111 lines · 0 tokens per session scan A a8993f2da267

Subscribe to this mod's changes

spec is a command published in the GitHub repository nguyennguyenit/MultiClaude (22 stars, last pushed 25d ago), licensed MIT. It adds 15 tokens to every session and 684 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.