Worldbuilding
A living encyclopedia for a story you're writing: characters, places, factions, and lore, each on its own page that links to the others. Mention someone new and the AI adds a page for them; contradict your own canon and it flags it. Built on the Worldbuilding starter pack.
A worldbuilding knowledge base is a living encyclopedia of your story world. Characters, settings, themes, factions, and lore — each its own page, all linking to each other. The graph is the product: the value isn't any single entry, it's the web connecting them, and an agent that grows and guards that web as you write.
Unlike the other packs, the flow here isn't a pipeline — it's a network that thickens over time. Your job is to write scenes and notes; the agent's job is to keep the encyclopedia consistent with them.
Novelists and screenwriters lean on it to stop losing track of their own canon as the story grows. Game masters keep a navigable world bible — who controls which region, which faction hates which. Narrative-design teams use it to hold a shared setting together as more people contribute.
The folders
| Folder | Holds | The story question it answers |
|---|---|---|
characters/ | One page per character (PC + NPC); type, status, faction, first appearance | Who |
settings/ | Locations, regions, world-rules; region, controlling faction, danger level | Where |
themes/ | Recurring narrative concerns (love, betrayal, identity), each with its tension | Why |
factions/ | Political, social, criminal, magical, religious groups | Who's aligned with whom |
lore/ | History, mythology, cosmology, magic systems | What's true about the world |
The pack ships templates for the shapes that recur — faction, political-faction, religion, lore, magic-system, historical-event, and the core character / setting / theme pages.
The two behaviors that make it worth it
This is where the agent earns its keep:
- Auto-stub on mention. When a chapter, session log, or existing entry names someone or somewhere not yet captured, the agent stubs a page in the right folder and backlinks it to where it came up. Your canon grows as you write, not in a separate cataloguing session.
- Flag contradictions. When a character's
factioncontradicts their actions in a scene, or a setting gets described two ways, the agent surfaces the conflict rather than silently "fixing" it — because in fiction a contradiction is often a plot point, not a bug. You decide whether it's a mistake or a mystery.
The scenario
You write a chapter where Kael, a member of the Iron Pact, quietly warns the people of Duskfen before a raid. You drop the scene in and ask:
The agent stubs characters/kael.md linked to factions/iron-pact.md and settings/duskfen.md — then notes that Kael warning Duskfen contradicts the Iron Pact's stated hostility toward it. Is Kael a traitor, a double agent, or did you misremember the Pact's alignment? That flag is the agent doing worldbuilding with you.
What's in your project after seeding
Pick Worldbuilding in the starter-pack picker, or run:
ok seed --pack worldbuildingBy default the pack nests under a world/ subfolder:
your-project/
└── world/
├── characters/
├── settings/
├── themes/
├── factions/
└── lore/Each folder's .ok/frontmatter.yml teaches the agent that entity type and its auto-stub / contradiction behavior, so the guidance never clutters the entries themselves.
Seeding also installs a skill
ok seed --pack worldbuilding installs the Worldbuilding project skill into your agent editors (Claude Code, Cursor, Codex, OpenCode). It's the "how to work here" guidance behind the auto-stub and contradiction-flagging behaviors — read automatically, and editable like any other doc. It lands as a real SKILL.md committed to your repo, one per detected editor. See Skills and what OpenKnowledge writes to disk.
Cadence
| When | Do |
|---|---|
| After writing a scene or session | Ask the agent to update the encyclopedia — stub new entities, link mentions, flag contradictions |
| Periodically | Thread the graph: ask it to link characters ↔ factions ↔ settings ↔ lore so each entry is a hub |
| Before a big reveal | Ask it to surface every page that touches the character or lore involved, so continuity holds |
| Monthly | Ask the agent to audit dead links and stubbed-but-never-filled entities |
Further reading
- LLM wiki workflow. The same wiki-graph discipline, aimed at real-world sources instead of a fictional world.
- Entity vault workflow. The non-fiction sibling — track real people, companies, and meetings the same way you track characters and factions.
- Core Concepts. Links and backlinks — the connected graph you navigate the world through.
- Claude Code, Cursor, Codex. MCP-capable agent hosts.
Supporting the Open Knowledge Format
Start a knowledge base that already follows Google's Open Knowledge Format, so any OKF tool can read it later. You get the right setup out of the box, and you're still free to write however you like.
Plain notes
The simplest setup: one folder for notes and one for a daily journal. Just write, link the things worth linking, and a connected web of notes builds itself. Built on the Plain notes starter pack.