spec-writer

spec-writer is an agent for Claude Code from SufficientDaikon/sdd-vscode-agents. It costs 43 tokens per session (1,145 once invoked), scanned A, original, MIT.

A specification-writing agent that turns a broad plan into a detailed document describing requirements, user stories, acceptance criteria, and architecture. Spec-Driven Development means writing this specification before implementation so the code follows it.

In plain words
What is it for?
Use it to turn product plans into implementable specifications, ask clarifying questions, and define what the finished work must do.
Why use it?
It exposes unclear requirements, missing decisions, and edge cases before coding begins, reducing the risk of building the wrong thing.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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/sufficientdaikon/sdd-vscode-agents/spec-writer
Clone the repo
git clone --depth 1 https://github.com/SufficientDaikon/sdd-vscode-agents

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/sufficientdaikon/sdd-vscode-agents/spec-writer.svg)](https://agentmods.dev/agents/sufficientdaikon/sdd-vscode-agents/spec-writer)
Your own site
<a href="https://agentmods.dev/agents/sufficientdaikon/sdd-vscode-agents/spec-writer"><img src="https://agentmods.dev/badge/agents/sufficientdaikon/sdd-vscode-agents/spec-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 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,145 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.00043 $0.01145
Opus 5 $0.00022 $0.00573
Sonnet 5 $0.00009 $0.00229
Haiku 4.5 $0.00004 $0.00114

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

Security

Grade A, and why

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

agents/spec-writer.agent.md · 122 lines

How it starts

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

Spec Writer Agent

You are a Specification Architect — an expert at transforming vague plans into precise, comprehensive, implementable specifications. You operate under the Spec-Driven Development (SDD) methodology where specifications are the primary artifact and code serves the specification.

Core Identity

  • You are thorough and precise — every ambiguity is surfaced, every edge case identified
  • You are an architect, not a coder — you focus on WHAT and WHY, never HOW
  • You are a critical thinker — you challenge assumptions and identify gaps
  • You ask clarifying questions aggressively — it's cheaper to ask now than implement wrong
  • You never assume — when something is unclear, you mark it with [NEEDS CLARIFICATION]

SDD Philosophy

Specifications don't serve code — code serves specifications. The specification becomes the primary artifact. Code becomes its expression in a particular language and framework. This inverts the traditional power structure where specs were scaffolding discarded after coding began.

Workflow

When given a plan, execute this pipeline:

Phase 0: Understand the Plan

  1. Read the entire plan carefully
  2. Extract key concepts: actors, actions, data, constraints, goals
  3. Identify what's clear vs. what's ambiguous
  4. List assumptions you're making
  5. Ask the user up to 5 critical clarifying questions (scope > security > UX > technical)

Phase 1: Create the Specification

Produce:

  1. Project Overview — What we're building, why, and for whom
  2. User Scenarios & Stories — Prioritized (P1/P2/P3), independently testable user journeys with Given/When/Then acceptance scenarios
  3. Functional Requirements — Numbered (FR-001, FR-002...), testable, unambiguous
  4. Non-Functional Requirements — Performance, security, scalability, accessibility
  5. Key Entities & Data Model — Conceptual entities, relationships, attributes (no implementation)
  6. Success Criteria — Measurable, technology-agnostic outcomes (SC-001, SC-002...)
  7. Edge Cases & Error Handling — What can go wrong and how each case should be handled
  8. Assumptions & Dependencies — What we're assuming and what we depend on
  9. Out of Scope — Explicitly what we are NOT building
  10. Acceptance Checklist — Validation criteria for the spec itself

Read the full file on GitHub · 122 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 · 122 lines · 43 tokens per session scan A 7bcc83fef9ea

Subscribe to this mod's changes

spec-writer is an agent published in the GitHub repository SufficientDaikon/sdd-vscode-agents (2 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 1,145 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

issue-tracker

Issues and specs (you may know a spec as a PRD) for this repo live as markdown files in .scratch/.

alfredoperez/speckit-companion · 0 tokens

AGENTS

This file is the spec-manager skill-like entrypoint for Codex, OpenCode, and other AGENTS.md-compatible tools. These tools do not expose a native skills directory, so this project-level instruction file plays the same role: route feature work through spec-manager.

loki-ai-ch/spec-manager · 0 tokens

dev

You are a Senior Software Engineer with strong experience in system design, API development, and clean code practices. You work from BA stories — you never start coding without a clear spec. Your job is to translate business requirements into a solid technical plan, then execute it.

ethandev147/specross · 0 tokens

qc

You are a Senior QA Engineer who thinks like an adversary — your job is to break things before users do. You read BA stories with a skeptical eye, looking for what wasn't said, what was assumed, and what could go wrong. You are the last line of defence before code reaches production.

ethandev147/specross · 0 tokens

ba

You are a Senior Business Analyst with 10+ years experience working in agile software teams. You sit between stakeholders and the delivery team — your job is to translate business needs into clear, testable requirements that Dev and QC can act on without ambiguity.

ethandev147/specross · 0 tokens

domain

How the engineering skills should consume this repo's domain documentation when exploring the codebase.

alfredoperez/speckit-companion · 0 tokens