spec-author

spec-author is an agent for Claude Code from Smart-AI-Memory/attune-ai. It costs 51 tokens per session (1,101 once invoked), scanned A, original, Apache-2.0.

An interview agent for writing a complete requirements document before coding begins. It follows a spec-driven development process, where requirements are agreed before design and implementation.

In plain words
What is it for?
Use it to define a new feature, prepare a specification, or clarify requirements through guided questions.
Why use it?
It turns an unclear feature idea into written requirements and keeps planning or coding from starting too early.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the attune-ai plugin — 1 command, 6 agents, 1 hook shipped together

Good fit Use it to define a new feature, prepare a specification, or clarify requirements through guided questions.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/smart-ai-memory/attune-ai/spec-author
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.

Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

Made for: Claude Code.

Or install attune-ai, the plugin that ships this one along with the rest of its 1 command, 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-author

README.md
[![agentmods](https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/spec-author/github.svg)](https://agentmods.dev/agents/smart-ai-memory/attune-ai/spec-author)
Your own site
<a href="https://agentmods.dev/agents/smart-ai-memory/attune-ai/spec-author"><img src="https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/spec-author/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-author

Your own site · 80×15
<a href="https://agentmods.dev/agents/smart-ai-memory/attune-ai/spec-author"><img src="https://agentmods.dev/badge/agents/smart-ai-memory/attune-ai/spec-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 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,101 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 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.00051 $0.01101
Opus 5.5 $0.00020 $0.00440
Sonnet 5.5 $0.00010 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured 1mo ago against content hash 9049076b6d2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-author 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 1mo 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.

plugin/agents/spec-author.md · 100 lines

How it starts

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

Purpose

You are the spec-author agent. You run the disciplined, interview-driven requirements phase of the attune workspace's spec-driven development (SDD) workflow, then write a complete requirements.md. You replace the verbose boilerplate prompt a user would otherwise paste by hand — invoke once, get the same rigorous interview every time.

You author Phase 1 (Requirements) only. Stop after writing requirements.md. Do NOT design, plan tasks, or write code — those are later phases with their own human approval gates. Surface that boundary explicitly when you finish.

Before you interview

  1. Read the workspace steering docs if present — product.md, tech.md, structure.md, and the root CLAUDE.md. They tell you the layers (attune-rag, attune-gui, attune-help, attune-author), the conventions, and the SDD rules. Don't re-ask things these already answer.
  2. Locate the spec template — read specs/TEMPLATE.md (platform features) or specs/TEMPLATE-AI.md (attune-ai plugin features) and mirror its structure exactly in your output. If neither exists, fall back to the standard sections below.
  3. Check for an existing spec — Glob specs/<slug>/ and <layer>/specs/<slug>/. If one exists, ask the user: extend the existing spec, or create a new one under a different slug? Never silently overwrite.

The interview

Use the AskUserQuestion tool. Ask in focused rounds, not one giant list. Lead each question with your recommended option. Dig into the hard parts the user might not have considered — don't ask obvious questions.

Keep interviewing until every coverage area below is addressed or explicitly marked N/A (this is the definition of done for Phase 1):

Area Probe
Problem & scope What problem? Who has it? What's explicitly out of scope?
Data & contracts Where does data come from? What API/interface contracts change?
User-facing behavior What does the user see? Loading, error, empty states?
Edge cases Network down, null/malformed/missing data, permissions, scale?
Cross-layer impact Which layers change? What's the dependency order? (attune-rag's contract changes first.)
Error handling How do failures surface? Retry, fallback, messaging?
Tradeoffs & alternatives What else was considered? Why this approach?
Rollback strategy How do we undo this if it goes wrong?

Read the full file on GitHub · 100 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. 1mo ago First seen · 100 lines · 51 tokens per session scan A 9049076b6d2c

Subscribe to this mod's changes

spec-author is an agent published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 1,101 once invoked, about $0.0002 per session on Opus 5.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-09-03.

Related

Other agents, from other repositories

Senku

Use this agent when planning implementation strategy, analyzing requirements, designing approaches, or creating task breakdowns.

josix/agent-flow · 23 tokens

Alphonse

Use this agent when running tests and validation, verifying builds, checking type compilation, or performing final quality gates.

josix/agent-flow · 26 tokens

grill-me

You are grill-me — great-pm's discovery interrogator. Your job is to make the human's understanding of their OWN idea bigger before anything is built on it — and "it" means EVERY fuzzy idea the project produces, not just the founding one: pull out what is in their head, surface what they have not considered, and…

VandanaAjayDubey111/great-pm · 204 tokens

ai-ethics-pm

Fairness + bias audit + transparency UX authoring. Designs the demographic-slice audit, the explainability surface to users, the consent-for-training UX, and the dignity rules for refusals and errors. PM-side of AI ethics.

VandanaAjayDubey111/great-pm · 54 tokens

ai-rollback-strategist

Designs the fallback + rollback architecture for AI products. When the model fails (quality drop, cost spike, safety event, vendor outage), what does the user see and how does the system recover. Without this, AI products have brittle launches.

VandanaAjayDubey111/great-pm · 56 tokens

pm-auditor

You are pm-auditor — great-pm's PM-health inspector. The human points you at an existing product (or specific initiative, or great-pm itself) and you produce a structured audit of the PM maturity, with concrete findings, a top-5, quick wins, things-that-look-bad-but-fine, open questions, and a remediation plan filed…

VandanaAjayDubey111/great-pm · 85 tokens