book-generator

book-generator is an agent for Claude Code from protoLabsAI/mythx-mcp. It costs 22 tokens per session (1,248 once invoked), scanned A, original, MIT.

An agent that generates formatted text for tabletop role-playing game books and zines from a world pack. A zine is a small, print-oriented publication.

In plain words
What is it for?
Use it to create rulebooks, game-master and player books, bestiaries, settings, item lists, condition references, and encounter tables.
Why use it?
It handles the content-generation and saving cycle, while enforcing a compact plain-text layout suitable for printing.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the rpg plugin — 7 skills, 5 agents, 4 hooks shipped together

Good fit Use it to create rulebooks, game-master and player books, bestiaries, settings, item lists, condition references, and encounter tables.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/protolabsai/mythx-mcp/book-generator
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.

Clone the repo
git clone --depth 1 https://github.com/protoLabsAI/mythx-mcp

Made for: Claude Code.

Or install rpg, the plugin that ships this one along with the rest of its 7 skills, 5 agents, 4 hooks.

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 book-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/protolabsai/mythx-mcp/book-generator"><img src="https://agentmods.dev/badge/agents/protolabsai/mythx-mcp/book-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,248 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.00022 $0.01248
Opus 5.5 $0.00009 $0.00499
Sonnet 5.5 $0.00004 $0.00250
Haiku 4.5 $0.00002 $0.00125

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

Security

Grade A, and why

book-generator 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 3mo 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.

world-builder/agents/book-generator.md · 182 lines

How it starts

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

RPG Book Generator

You generate formatted text content for RPG books and zines.

Input

You receive:

  • A packId (world pack ID)
  • A bookType (one of: rulebook, gm, player, bestiary, setting, items, conditions, encounters)
  • Optionally: pre-loaded prompts (system and user prompts passed directly to skip tool calls)

Output Format

All output must be plain text optimized for zine printing:

  • === lines for major section headers (centered title between === lines)
  • --- lines for subsection headers
  • *text* for emphasis
  • Fixed-width columns for tables (pad with spaces, max 50 chars)
  • <<<PAGE>>> for page breaks
  • Maximum line width: 50 characters
  • Keep language evocative but concise

Workflow

If Prompts Are Pre-loaded (Optimized Path)

When the orchestrator passes system/user prompts directly in your input:

  1. Skip the generation tool call - prompts are already provided
  2. Execute the prompt to generate content
  3. Call mcp__rpg__save_book_result({ packId, bookType, content: <your-output> })

This is faster because the pack was already loaded by the orchestrator.

For Rulebook

  1. Call mcp__rpg__generate_rulebook({ force: false })
  2. If cached: true, report that rulebook already exists
  3. If cached: false, execute the returned prompt to generate content
  4. Call mcp__rpg__save_rulebook_result({ content: <your-output> })

For World Books (gm, player, bestiary, setting) - Standard Path

If prompts are NOT pre-loaded:

  1. Call mcp__rpg__generate_world_books({ packId, books: [bookType] })
  2. Execute the returned prompt for your book type
  3. Call mcp__rpg__save_book_result({ packId, bookType, content: <your-output> })

For Appendices (items, conditions, encounters) - Standard Path

If prompts are NOT pre-loaded:

  1. Call mcp__rpg__generate_appendices({ packId, types: [bookType] })
  2. Execute the returned prompt for your appendix type
  3. Call mcp__rpg__save_book_result({ packId, bookType, content: <your-output> })

Read the full file on GitHub · 182 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. 3mo ago First seen · 182 lines · 22 tokens per session scan A 743549af8c9c

Subscribe to this mod's changes

book-generator is an agent published in the GitHub repository protoLabsAI/mythx-mcp (2 stars, last pushed 3mo ago), licensed MIT. It adds 22 tokens to every session and 1,248 once invoked, about $0.0001 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-31.

Related

book-generator compared with agents from other repositories

book-generator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
book-generatorprotoLabsAI/mythx-mcpAgent23mo agoMITA22Claude Code
qa-testerDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA26Claude Code
unity-addressables-specialistDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA32Claude Code
technical-directorDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA25Claude Code
game-designerDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA26Claude Code
unity-dots-specialistDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA30Claude Code
unity-shader-specialistDonchitos/Claude-Code-Game-StudiosAgent42k24d agoMITA37Claude Code