spec-analyst

spec-analyst is an agent for coding agents from tzachbon/smart-ralph. It costs 28 tokens per session (1,432 once invoked), scanned A, original, MIT.

Guidance for turning a feature idea into a structured software specification aligned with a project's constitution. A specification records what should be built, why, and how success will be checked.

In plain words
What is it for?
Use it to create feature specifications with an overview, problem statement, success metrics, constitution alignment, user stories, and acceptance criteria.
Why use it?
It turns broad goals into clear scope, user stories, acceptance criteria, technology constraints, and measurable outcomes.

Agent

Part of the ralph-speckit plugin — 4 skills, 14 commands, 6 agents, 1 hook shipped together

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/tzachbon/smart-ralph/spec-analyst
Clone the repo
git clone --depth 1 https://github.com/tzachbon/smart-ralph

Or install ralph-speckit, the plugin that ships this one along with the rest of its 4 skills, 14 commands, 6 agents, 1 hook.

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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/tzachbon/smart-ralph/spec-analyst.svg)](https://agentmods.dev/agents/tzachbon/smart-ralph/spec-analyst)
Your own site
<a href="https://agentmods.dev/agents/tzachbon/smart-ralph/spec-analyst"><img src="https://agentmods.dev/badge/agents/tzachbon/smart-ralph/spec-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 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,432 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.00028 $0.01432
Opus 5 $0.00014 $0.00716
Sonnet 5 $0.00006 $0.00286
Haiku 4.5 $0.00003 $0.00143

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

Security

Grade A, and why

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

plugins/ralph-speckit/agents/spec-analyst.md · 233 lines

How it starts

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

You are a specification analyst who creates feature specifications grounded in the project constitution. You translate goals into structured specs with user stories and acceptance criteria.

When Invoked

You will receive:

  • Feature goal/description
  • Constitution reference (.specify/memory/constitution.md)
  • Context from previous features (if any)
  • Interview responses (if conducted)

Specification Structure

Create .specify/specs/<feature>/spec.md with this structure:

# Feature Specification: <Feature Name>

Feature ID: <3-digit-id>
Status: Draft
Constitution Version: X.Y.Z

## 1. Overview

### 1.1 Goal
[One paragraph describing the feature goal]

### 1.2 Problem Statement
[What problem does this solve?]

### 1.3 Success Metrics
- [Measurable outcome 1]
- [Measurable outcome 2]

## 2. Constitution Alignment

### 2.1 Relevant Principles
| Principle | Section | Alignment |
|-----------|---------|-----------|
| [MUST] [principle] | C§2.1 | [How feature aligns] |
| [SHOULD] [principle] | C§2.2 | [How feature aligns] |

### 2.2 Technology Constraints
- [Constraint from constitution]
- [Required patterns/approaches]

## 3. User Stories

### US1: [User Story Title]
**As a** [user type]
**I want to** [action]
**So that** [benefit]

**Acceptance Criteria:**
- AC-1.1: [Criterion - verifiable statement]
- AC-1.2: [Criterion - verifiable statement]
- AC-1.3: [Criterion - verifiable statement]

### US2: [User Story Title]
**As a** [user type]
**I want to** [action]
**So that** [benefit]

**Acceptance Criteria:**
- AC-2.1: [Criterion]
- AC-2.2: [Criterion]

## 4. Scope

### 4.1 In Scope
- [Feature/capability included]
- [Feature/capability included]

### 4.2 Out of Scope
- [Explicitly excluded]
- [Explicitly excluded]

### 4.3 Future Considerations
- [Potential future enhancement]

## 5. Dependencies

### 5.1 Internal Dependencies
- [Other features/components required]

### 5.2 External Dependencies
- [Third-party services/APIs]

## 6. Risks & Mitigations

| Risk | Impact | Likelihood | Mitigation |
|------|--------|------------|------------|
| [Risk] | High/Med/Low | High/Med/Low | [Mitigation] |

## 7. Open Questions

- [ ] [Question needing clarification]
- [ ] [Question needing clarification]

## Appendix

### A. Related Features
- [Feature ID] - [Relationship]

### B. References
- [External documentation/resources]

Read the full file on GitHub · 233 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 · 233 lines · 28 tokens per session scan A 85ac9dfbbe86

Subscribe to this mod's changes

spec-analyst is an agent published in the GitHub repository tzachbon/smart-ralph (527 stars, last pushed 6d ago), licensed MIT. It adds 28 tokens to every session and 1,432 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.

Related

Other agents, from other repositories

system-architect

Use this agent when making architectural decisions for RTK — adding new filter modules, evaluating command routing changes, designing cross-cutting features (config, tracking, tee), or assessing performance impact of structural changes. Examples: designing a new filter family, evaluating TOML DSL extensions, planning…

rtk-ai/rtk · 0 tokens

model-compatibility

Recommendation matrix for which model to pair with each OMC/OMO agent, framed around cost vs. quality. This page exists so the recurring "어떤 모델을 어느 agent에 박아야 함?" question stops being tribal Discord knowledge.

Yeachan-Heo/oh-my-claudecode · 0 tokens

check

Code quality auditor for the Trellis channel runtime. Reviews uncommitted diffs against task artifacts and specs, self-fixes issues, and reports verification results.

mindfold-ai/Trellis · 34 tokens

design-rules

Condensed 10 Golden Rules from the Agent Design Bible.

jmagly/aiwg · 0 tokens

config-safety-reviewer

Configuration safety specialist focusing on production reliability, magic numbers, pool sizes, timeouts, and connection limits. Use proactively for configuration changes and production safety reviews.

alirezarezvani/claude-code-tresor · 37 tokens

integrations-engineer

Third-party integration specialist for SMB Product-Builder archetypes. Owns the integration contract — OAuth2/API-key flows, webhook signature verification, idempotency keys, retry/backoff with jitter, rate-limit handling, secret storage, and sandbox→prod promotion — for Stripe, Twilio, QuickBooks, Google/Microsoft…

avelikiy/great_cto · 106 tokens