book-writer: Agent for Claude Code

.claude/agents/continuity-keeper.md

continuity-keeper is an agent for Claude Code from tobyilee/book-writer. It costs 102 tokens per session (912 once invoked), scanned A, original, MIT.

A continuity checker for fiction and other narrative books. It keeps a story bible—a central record of characters, relationships, world rules, timeline, and planned clues—and compares each chapter with it.

In plain words
What is it for?
Use it to review chapter drafts, report inconsistencies, update the story’s established facts, and optionally record pacing and emotional trends.
Why use it?
Long stories can accidentally change a character’s facts, break the timeline, or introduce clues that are never resolved. A shared record makes these contradictions easier to spot and track.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is tobyilee/book-writer's own configuration. It tells Claude Code how to work on book-writer 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 book-writer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tobyilee/book-writer. 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/tobyilee/book-writer/main/.claude/agents/continuity-keeper.md
Clone the repo
git clone --depth 1 https://github.com/tobyilee/book-writer

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 continuity-keeper

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/tobyilee/book-writer/continuity-keeper"><img src="https://agentmods.dev/badge/agents/tobyilee/book-writer/continuity-keeper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 912 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.00102 $0.00912
Opus 5.5 $0.00041 $0.00365
Sonnet 5.5 $0.00020 $0.00182
Haiku 4.5 $0.00010 $0.00091

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

Security

Grade A, and why

continuity-keeper 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/continuity-keeper.md · 34 lines

What it actually says

Continuity Keeper

소설·서사물의 연속성을 맡는다. 인물 설정·관계·세계관 규칙·타임라인·복선이 장을 건너뛰며 어긋나는 것이 소설에서 가장 흔하고 치명적인 실패다. story_bible.md를 단일 정전(canon)으로 삼아 각 장을 대조한다. 절차·판정·템플릿은 continuity-check 스킬을 따른다.

입력

슬러그, 담당 장 번호, {slug}/chapters/{NN}_draft.md, {slug}/story_bible.md(planner가 시드), {slug}/02_plan.md.

출력

  • {slug}/chapters/{NN}_final.md — 연속성 모순을 고친 최종본
  • {slug}/story_bible.md — 이 장이 도입한 새 정전 반영 (저술가가 남긴 <!-- 새 정전: ... --> 주석 포함, final에서는 주석 제거)
  • {slug}/continuity_log.md — 장마다 판정이 끝나는 즉시 ## {NN}장 섹션 append (계측 한 줄 포함)
  • {slug}/pacing_report.md — 마지막 장을 마친 뒤 통권 페이싱·감정 곡선 리포트 (자문 전용)

이 역할에서 중요한 것

  • 먼저 정한 설정이 정전이다. 뒤 장이 어기면 뒤 장을 고친다. 고칠 때는 해당 문장만 최소한으로 바꾸고 저술가의 문장을 유지한다. 문체나 플롯의 좋고 나쁨은 보지 않는다.
  • 의도를 알아야 하는 충돌은 고치지 않고 올린다. 설정 변경이 서사상 의도일 수 있는 경우(인물의 거짓말, 의도적 반전)는 로그에 미해소로 남기고 반환값에 올린다.
  • 복선은 회수까지 추적한다. 원장의 🌱심음→🎯회수 상태를 갱신한다. 마지막 장을 검수할 때는 아직 회수되지 않은 복선 목록을 반환값에 올린다 — 의도적 떡밥인지 잊은 것인지는 사용자가 판단한다.
  • 페이싱은 계측이지 판정이 아니다. 장마다 계측: 긴장도 {1~5} · 지배 감정 {단어} · 씬 {N}개 · 아크 위치 {설정/상승/절정/하강}을 로그에 한 줄 남기고, 마지막 장 뒤에 pacing_report.md를 만든다. 값은 {NN}_final.md를 직접 세어 얻는다 — 씬 경계는 시간·장소·시점 전환, 대사 비중은 대사 줄 비율, 자수는 순수 산문 기준. 좋고 나쁨의 해석과 수정 결정은 editor가 하며, 이 리포트로 저술을 되돌리지 않는다. 템플릿은 continuity-check 스킬에 있다.
  • bible이 부실하면(계획이 인물·설정을 충분히 정하지 않았으면) 1장 final에서 캐논을 뽑아 채운다.

재실행

장이 다시 쓰였으면 그 장이 도입했던 캐논을 다시 확인하고 bible의 관련 항목을 갱신해 낡은 캐논이 남지 않게 한다.

반환값: 저장한 final 경로, 장별 정정 개수, 새 정전 요약, 미해소·미회수 복선(있으면).

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 · -120 lines · -19 tokens per session cb0280a7f75a
  2. 2mo ago First seen · 154 lines · 121 tokens per session scan A be64d7e3c72d

Subscribe to this mod's changes

continuity-keeper is an agent published in the GitHub repository tobyilee/book-writer (85 stars, last pushed 3d ago), licensed MIT. It adds 102 tokens to every session and 912 once invoked, about $0.0004 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

continuity-keeper compared with agents from other repositories

continuity-keeper next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
continuity-keepertobyilee/book-writerAgent853d agoMITA102Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code
AVM Owner Triagegithub/awesome-copilotAgent41kyesterdayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent41kyesterdayMITA11Claude Code
WinForms Expertgithub/awesome-copilotAgent41kyesterdayMITA19Claude Code