world-compile
Skill7 starsChanged 4 days agoApache-2.0View on GitHub
Compile a WorldBuilder project's chapters into one manuscript, as Markdown or a single self-contained HTML file. Use when the user asks for a manuscript, a full draft, an export of their book or stories, or a readable copy of the chapters. Chapters come from story/chapters or stories folders, in book and chapter order, with frontmatter removed.
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-reviewSkill
- world-validateSkill
- world-visualiserSkill
- world-wizardSkill
- writingSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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
- Very specific: line 12
Run scripts/compile.py (resolved relative to this skill's directory):
- Very specific: line 18
Use --format html for a single HTML page, or --out <file> to choose the output path.
- Very specific: line 24
If python3 is missing, say so and do not compile 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 compile
Join the chapters into one manuscript. Run the script, then tell the user where the file is and how many chapters and words it holds.
Run
Run scripts/compile.py (resolved relative to this skill's directory):
python3 <this-skill-dir>/scripts/compile.py <project> --format mdUse --format html for a single HTML page, or --out <file> to choose the output path. The default output is <project>/output/manuscript.md or .html. The script needs only Python 3.9+; PyYAML is bundled.
If it fails
- Exit 1 with "no chapters found": the project has no chapter files with frontmatter. Check that chapters sit in
story/chapters/or instories/<name>/, and that files starting with_are not the only ones. - A warning about bad frontmatter: that file is skipped. Fix its YAML and run again.
- If
python3is missing, say so and do not compile by hand.
Notes
- The title page comes from
project.yaml(title, subtitle, author). - Chapter headings are generated from
numberorchapter_numberandtitleorname. A leading heading in the chapter body is dropped to avoid a duplicate.
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.

