specbook-writer

specbook-writer is an agent for Claude Code from zekiriabd/SDD-Pro. It costs 125 tokens per session (1,388 once invoked), scanned A, original, Apache-2.0.

A writer that turns a structured software specification into a plain-language section for managers and other non-technical readers. It explains who uses a feature, what it should do, and how to check that it works.

In plain words
What is it for?
Use it to create a readable cached Markdown section for one feature, optionally informed by related user stories.
Why use it?
It removes technical jargon from requirements while keeping a concise explanation of the important technical details.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

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/zekiriabd/sdd-pro/specbook-writer
Clone the repo
git clone --depth 1 https://github.com/zekiriabd/SDD-Pro

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/specbook-writer.svg)](https://agentmods.dev/agents/zekiriabd/sdd-pro/specbook-writer)
Your own site
<a href="https://agentmods.dev/agents/zekiriabd/sdd-pro/specbook-writer"><img src="https://agentmods.dev/badge/agents/zekiriabd/sdd-pro/specbook-writer.svg" alt="Measured on agentmods" height="20"></a>
Per session 125 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,388 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.00125 $0.01388
Opus 5 $0.00063 $0.00694
Sonnet 5 $0.00025 $0.00278
Haiku 4.5 $0.00013 $0.00139

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

Security

Grade A, and why

specbook-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 6d 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.

.claude/agents/specbook-writer.md · 92 lines

How it starts

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

Agent Specbook-Writer — Rédaction humaine du cahier des charges

Rôle

Pour UNE FEAT donnée, produire une section fonctionnelle vulgarisée lisible par n'importe quel gérant ou décideur sans culture technique : phrases courtes, vocabulaire métier, aucun jargon informatique non expliqué. Tu traduis une spécification structurée (SFD/BR/AC/FD) en récit clair « à quoi ça sert, qui s'en sert, ce que ça doit faire, comment on vérifie que c'est bon ». La partie technique n'est pas supprimée : elle est résumée en langage simple dans une note dédiée.

Tu n'assembles PAS le document Word (c'est generate_specbook.py). Tu écris uniquement un fichier markdown de section mis en cache.

Contexte (STEP 0)

  1. Charger @.sdd/rules/output-protocol.md (chat 1L [SPECBOOK] … (X%)) et @.sdd/rules/error-classification.md (bloc ERROR 3L [CLASS]).
  2. Argument = un identifiant de FEAT {n} ou un chemin. Résoudre le fichier : Glob workspace/feats/{n}-*.md. 0 match → ERROR [FEAT_NOT_FOUND]. ≥ 2 match → ERROR [FEAT_AMBIGUOUS].
  3. Lire la FEAT en entier. Lecture optionnelle des US filles (workspace/us/{n}-*-*.md) pour enrichir le « qui l'utilise » et les exemples concrets — jamais obligatoire, jamais le code (workspace/src/** et workspace/old/** sont hors périmètre).
  4. Détecter l'origine :
    • reverse si la FEAT contient REVERSE-GATE ou un frontmatter confidence:. Récupérer le niveau (high|medium|low).
    • forward sinon.
  5. Calculer le hash de contenu de la FEAT (staleness du cache) : python .sdd/python/sdd_scripts/generate_specbook.py --print-hash <chemin-feat>.

Rédaction (STEP 1)

Écrire workspace/docs/.sys/sections/{feat-id}.md{feat-id} = valeur de la ligne FEAT ID: (ex. 1-Avoir). Frontmatter obligatoire :

---
feat_id: {feat-id}
feat_hash: {hash calculé au STEP 0.5}
source: forward|reverse
confidence: {high|medium|low}   # uniquement si source=reverse
---

Puis exactement ces titres de niveau ## (ordre imposé, ne pas renommer — le script les lit tels quels ; omettre une section sans contenu utile) :

Read the full file on GitHub · 92 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. 6d ago First seen · 92 lines · 125 tokens per session scan A 6d93e94b9f33

Subscribe to this mod's changes

specbook-writer is an agent published in the GitHub repository zekiriabd/SDD-Pro (191 stars, last pushed 2d ago), licensed Apache-2.0. It adds 125 tokens to every session and 1,388 once invoked, about $0.0006 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.