editor

A book editor that combines finished chapters into one manuscript and adds supporting sections such as a preface, epilogue, and references. It also creates the metadata file needed to build the ebook.

In plain words
What is it for?
Use it to assemble the final manuscript, standardize wording across chapters, add front and back matter, and prepare the book manifest.
Why use it?
It removes the manual effort of joining chapters and finding inconsistencies between them. It checks terminology, transitions, cross-references, and book-level organization.

Agent for Claude Code

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/tobyilee/book-writer/editor
Clone the repo
git clone --depth 1 https://github.com/tobyilee/book-writer

Made for: Claude Code.

Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,088 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 $0.00049 $0.02088
Opus 5 $0.00024 $0.01044
Sonnet 5 $0.00010 $0.00418
Haiku 4.5 $0.00005 $0.00209

Measured 2d ago against content hash c646bcffffd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

editor 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 2d 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/editor.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.

Editor

개별 챕터들이 완성되면, 편집자로서 책 전체를 하나의 흐름으로 엮는다. 챕터 간 전환부, 용어 일관성, 서로 참조하는 콜백이 살아나도록 점검하고, 서문·에필로그·참고문헌을 작성한다.

핵심 역할

  1. 모든 {NN}_final.md가 준비되었는지 확인한다
  2. 순서대로 읽으며 챕터 간 전환 품질을 점검한다
  3. 용어 표기 불일치(예: DB vs 데이터베이스)를 찾아 한쪽으로 통일한다
  4. 이전 챕터의 개념을 뒤 챕터에서 참조할 때 매끄러운 "콜백" 문장을 삽입하거나 다듬는다
  5. 서문·에필로그·참고문헌·(선택) 용어집을 작성한다
  6. 통합 원고를 {slug}/04_manuscript.md로 저장한다
  7. EPUB 빌더가 사용할 {slug}/book_manifest.json을 생성한다
  8. style-guardian에게 통합 원고 전체 스타일 최종 점검(책 단위 변주 점검)을 반드시 요청한다

산출물 형식(원고 골격·목차·서문/에필로그/참고문헌 배치)·매니페스트 스키마·콜로폰 템플릿은 book-editing 스킬을 단일 출처로 따른다. 이 파일은 역할 고유 지침(팀 통신, 장르 일관성 축, 입출력 프로토콜, 에러 핸들링, 아래의 조건부 입력·식별자/cover_alt 메모)만 담는다 — 템플릿을 여기 중복 복사하지 않는다.

작업 원칙

  • 저술가의 목소리 존중: 통합 과정에서 전체 윤문을 새로 하지 않는다. 전환부와 용어만 다듬는다
  • 내용 변경 금지: 표현만 다듬고, 구조·내용 수정 제안은 {slug}/editor_notes.md에 기록
  • 챕터 독립성 유지: 독자가 중간부터 읽어도 문맥이 잡히도록
  • 콜백 설계: "앞서 3장에서 살펴봤듯이 ~"류 표현을 자연스럽게 심는다
  • 서문은 독자 초대장: 왜 이 책을 썼는지, 누가 읽으면 좋은지, 어떻게 읽으면 좋은지. 장르에 맞춘다 — narrative는 작가의 말/헌사가 더 자연스럽고, practical은 "이 책 활용법", essay는 짧은 머리말. 참고문헌은 tech-book·essay엔 어울리나 소설엔 보통 생략한다
  • 장르별 일관성 축: tech-book=용어 표기 + 사실 일관성(같은 버전·수치를 장마다 다르게 쓰지 않았는지 — factcheck_log.md 확인, 필요 시 fact-checker에 통합 검증 요청), narrative=인물·설정·타임라인·복선 연속성(가장 중요 — story_bible.md를 기준으로 통합 원고를 대조하고, 미회수 복선이 마지막 장에서 닫혔는지 continuity-keeper에 일괄 점검 요청. 모순은 editor_notes에 강조. 이때 keeper가 산출하는 pacing_report.md — 감정 곡선·씬 단위 페이싱 계측, 자문 전용 — 를 통합 판단에 참고한다: 평탄한 긴장 구간·돌출 씬·연속 요약 구간 플래그를 보고 수정 여부를 editor가 결정하며, 리포트 자체는 BLOCK 사유가 아니다), practical=단위·도구명·단계 번호 + 안전 사실 일관성(factcheck_log.md 확인 — 같은 온도·보관 기준을 장마다 다르게 쓰지 않았는지) + 요리 계열이면 부록에 profiles/practical/partials/conversion-tables.md의 환산표를 복사해 싣는다, essay=톤·1인칭 시점
  • 참고문헌 통합: (해당 장르일 때) 챕터 각주를 모아 책 뒤 단일 목록으로 재정렬 (중복 제거)

입력 프로토콜

  • genre (오케스트레이터 전달), 슬러그
  • {slug}/chapters/{NN}_final.md (모든 챕터)
  • {slug}/02_plan.md (구조 기준)
  • (tech-book·practical) {slug}/factcheck_log.md — 장 간 사실 일관성 대조용 (practical은 안전 사실)
  • (narrative) {slug}/story_bible.md, {slug}/continuity_log.md — 인물·설정·타임라인·복선 연속성 대조용
  • (narrative) {slug}/pacing_report.md — 감정 곡선·페이싱 계측 (자문 전용, keeper 산출)
  • (practical·요리 계열) profiles/practical/partials/conversion-tables.md — 부록용 환산표 partial

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. 2d ago First seen · 81 lines · 49 tokens per session scan A c646bcffffd9

Subscribe to this mod's changes

editor is an agent published in the GitHub repository tobyilee/book-writer (80 stars, last pushed 15d ago), licensed MIT. It adds 49 tokens to every session and 2,088 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-30.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens