world-validate
Skill7 starsChanged 4 days agoApache-2.0View on GitHub
Check a worldbuilding project for contradictions and broken links, then fix them. Use after adding or changing any world content, before declaring worldbuilding work finished, or when the user asks whether their world is consistent. Covers dangling references, one-way relationships, timeline and lifespan errors, world-flag violations, causal-chain problems such as effects that precede their causes, and traditions (myths, customs, taboos) that do not trace back to a real event.
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-visualiserSkill
- world-wizardSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Run the checker, read its findings, fix the real problems, rerun.
- Very specific: line 12
Run scripts/validate.py (resolved relative to this skill's directory):
- Very specific: line 20
If python3 is missing or the script cannot run, tell the user, then do the checks by hand by reading the files, using the list below, and …
- Very specific: line 37
Add --json to any command for machine-readable output.
- Distinctive: line 82
Never edit the checker or its tests to make a world pass.
≈ “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 validation
Run the checker, read its findings, fix the real problems, rerun.
Run
Run scripts/validate.py (resolved relative to this skill's directory):
python3 <this-skill-dir>/scripts/validate.py <project-dir>Options: --json for machine-readable output, --severity error to hide warnings. Exit code 1 means at least one error. The script needs only Python 3.9+; PyYAML is bundled.
If python3 is missing or the script cannot run, tell the user, then do the checks by hand by reading the files, using the list below, and say the check was manual.
Tracing causes and consequences
graph.py (scripts/graph.py) builds the world as a graph (entities as nodes, typed links as edges):
python3 <this-skill-dir>/scripts/graph.py <project-dir> <command> [args]why <slug>: the full upstream causal ancestry of an event, down to its root causes. Use it to check an event really is explained. For a tradition it lists the origin events first (marked[memory link: origin of tradition], since a tradition is remembered from an event, not caused by it) and then each event's causal ancestry.impact <slug> [--depth N]: everything downstream of an entity or event, causal effects first, then places, members and routes that depend on it. For an event it also listsTraces in the present: the traditions and other entities it left behind, with their status. Run it before changing an established fact, and update every entity it lists.path <a> <b>,neighbors <slug>: how two things connect.unrooted: events with no causal ancestry and noroot_causes, traditions with no origin event, and entities with no links.stats: counts, connected components and causal depth.export --out graph.json: the whole graph as JSON for visualisation. Edges of kindleaves-tracerun from an event to each tradition or entity in itstraces(and to each tradition naming it inorigin_events), one edge per pair.
Add --json to any command for machine-readable output.
What it checks
Errors:
- unparseable or unclosed frontmatter; a file that cannot be read
- missing targets for character relationships, chapter POV and event participants, and causal links (
caused_by,leads_to) that point at a non-event - a race whose species is missing or not a species; intelligibility scores outside 0 to 1
- circular location hierarchies; river
hydrology.flows_tocycles - characters acting before birth or after death, birth after death
- a parent under 16 years older than the child; a faction leader who is not a character, or is dead
- broken family, species/race and lineage links (one side lists the other, the other does not list back)
- a character's race belonging to a different species; birth events with parents of different species when cross-species breeding is off or undefined
- content that contradicts a world flag: technology transport (train, car, spaceship...), magical transport (teleportation, ley-line, portal, magic carpet...) when
world_flags.magic.presentis false, magic systems or references to them when magic is absent - causes dated later than their effects, or in a cycle; an end date before a start date
- a tradition whose
origin_eventsnames a missing event or a non-event; a tradition whosefirst_attestedis earlier than its earliest origin event (tradition-before-origin)
Warnings:
- a missing faction, location, parent location, route destination, organisation, location or item on an event, or any other reference not listed above
- relationships, faction membership, notable characters, routes and allies that are not reciprocated
- events with no cause, effect or consequences recorded; significant events (
important,crucial,world-changing; legacymajorandcriticalare tolerated) with no cause or no effect (a non-emptytracesor a validopen_endedcounts as an effect) - a tradition with neither
origin_eventsnororigin_unknown(orphan-tradition); a purely oral tradition markedfidelity: accurate300 or more years after its earliest origin event, when the present date (present_dateorcurrent_dateinproject.yamlorcalendar.yaml) is known (implausible-fidelity) - an event
tracesentry or a traditionorigin_eventsentry that the other side does not reciprocate;contradictsthat is not mutual; missingheld_by,regions,places,language,relatedortracestargets - entities used before they existed or after they ended; a death event for a character not marked dead
- an event era prefix that
world/history/calendar.yamldoes not define (only when the calendar lists eras) flows_topointing uphill when both places haveelevation_m; unresolvedflows_to,climate_profileand flora/faunaspeciesreferences (plainname:entries are fine)- magic words in any frontmatter text field (not the Markdown body, and not traditions, which record beliefs rather than facts about the world) when magic is absent, unless listed in
world_flags.magic.exceptionsor its notes; incomplete magic systems when magic is present; technology words in chapter prose when the flag is false; a faction with no leader or whose leader is not a member
How other skills call this
Other skills say "load world-validate and use its scripts". Resolve <this-skill-dir> to the directory containing this SKILL.md file (so the commands work from any working directory in Antigravity, Claude, or Codex):
python3 <this-skill-dir>/scripts/validate.py <project-dir>
python3 <this-skill-dir>/scripts/graph.py <project-dir> why <event-slug>
python3 <this-skill-dir>/scripts/graph.py <project-dir> impact <slug>Fixing findings
- Group findings by entity and read each file named.
- Decide the cause. A missing reverse link is usually a one-line edit. A date conflict needs a judgement: change the date, change the link, or remove it. Tell the user which you chose and why when a fix changes established facts.
- For warnings about missing causes or consequences, use the
worldbuildingskill: work out what really caused or followed the event and record it in the affected files. Do not write filler to silence a warning. - Rerun until no errors remain. Report remaining warnings honestly, with the reason for any left unresolved.
Never edit the checker or its tests to make a world pass.
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.

