world-art
Skill7 starsChanged 4 days agoApache-2.0View on GitHub
Generate consistent worldbuilding artwork (character portraits, location landscapes, faction emblems, item illustrations, species studies and event scenes) via the fal.ai OAuth MCP server, using entity image prompts, project visual style presets and world flags. Use when the user asks to illustrate, draw, paint, render or generate images or art for entities in a worldbuilding project.
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
- worldbuildingSkill
- world-compileSkill
- world-reviewSkill
- world-validateSkill
- world-visualiserSkill
- world-wizardSkill
- writingSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 4 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Every image must obey the world's canonical facts (descriptions.machine) and its rules (world_flags).
- Very specific: line 15
Read world_flags, especially world_flags.magic.present and world_flags.technology.* (plus reality.time_period and narrative.anachronisms).
- Very specific: line 16
Read style.visual (preset, palette, lighting, negative prompt, seed notes).
- Very specific: line 19
Magic gate: If world_flags.magic.present is false (or prevalence: none), forbid glowing runes, arcane auras, floating objects, spell …
- Very specific: line 21
Consistency: Follow descriptions.machine verbatim for physical traits, scars, clothing, heraldry colours, materials and landmarks.
- Very specific: line 25
If the entity already has a non-empty descriptions.image_prompt in its YAML frontmatter, start from it and verify it still matches …
- Very specific: line 27
If descriptions.image_prompt is empty or missing:
- Very specific: line 41
Call the fal MCP generation tool with the prompt, aspect ratio/dimensions, negative prompt (if supported by the model) and seed (if reusing …
- Very specific: line 48
Use .webp or .jpg if the returned image is in that format (keep the actual format extension matching the file bytes).
- Distinctive: line 49
Ensure parent directories exist before writing.
- Very specific: line 64
Use summary to report accumulated spend and token usage for a world:
- Distinctive: line 72
When the user asks to illustrate multiple entities (for example, all main characters, every city, or the whole project):
- Very specific: line 75
Check style.visual and world_flags once for the project.
- Distinctive: line 86
Reference images: When a fal.ai model supports image-to-image or subject reference, pass an existing saved character portrait when …
- Very specific: line 90
After saving new or updated images or audio, load the world-visualiser skill and rebuild the interactive viewer so the new artwork, looping …
- Very specific: line 105
Always log audio and music runs to <project>/output/art-usage.yaml via scripts/log_usage.py record (using --unit generations or --unit …
- Distinctive: line 112
Do not fabricate images or silently skip the user's request.
≈ “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 art
Generates visual artwork for world entities through the connected fal MCP server (https://mcp.fal.ai/mcp-relay, Streamable HTTP with browser OAuth sign-in — no API key required) and saves the resulting images where world-visualiser picks them up automatically.
Every image must obey the world's canonical facts (descriptions.machine) and its rules (world_flags). Never let an image prompt invent magic, technology or features that contradict the project files.
Before generating
- Locate the project (the folder containing
project.yaml) and readproject.yaml:- Read
world_flags, especiallyworld_flags.magic.presentandworld_flags.technology.*(plusreality.time_periodandnarrative.anachronisms). - Read
style.visual(preset, palette, lighting, negative prompt, seed notes). Ifstyle.visualis absent, pick an appropriate preset with the user fromreferences/style-presets.mdand record it inproject.yaml.
- Read
- Read the target entity file(s) under
world/<type-dir>/<slug>.md, plus any directly referenced files needed for visual accuracy (for example, a character'sspecies,factionheraldry,locationclimate/attire, or owneditem). - Verify against
world_flags:- Magic gate: If
world_flags.magic.presentisfalse(orprevalence: none), forbid glowing runes, arcane auras, floating objects, spell effects or supernatural creatures. Addmagic, glowing runes, arcane aura, fantasy spellsto the negative prompt. - Technology gate: Exclude any technology set to
false(firearms ifgunpowder: false, electric lamps ifelectricity: false, printed books ifprinting: false, modern fabrics/glass if medieval, etc.). - Consistency: Follow
descriptions.machineverbatim for physical traits, scars, clothing, heraldry colours, materials and landmarks.
- Magic gate: If
Building the prompt
If the entity already has a non-empty descriptions.image_prompt in its YAML frontmatter, start from it and verify it still matches descriptions.machine and world_flags.
If descriptions.image_prompt is empty or missing:
- Distil
descriptions.machine(andheraldryfor factions/lineages/locations) into a concrete visual subject description — composition, framing, subject details, materials, condition, setting and mood. Avoid abstract prose or non-visual facts (like voice or backstory). - Append the project's
style.visualpreset prompt suffix (seereferences/style-presets.md) and any project-levelpaletteorlightingmodifiers. - Combine the preset's
negative_promptwith anyworld_flagsexclusions. - Save the composed subject prompt back into the entity's
descriptions.image_promptfield (keep it clean of provider-specific parameters so it stays portable).
Generating via the fal MCP server
- Inspect the tools exposed by the connected
falMCP server to find the available image-generation model/tool (prefer high-quality text-to-image models such as Flux for portraits, landscapes and scenes, or vector/graphic-friendly models for clean heraldry and emblems). - Choose an aspect ratio suited to the entity type (see
references/style-presets.md):characters,species: portrait (3:4or2:3)locations,events: landscape (16:9or3:2)factions(emblems/heraldry),items: square (1:1)
- Call the
falMCP generation tool with the prompt, aspect ratio/dimensions, negative prompt (if supported by the model) and seed (if reusing one). Download the generated image URL returned by
faland save it to:<project>/output/images/<type-dir>/<slug>.pngUse
.webpor.jpgif the returned image is in that format (keep the actual format extension matching the file bytes).<type-dir>matches the entity folder name underworld/:characters,locations,factions,items,species,races,events,magic-systems,lineages,traditions,languages,arcs.- Ensure parent directories exist before writing.
Log usage, tokens and cost to
<project>/output/art-usage.yamlusing scripts/log_usage.py (resolved relative to this skill's directory):python3 <this-skill-dir>/scripts/log_usage.py record <project-dir> \ --entity <type-dir>/<slug> \ --endpoint <endpoint-id> \ --request-id <request-id> \ --seed <seed> \ --width <w> --height <h> \ --unit-price <price> --unit <unit> \ --tokens <tokens-if-reported> \ --output-file output/images/<type-dir>/<slug>.<ext>Use
summaryto report accumulated spend and token usage for a world:python3 <this-skill-dir>/scripts/log_usage.py summary <project-dir> [--json]
Batch generation
When the user asks to illustrate multiple entities (for example, all main characters, every city, or the whole project):
- List the candidate entities and confirm the batch scope with the user before generating (to avoid unwanted usage/credits).
- Check
style.visualandworld_flagsonce for the project. - Prepare or verify
descriptions.image_promptfor every target entity first so all prompts share the same art direction. - Generate images one group at a time (e.g. portraits, then locations, then emblems), saving each to
<project>/output/images/<type-dir>/<slug>.<ext>. - Report a concise summary table of generated files, skipped entities and any failures.
Visual consistency tips
- Lock one preset per project: Set
style.visual.presetinproject.yamland apply its suffix to every generation so portraits, landscapes and scenes feel part of one world. - Reuse palette and lighting: Define
style.visual.paletteandstyle.visual.lightinginproject.yaml(e.g. "muted slate blue, ochre, weathered bronze; overcast northern light"). - Seed discipline: Record useful seeds in notes or
style.visualwhen generating variations of the same character, location or faction banner. - Heraldry fidelity: For factions and lineages, pull exact colours, sigil shapes and blazons from the entity's
heraldry:block so banners in scenes match the standalone emblem. - Reference images: When a fal.ai model supports image-to-image or subject reference, pass an existing saved character portrait when rendering that character in an event scene.
Updating the viewer
After saving new or updated images or audio, load the world-visualiser skill and rebuild the interactive viewer so the new artwork, looping soundtrack and character voice buttons appear automatically:
python3 <world-visualiser-dir>/scripts/build_viewer.py <project-dir> --embed-mediaTell the user the saved asset paths and the rebuilt output/world-viewer.html path.
Soundtracks & Character Voices (Audio via fal MCP)
The same fal OAuth MCP server also supports low-cost music and text-to-speech:
- World soundtrack (looping in the visualiser header with a mute toggle): Save to
<project>/output/audio/theme.mp3(or.wav/.ogg). Prefer cost-effective instrumental models such asgoogle/lyria-3.5(~$0.10/generation; never passnegative_prompt— even though its schema lists the field, Lyria 3.5 rejects it at runtime with HTTP 422; put"strictly instrumental, no vocals"insidepromptinstead). - Coordinate-locked painted world maps (optional): Save to
<project>/output/images/world-map.png(or.jpg). When usingfal-ai/flux/dev/image-to-imageover a deterministic elevation guide PNG, usestrength: 0.88–0.92and avoid large flat bright-white regions in the guide (which FLUX may interpret as cloud cover). - Character voice samples ("Hear them speak" buttons in the Entity list and Detail panel): Save to
<project>/output/audio/characters/<slug>.mp3(or.wav). Prefer low-cost expressive TTS such asgoogle/gemini-3.8-flash-tts(~$0.045 per 1,000 characters — keep lines to 1–2 crisp sentences, ~$0.005 each). - Always log audio and music runs to
<project>/output/art-usage.yamlviascripts/log_usage.py record(using--unit generationsor--unit charactersand--cost-usd) so every world tracks its total media spend.
Graceful fallback when not signed in to fal
The fal MCP server uses OAuth browser sign-in (https://mcp.fal.ai/mcp-relay) and requires no API key. If the fal MCP tools are unavailable or return an authentication error:
- Explain clearly that the
falMCP server needs a quick browser OAuth sign-in (no API key needed) and point the user to reconnect or sign in to thefalMCP server in their client's plugin/MCP settings. - Do not fabricate images or silently skip the user's request.
- Offer to draft and save polished,
world_flags-checkeddescriptions.image_promptentries into the requested entity files right away so they are ready to render as soon as the user signs in (or to paste into any external image generator).
References
references/style-presets.md: visual style presets, prompt suffixes, negative prompts, aspect ratios and model selection guidance.
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.

