agentleFS
gofastercloudgofastercloud/worldbuilder/skills/world-compile/SKILL.md

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.

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
  1. Very specific:

    Run scripts/compile.py (resolved relative to this skill's directory):

    line 12
  2. Very specific:

    Use --format html for a single HTML page, or --out <file> to choose the output path.

    line 18
  3. Very specific:

    If python3 is missing, say so and do not compile by hand.

    line 24

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 md

Use --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 in stories/<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 python3 is 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 number or chapter_number and title or name. A leading heading in the chapter body is dropped to avoid a duplicate.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.