---
name: manage-bible
title: Manage the series bible — entities and reference docs
description: Use when maintaining the world behind the story — creating or editing characters, locations and factions, clearing the pending-entity review queue, and writing reference documents that generation draws on.
version: 1.1.0
requires_tools: [bible_entity_list, bible_entity_create, bible_entity_update, bible_entity_list_pending, bible_entity_approve, bible_entity_reject, bible_entity_merge, bible_doc_create, bible_doc_attach]
related: [distil-canon, draft-chapter]
---

# Manage the bible

The bible is the entity graph (characters, places, factions) plus reference documents. Generation reads it, so keeping it clean directly improves prose.

## Prerequisites
- The series id and, for attaching docs, the target chapter id. Resolve entities with `bible_entity_list` before editing — never guess an entity id.

## Steps
1. **Create or edit entities.** `bible_entity_create` / `bible_entity_update`. Always set `aliases` to the short forms the prose uses (first names, nicknames) — tagging matches canonical name + aliases only, so without them the entity never tags the beats that name it that way. Edit character/location detail through the entity's `bible_sections`; that re-renders the linked author-facing ref doc, so never hand-edit an entity-backed ref doc.
2. **Clear the review queue.** On content save, multi-word proper nouns auto-create as entities; single Title-Case words fall to a queue. `bible_entity_list_pending`, then `bible_entity_approve` real entities or `bible_entity_reject` the false positives (a metaphor or motif mis-read as a character) — rejecting suppresses the name so the rollup won't re-promote it.
3. **Fold duplicates.** When two entries are the same person, place or thing ("Richard" and "Richard Heaton"), `bible_entity_merge` them: `dry_run:true` first, show the author the resulting name and aliases, the counts and each conflict, then call it live with the `preview_token`. Every variant of one target goes in one call. Never reject or delete a duplicate by hand: reject hides the name from detection, and both drop the duplicate's portraits, page and chat history.
4. **Write free-standing reference docs.** `bible_doc_create` for worldbuilding a rule, faction, or place that isn't a single entity.
5. **Attach docs to a chapter.** `bible_doc_attach` — a ref doc only reaches generation if it is attached to the chapter that should use it.

## Credits
Bible work is free — no generation. It is the cheapest, highest-leverage quality investment before drafting.

## Done when
The pending queue is empty, principal entities carry aliases and filled bibles, and the docs a chapter needs are attached to it. Then draft with **draft-chapter**.
