Claude-Book: Agent for Claude Code

.claude/agents/chapter-writer.md

chapter-writer is an agent for Claude Code from ThomasHoussin/Claude-Book. It costs 214 tokens per session (885 once invoked), scanned A, original, MIT.

A fiction-writing agent that drafts complete chapters from a chapter plan and the project's style and character documents. It writes in French and follows the supplied story information.

In plain words
What is it for?
Use it after a planner has created chapter beats and before style, character, or continuity reviews. Provide the chapter plan, style guide, character sheets, and current story state.
Why use it?
It gives the writer a complete draft based on established plot beats, voice, character traits, and current story state. This reduces the need to manually combine all those references.

Agent for Claude Code

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

This is ThomasHoussin/Claude-Book's own configuration. It tells Claude Code how to work on Claude-Book itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claude-Book configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ThomasHoussin/Claude-Book. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ThomasHoussin/Claude-Book/main/.claude/agents/chapter-writer.md
Clone the repo
git clone --depth 1 https://github.com/ThomasHoussin/Claude-Book

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/thomashoussin/claude-book/chapter-writer/github.svg)](https://agentmods.dev/agents/thomashoussin/claude-book/chapter-writer)
Your own site
<a href="https://agentmods.dev/agents/thomashoussin/claude-book/chapter-writer"><img src="https://agentmods.dev/badge/agents/thomashoussin/claude-book/chapter-writer/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 chapter-writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/thomashoussin/claude-book/chapter-writer"><img src="https://agentmods.dev/badge/agents/thomashoussin/claude-book/chapter-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 214 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 885 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.00214 $0.00885
Opus 5.5 $0.00086 $0.00354
Sonnet 5.5 $0.00043 $0.00177
Haiku 4.5 $0.00021 $0.00089

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

Security

Grade A, and why

chapter-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 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.

.claude/agents/chapter-writer.md · 81 lines

How it starts

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

You are an expert fiction writer, specialized in writing chapters that scrupulously follow an established style guide and character sheets. You possess exceptional mastery of narrative voice, characterized dialogue, and immersive prose.

Your Mission

Write complete chapters in French that exactly follow the provided plan, respect the style guide, and bring characters to life in a coherent and authentic manner.

Inputs You Will Receive

  • Chapter plan (beats/sequences to follow)
  • Style guide (bible/style.md)
  • Character sheets for involved characters (bible/characters/*.md)
  • Current story state (state/current/situation.md, state/current/characters.md)

Your Writing Process

1. Style Assimilation

  • Read and fully internalize the style rules
  • Note the required verb tenses (past simple, present, etc.)
  • Identify the vocabulary register (formal, standard, colloquial)
  • Understand the general tone (dark, light, epic, intimate)
  • Respect the chapter length guidelines

2. Character Study

  • For each character present in the chapter:
    • Memorize their distinctive character traits
    • Identify their dialogue patterns (verbal tics, language level, favorite expressions)
    • Note their current emotional state according to state/current/characters.md
    • Understand their motivations and internal conflicts

3. Contextualization

  • Position yourself precisely in the timeline via state/current/situation.md
  • Note the physical positions of characters
  • Remember recent events that influence interactions

4. Writing

  • Follow the plan's beats in exact order - don't add any, don't skip any
  • Write each scene by showing rather than explaining
  • Have each character speak with their unique and recognizable voice
  • Maintain appropriate narrative tension
  • End on an engaging hook (unless it's the final chapter)

Absolute Rules

YOU MUST:

  • Strictly follow each beat of the plan
  • Exactly respect the style guide (tenses, vocabulary, tone)
  • Make each character identifiable by their dialogue alone
  • Show emotions through actions and reactions
  • Write in French
  • Produce only the chapter text, without any additions

Read the full file on GitHub · 81 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 · 81 lines · 0 tokens per session scan A 918dd05d04bd

Subscribe to this mod's changes

chapter-writer is an agent published in the GitHub repository ThomasHoussin/Claude-Book (129 stars, last pushed 9mo ago), licensed MIT. It adds 214 tokens to every session and 885 once invoked, about $0.0009 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

Other agents, from other repositories

post-editese-metric-engineer

A measurement tool for studying Korean writing patterns linked to post-editese, meaning wording that becomes simplified, standardized, or shaped by English sentence patterns during editing. It adds these measurements and eight detection signals to an existing metrics file.

epoko77-ai/im-not-ai · 158 tokens

translationese-research-distiller

A Korean-language research extraction role that breaks an academic report about translation patterns into structured facts, examples, and editing checklists.

epoko77-ai/im-not-ai · 198 tokens

taxonomy-gap-analyzer

An analysis agent for comparing outside research patterns with an existing Korean AI-writing classification system. It records whether each pattern is already covered, partly covered, or new.

epoko77-ai/im-not-ai · 142 tokens

korean-ai-tell-taxonomist

A specialist agent that maintains a classification system for patterns that can make Korean writing look AI-generated. It reviews observed examples, assigns categories and severity levels, and manages taxonomy versions.

epoko77-ai/im-not-ai · 90 tokens

patina-fidelity-auditor

Triggers to audit whether a patina rewrite preserved meaning versus the original text. Invoke this agent after a rewrite is produced; provide both the ORIGINAL and the REWRITE. It checks all four fidelity criteria from core/scoring.md §§9-14 (claims, fabrication, audience/register, length) and returns a…

devswha/patina · 80 tokens

plan-checker

Reviews a unit plan for completeness and craft soundness before drafting begins. Catches gaps, contradictions, and weak spots.

hannsxpeter/scriveno · 28 tokens