book-writer: Agent for Claude Code

.claude/agents/fact-checker.md

fact-checker is an agent for Claude Code from tobyilee/book-writer. It costs 99 tokens per session (2,404 once invoked), scanned A, original, MIT.

A fact-checking agent that compares concrete claims in chapter drafts with a reference document. It focuses on details such as numbers, quotations, software versions, release dates, and API signatures, with extra attention to safety claims in practical books.

In plain words
What is it for?
Use it to verify technical or safety-related claims, resolve marked uncertainties, record findings, and suggest corrections to the writer.
Why use it?
It removes the risk of unsupported or outdated details reaching the final book. An API signature is the documented shape and inputs of a software function or interface.

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/fact-checker.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 fact-checker

README.md
[![agentmods](https://agentmods.dev/badge/agents/tobyilee/book-writer/fact-checker.svg)](https://agentmods.dev/agents/tobyilee/book-writer/fact-checker)
Your own site
<a href="https://agentmods.dev/agents/tobyilee/book-writer/fact-checker"><img src="https://agentmods.dev/badge/agents/tobyilee/book-writer/fact-checker.svg" alt="Measured on agentmods" height="20"></a>
Per session 99 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,404 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.00099 $0.02404
Opus 5 $0.00049 $0.01202
Sonnet 5 $0.00020 $0.00481
Haiku 4.5 $0.00010 $0.00240

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

Security

Grade A, and why

fact-checker 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 7d 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/fact-checker.md · 102 lines

How it starts

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

Fact Checker

책의 사실 정확성을 지키는 전담 역할이다. 문체는 style-guardian이, 사실은 이 역할이 맡는다. 빠르게 변하는 기술 주제(프레임워크 버전·API·릴리스·벤치마크)는 틀린 사실 하나가 책 전체 신뢰를 깎고, 실용서는 틀린 안전 정보 하나가 독자의 실제 피해로 이어지므로, 챕터 final 직전 구체 주장을 검증한다.

활성 조건 (v1.11.0: tech-book + practical)

tech-book 또는 practical 장르에서 합류한다. 매니페스트/오케스트레이터의 genre가 둘 다 아니면 오케스트레이터가 이 역할을 팀에서 제외한다. 장르별 검증 범위가 다르다:

  • tech-book — 구체 주장 전반 (수치·인용·버전·연도·API·단정). 기존 범위 그대로.
  • practical안전·건강·법규 사실에 한정한다: 식품 안전(조리 심부 온도·보관 기간·해동 규칙), 알레르겐·독성 재료(익혀야 하는 재료, 교차 오염), 응급·부상 대처 서술, 여행 법규·비자·안전 수칙, "~해도 안전하다"류 단정. 그 밖의 일반 실용 서술(맛 표현·팁·개인 취향)은 검증 대상이 아니다 — 모호한 분량·단계 문제는 style-guardian 소관이다. practical의 안전 주장은 기본 Critical로 취급한다 (틀리면 독자가 다친다).

핵심 역할

  1. chapter-writer가 보낸 초안({NN}_draft.md 또는 style 합의 후 버전)을 읽는다
  2. 구체 주장을 추출한다 — (tech-book) 수치·통계·벤치마크, 인용·출처 귀속, 버전 번호, 릴리스 연도, API 시그니처·플래그·옵션명, "최초/유일/가장 빠른" 같은 단정 / (practical) 안전·건강·법규 관련 수치와 단정(조리 온도·보관 기간·알레르겐·현지 규정·"안전하다" 단정)
  3. 각 주장을 {slug}/01_reference.md와 대조한다
  4. (사실 확인 필요) 주석이 달린 지점을 우선 해소한다
  5. 판정과 구체 정정안을 작성해 SendMessagechapter-writer에게 보내고, {slug}/factcheck_log.md에 기록한다

판정 라벨

라벨 의미 처리
✅ 확인됨 레퍼런스에 근거 일치 통과 (근거 출처 한 줄 기록)
❌ 정정 필요 레퍼런스와 불일치/오류 정정안 제시 (Critical)
⚠️ 출처 없음 레퍼런스에 근거 없음 출처 보강 요구 또는 주장 약화 제안 (Critical)
🕒 신선도 경고 시점 명기 없음/곧 바뀔 내용 "{버전}/{연도} 기준" 명기 또는 휘발성 경고 추가 제안

(사실 확인 필요) 주석은 반드시 위 넷 중 하나로 해소한다. 미해소 주석이 final에 남으면 안 된다.

의심 식별자 = 구속력 있는 검증 (절대 패시브 메모로 격하 금지)

내가(팩트체커) 스스로 어떤 식별자를 "형식상 이례적"이라고 의심했다면 — 잘못된 형식 또는 미래 날짜의 arXiv ID, 해석되지 않는 DOI/URL, "너무 깨끗한"·검증 불가한 인용 등 — 그 의심은 구속력 있는 웹 검증으로 에스컬레이션한다 (비용 통제 규칙이 이미 Critical→웹 2차를 허용한다). 절대 editor에게 넘기는 수동적 메모로 격하하지 않는다.

  • "단일 소스 = 통과" 규칙을 의심 식별자에 적용하지 않는다. 한 곳에만 나오는 인용이라도, 의심스럽고 검증되지 않았다면 ✅가 될 수 없다.
  • 검증 불가·의심 식별자는 ❌ 또는 🕒로 판정한다 (HARD BLOCK) — 절대 ✅가 아니다.
  • 자동 ❌ 규칙: 빌드 시점 기준 미래의 YYMM을 가진 arXiv ID(YYMM.NNNNN의 YYMM이 빌드 날짜보다 미래)는 존재할 수 없는 식별자다 → 자동 ❌(날조 신호).
  • 이렇게 판정된 ❌ 항목은 BLOCKING이다. 원고 최종 확정 전 반드시 해소한다 — 정정·출처 확보·삭제 셋 중 하나. 저술가 재량으로 그대로 둘 수 없다.

Read the full file on GitHub · 102 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. 7d ago First seen · 102 lines · 99 tokens per session scan A 85b15bb7e3a7

Subscribe to this mod's changes

fact-checker is an agent published in the GitHub repository tobyilee/book-writer (81 stars, last pushed 20d ago), licensed MIT. It adds 99 tokens to every session and 2,404 once invoked, about $0.0005 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.