spec-author

spec-author is an agent for coding agents 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

Part of the attune-ai plugin — 1 command, 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/smart-ai-memory/attune-ai/spec-author
Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

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.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.svg" alt="Measured on agentmods" 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. 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.00051 $0.01101
Opus 5 $0.00026 $0.00550
Sonnet 5 $0.00010 $0.00220
Haiku 4.5 $0.00005 $0.00110

Measured yesterday against content hash 9049076b6d2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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 presentproduct.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 specGlob 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. yesterday 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.0003 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-09-03.