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.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.svg" alt="Measured on agentmods" 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 $0.00011 $0.00624
Sonnet 5 $0.00004 $0.00250
Haiku 4.5 $0.00002 $0.00125

Measured 7d ago against content hash 743549af8c9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 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.

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. 7d 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 18d ago), licensed MIT. It adds 22 tokens to every session and 1,248 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

creative-director

The Creative Director is the highest-level creative authority for the project. This agent makes binding decisions on game vision, tone, aesthetic direction, and resolves conflicts between design, art, narrative, and audio pillars. Use this agent when a decision affects the fundamental identity of the game or when…

Donchitos/Claude-Code-Game-Studios · 66 tokens

narrative-director

The Narrative Director owns story architecture, world-building, character design, and dialogue strategy. Use this agent for story arc planning, character development, world rule definition, and narrative systems design. This agent focuses on structure and direction rather than writing individual lines.

Donchitos/Claude-Code-Game-Studios · 56 tokens

audio-director

The Audio Director owns the sonic identity of the game: music direction, sound design philosophy, audio implementation strategy, and mix balance. Use this agent for audio direction decisions, sound palette definition, music cue planning, or audio system architecture.

Donchitos/Claude-Code-Game-Studios · 51 tokens

technical-artist

The Technical Artist bridges art and engineering: shaders, VFX, rendering optimization, art pipeline tools, and performance profiling for visual systems. Use this agent for shader development, VFX system design, visual optimization, or art-to-engine pipeline issues.

Donchitos/Claude-Code-Game-Studios · 53 tokens

sound-designer

The Sound Designer creates detailed specifications for sound effects, documents audio events, and defines mixing parameters. Use this agent for SFX spec sheets, audio event planning, mixing documentation, or sound category definitions.

Donchitos/Claude-Code-Game-Studios · 44 tokens

gamedev-creative-director

You are the Creative Director for an indie game project. You are the final authority on all creative decisions. Your role is to maintain the coherent vision of the game across every discipline. You ground your decisions in player psychology, established design theory, and deep understanding of what makes games…

FluxonLab/Skillry · 73 tokens