world-wizard
Skill7 starsChanged 4 days agoApache-2.0View on GitHub
Create a new worldbuilding project from scratch, guided or in YOLO mode. Use when the user wants to start a new world, setting, novel universe, campaign world or game world, or asks for a world wizard. Creates the project folder and project.yaml, asks the key world flags (magic yes or no first, then technology and others), then generates geography, peoples, economy, magic if allowed, history, folklore, factions and characters one causal stage at a time, validating after each stage and ending with a world bible summary.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- handoffSkill
- next-allSkill
- nextSkill
- retroSkill
- specSkill
- economy-and-tradeSkill
- folklore-and-traditionsSkill
- geography-and-climateSkill
- history-and-eventsSkill
- magic-systemsSkill
- peoplesSkill
- prose-checkSkill
- world-artSkill
- worldbuildingSkill
- world-compileSkill
- world-reviewSkill
- world-validateSkill
- world-visualiserSkill
- writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Never silently default magic.
- Very specific: line 22
Create project.yaml from project_template.yaml.
- Very specific: line 23
Create the directories: world/characters, world/locations, world/factions, world/items, world/magic-systems (only if magic is allowed), …
- Very specific: line 29
Ask in this order, a few questions per message, offering options with a recommended one.
- Very specific: line 32
If no: set present: false and prevalence: none.
- Distinctive: line 33
If yes: ask prevalence, hardness, source, cost, heritability and whether it is public knowledge.
- Very specific: line 39
Write the answers to project.yaml before generating anything.
- Very specific: line 60
Scale to size: Use references/sizes.md for entity counts.
- Very specific: line 66
After each stage, run validate.py (resolved relative to this skill's directory):
- Distinctive: line 76
Run the checker and fix all errors.
- Very specific: line 77
Run graph.py unrooted and stats (see world-validate) and fix events or entities with no explanation.
- Distinctive: line 83
If the user changes a flag after generation has started, stop, run an impact sweep of what exists, list what breaks, and get a decision …
- Distinctive: line 84
After 3 failed attempts to clear the same validator error, stop and explain it to the user.
- Distinctive: line 85
Do not regenerate over files the user has edited by hand.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
World wizard
Build a new world in dependency order so that every fact has a cause already on disk. This skill orchestrates; the domain skills own the detail. Follow the worldbuilding skill's procedure and consistency rules throughout.
Arguments the user passed (a path, a seed phrase, "yolo", a size, a genre) are the starting answers: do not ask again for anything they already gave.
Modes
- Guided (default): ask the flag questions below, then stop after each stage with a two or three line summary and let the user steer before the next stage.
- YOLO: the user said "yolo", "just do it" or similar. Ask only for what is missing from this list: project location, genre, size, and the magic yes/no. Make all other choices yourself, record them in
project.yaml(undernotesor the flag'snotes), then run every stage without stopping. Still validate after each stage.
Never silently default magic. Always ask the magic question even in YOLO unless the user already answered it.
Step 1: set up the project
- Choose the folder. Use the path given, otherwise ask where it should live. If the folder already holds a
project.yaml, stop and ask: this is an existing project, use theworldbuildingskill instead. - Create
project.yamlfrom project_template.yaml. Filltitle,genre,type,tone,style.prose.presetand theworld_flagsas you learn them. Remove the unused template comments if they are noise. - Create the directories:
world/characters,world/locations,world/factions,world/items,world/magic-systems(only if magic is allowed),world/arcs,world/events,world/species,world/races,world/languages,world/lineages,world/traditions,world/history. Put an empty.gitkeepin directories that stay empty if the folder is under git. - Create
world/history/calendar.yaml(the validator reads this file, notproject.yaml). Defer the eras until stage 6, but write the skeleton now: name, epoch, and the era or eras you already know. Each era needs a short uniqueprefixand a strictly increasingsort_order. Copy the format from thehistory-and-eventsskill'sreferences/calendar-and-eras.md. Mirrorname,epochandformatin thecalendar:block ofproject.yaml. - Entity files come from the templates in
../worldbuilding/assets/templates/<type>/_template.md(or.yaml) relative to this skill's directory, with the schema in the same folder.
Step 2: ask the flags
Ask in this order, a few questions per message, offering options with a recommended one. Full question wording, options and the YAML to record are in references/questions.md.
- Magic: yes or no. FIRST. Record
world_flags.magic.present.- If no: set
present: falseandprevalence: none. Never create magic systems, spells, magical creatures or working curses at any stage. Apparent magic must have a mundane explanation on file. - If yes: ask prevalence, hardness, source, cost, heritability and whether it is public knowledge.
- If no: set
- Technology: level, gunpowder, printing, electricity, steam, spaceflight, FTL, AI, medicine, transport. Take defaults from
preset_defaultsfor the genre inworldbuilding/assets/templates/world_flags.yaml, show them, and ask what to change. - Genre, project type, size (S, M, L, XL; see
references/sizes.md), and the user's seed idea or premise in a sentence or two. - Tone and prose style: pick from the prose presets in
worldbuilding/assets/templates/styles.yaml(seeworldbuilding/references/style-system.md). Genre defaults are inworld_flags.yamlpreset_defaults. - Optional in guided mode, chosen by you in YOLO: world shape and size, species diversity, governance, conflict level, number of central characters.
Write the answers to project.yaml before generating anything. Mark flags the user stated explicitly with locked: true in the flag's notes if the file uses that form, otherwise record in notes.
Step 3: generate in causal order
One stage at a time. Each stage: load the named skill, generate only that layer, write both sides of every link, then run the checker (see Validate) and fix errors before the next stage. Detail for each stage is in references/stages.md.
| Stage | What | Load skill |
| 1 | Flags and premise: finish project.yaml, write world/overview.md and world/rules.md (the premise, the one or two big "what if" ideas, what the flags forbid) | worldbuilding |
| 2 | Geography and climate: world shape, continents, regions, climate, terrain, flora and fauna, resources in the ground, routes | geography-and-climate |
| 3 | Peoples: species and origins, races, languages, cultures, naming, lifespans | peoples |
| 4 | Economy: resources, production, trade routes, currency, institutions | economy-and-trade |
| 5 | Magic systems, only if magic.present is true | magic-systems |
| 6 | History by eras: calendar, eras, events era by era | history-and-events |
| 7 | Folklore: for each significant event at least consider whether it leaves a tradition. M world: 5 to 10 traditions, S: 2 to 4, L: 10 to 20, XL: 20 to 40, each derived from a real event | folklore-and-traditions |
| 8 | Factions, lineages, characters, items, arcs and story hooks | peoples |
| 9 | Final validation and the world bible | world-validate |
Rules for every stage:
- Magic gate. Before writing any supernatural element in any stage (a species trait, a religion's miracle, a curse, a monster, an item), read
world_flags.magic.present. If it is false, there is none. If it is true, it must fit the flags and be an instance of a magic system on file. - Cause first. Each new entity states what earlier fact on disk explains it. If nothing does, add the cause first or drop the entity.
- Scale to size. Use
references/sizes.mdfor entity counts. Event and era counts come from thehistory-and-eventsskill's pacing table: use its numbers and do not restate them. - Retrofit upstream. Later stages often reveal a gap in an earlier one (a trade good no region produces, a people with no origin). Fix it in the earlier layer, then continue.
- Sibling-skill detail wins over this file if they disagree.
Validate
After each stage, run validate.py (resolved relative to this skill's directory):
python3 <this-skill-dir>/../world-validate/scripts/validate.py <project-dir>Load the world-validate skill for options and for what each finding means. Fix every error before moving on. Early stages will show warnings about layers not yet written (no events, no factions); note them and do not chase them yet. If python3 is unavailable, use the by-hand checks in worldbuilding and say the validation was manual.
Stage 9: final run and world bible
- Run the checker and fix all errors; work through the warnings, fixing or explaining each.
- Run
graph.py unrootedandstats(seeworld-validate) and fix events or entities with no explanation. - Write
world/bible.mdand show the user a short version in chat. Structure inreferences/stages.md: a one-paragraph premise, the flags in plain words, the world in ten lines, the causal spine (the 5 to 10 key chains from physical fact to present-day tension, each written as "A, so B, so C"), the main factions and characters, open hooks for stories, and the validation result with anything unresolved. - Tell the user what is in the folder and how to extend it (any later change goes through the
worldbuildingskill and its routing table).
Failure handling
- If the user changes a flag after generation has started, stop, run an impact sweep of what exists, list what breaks, and get a decision before editing. Turning magic off after systems exist, or on after a mundane history is written, is a major retrofit.
- After 3 failed attempts to clear the same validator error, stop and explain it to the user.
- Do not regenerate over files the user has edited by hand; extend them.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

