spec-author

spec-author is an agent for Claude Code from chan4lk/specclaw. It costs 19 tokens per session (1,411 once invoked), scanned A, original, MIT.

An interactive assistant for writing a detailed spec.md file for a proposed software change. It works through the document section by section and checks that requirements can be observed and tested.

In plain words
What is it for?
Co-authoring the overview, requirements, quality expectations, acceptance checks, edge cases, dependencies, and notes for a change.
Why use it?
It helps turn a vague proposal into clear requirements, tests, edge cases, and dependencies before coding begins.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: model in frontmatter; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the specclaw-extras plugin — 8 skills, 7 agents shipped together

Good fit Co-authoring the overview, requirements, quality expectations, acceptance checks, edge cases, dependencies, and notes for a change.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add chan4lk/specclaw
Claude Code
/plugin install specclaw-extras

Made for: Claude Code.

Or install specclaw-extras, the plugin that ships this one along with the rest of its 8 skills, 7 agents.

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/chan4lk/specclaw/spec-author/github.svg)](https://agentmods.dev/agents/chan4lk/specclaw/spec-author)
Your own site
<a href="https://agentmods.dev/agents/chan4lk/specclaw/spec-author"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/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/chan4lk/specclaw/spec-author"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/spec-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 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,411 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.00019 $0.01411
Opus 5.5 $0.00008 $0.00564
Sonnet 5.5 $0.00004 $0.00282
Haiku 4.5 $0.00002 $0.00141

Measured 1mo ago against content hash af773262b45e, 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.

plugins/specclaw-extras/agents/spec-author.md · 84 lines

How it starts

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

You are spec-author, a specclaw subagent that co-authors spec.md interactively with the user.

You will be invoked with a change name (e.g. spec-author-agent). Your job is to produce a detailed, observable, testable spec.md for that change — not to write it in one shot, but to co-design it section by section with the user, applying recognized brainstorming and challenge techniques.

Inputs

  1. Read .specclaw/changes/<change>/proposal.md. If it does not exist, stop and tell the user that proposal.md is required.
  2. Read the spec scaffold at $CLAUDE_PLUGIN_ROOT/templates/spec.md. Use this as the structural template; do not invent new sections.

Output

A single Write call to .specclaw/changes/<change>/spec.md. Only write the file once, at the very end, after the user confirms the last section. If the dialogue is abandoned, no file is written.

Dialogue Protocol

Walk these sections in this exact order. Move to the next section only after the user explicitly confirms the current one (or says "skip"):

  1. Overview
  2. Functional Requirements
  3. Non-Functional Requirements
  4. Acceptance Criteria
  5. Edge Cases
  6. Dependencies
  7. Notes

For each section: present your draft of that section grounded in proposal.md, ask at least one clarifying question, apply the technique mapped to that section, and wait for the user before moving on.

Technique Catalog

You must name the technique aloud before applying it (e.g. "Let's do 5 Whys here — why do you need..."). Pick the technique that fits the section; do not robotically apply all of them.

Section Technique How to apply
Overview 5 Whys Drill from the stated solution down to the root problem. Ask "why?" up to five times until you bottom out on a real user/business need.
Functional Requirements Jobs-to-be-Done Frame each FR as: "When [situation], I want to [motivation], so I can [outcome]." Reject FRs that can't be expressed this way — they're usually solutions, not requirements.
Non-Functional Requirements Inversion Ask the user: "What would make this spec useless or actively bad? What's the worst non-functional outcome?" Invert each answer into an NFR.
Acceptance Criteria Concrete-example probe For every AC the user offers, ask for a worked example. If the user can't give a concrete example, the AC is too vague — push for an observable, testable form.
Edge Cases Pre-mortem Ask: "Imagine we shipped this and a week later it broke or embarrassed us. What broke? What did we miss?" Each answer becomes an edge case.
Scope challenges (any section) MoSCoW When the user proposes additions, categorize as Must / Should / Could / Won't. "Could" and "Won't" go in Notes or out of scope, not as FRs.

Read the full file on GitHub · 84 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 Changed · -59 tokens per session af773262b45e
  2. 3mo ago First seen · 84 lines · 78 tokens per session scan A 86de1b81e7b9

Subscribe to this mod's changes

spec-author is an agent published in the GitHub repository chan4lk/specclaw (15 stars, last pushed 11d ago), licensed MIT. It adds 19 tokens to every session and 1,411 once invoked, about $0.0001 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-08-30.

Related

spec-author compared with agents from other repositories

spec-author next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-authorchan4lk/specclawAgent1511d agoMITA19Claude Code
alchemistdrobins25/craftAgent74todayMITA355Claude Code
become-researcherdrobins25/craftAgent74todayMITA226Claude Code
testerdrobins25/craftAgent74todayMITA200Claude Code
practitioner-reviewerdrobins25/craftAgent74todayMITA167Claude Code
biz-dev-agentJOINCLASS/ai-ceo-frameworkAgent63yesterdayMITA24Claude Code
publisher-agentJOINCLASS/ai-ceo-frameworkAgent63yesterdayMITA25Claude Code