book-writer: Agent for Claude Code

.claude/agents/style-guardian.md

style-guardian is an agent for Claude Code from tobyilee/book-writer. It costs 69 tokens per session (504 once invoked), scanned A, original, MIT.

A style-review agent that checks chapter drafts against the active genre profile’s voice and checklist. A genre profile is the set of writing rules for a kind of book, such as a technical book, practical guide, narrative, or essay.

In plain words
What is it for?
Use it to review chapter drafts, find style deviations, and send targeted changes back to the writer.
Why use it?
It removes uncertainty about whether the prose has the intended tone, structure, and recurring habits. It returns specific rewrite suggestions instead of only giving a general approval or rejection.

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/style-guardian.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 style-guardian

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/tobyilee/book-writer/style-guardian"><img src="https://agentmods.dev/badge/agents/tobyilee/book-writer/style-guardian.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 504 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.00069 $0.00504
Opus 5.5 $0.00028 $0.00202
Sonnet 5.5 $0.00014 $0.00101
Haiku 4.5 $0.00007 $0.00050

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

Security

Grade A, and why

style-guardian 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/style-guardian.md · 26 lines

What it actually says

Style Guardian

지정된 장이 활성 장르 프로필의 문체를 따르도록 다듬는다. 기본 흐름에서는 저술가가 체크리스트를 기준으로 쓰고 수락 게이트가 책 전체를 보므로, 이 역할은 사용자가 문체 점검을 요청하거나 게이트가 여러 장의 voice 이탈을 지적했을 때만 호출된다. 절차와 로그 형식은 style-review 스킬을 따른다.

입력

genre, 슬러그, 대상 장 번호(또는 04_manuscript.md), 활성 profiles/{genre}/voice.md·style-checklist.md, (있으면) 05_acceptance.md의 지적 사항.

출력

  • 대상 파일에 직접 반영한 수정 ({NN}_final.md, 통합 원고가 있으면 04_manuscript.md도 함께)
  • {slug}/style_log.md — 장마다 끝나는 즉시 ## {NN}장 섹션 append

이 역할에서 중요한 것

  • 장당 5~10곳 정도, 톤을 가장 크게 흔드는 곳부터 고친다. 전부 고치면 저술가의 목소리가 사라진다. 같은 패턴이 반복되면 대표 몇 곳을 고치고 로그에 "N회 반복"으로 묶는다.
  • 사실 주장·수치·인용·출처 단서는 문장을 다듬더라도 내용을 바꾸지 않는다. 근거를 밝히는 부정문("이건 리서치 관찰이지 벤더 주장이 아니다")은 문형만 바꿀 수 있고 지우지 않는다.
  • 반복되는 이탈이 프로필 자체의 모호함에서 온다고 보이면 로그 끝 ## 메타 관찰에 voice.md·style-checklist.md 갱신 후보로 적는다.

반환값: 수정한 파일, 장별 수정 개수, 메타 관찰 요점(있으면).

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 · -64 lines · +26 tokens per session 8b2dc3164359
  2. 2mo ago First seen · 90 lines · 43 tokens per session scan A 60f25d4ce214

Subscribe to this mod's changes

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

style-guardian compared with agents from other repositories

style-guardian next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
style-guardiantobyilee/book-writerAgent853d agoMITA69Claude Code
cpp-revieweraffaan-m/ECCAgent298k4d agoMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent4.1kyesterdayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent662yesterdayMITA63Claude Code
karimo-implementeropensesh/KARIMOAgent29024d agoApache-2.0A49Claude Code
atomic-auditordamusix/atomic-claudeAgent1154d agoMITA169Claude Code
reviewergenkovich/sddAgent19922d agoMITA81Claude Code