RPG Illustrator
Use this skill as the central visual engine for the campaign. It handles prompt engineering, style consistency, and image generation, prioritizing defined image_prompt frontmatter from entity files.
API / Modes
This skill accepts the following parameters:
- •Mode: One of
["Session Recap", "Single Image", "Prompt Generation"]. - •Input Data:
- •For
Session Recap: Path to the Edited markdown file to process. - •For
Single Image: A description string of what to draw. - •For
Prompt Generation: A description string of the scene.
- •For
Core Logic (APPLIES TO ALL MODES)
1. Context Loading & No Proper Names
- •CRITICAL: The AI image generator does NOT know who "Versir", "Kyrah", or "Estor" is.
- •Action: You MUST replace every proper name with its FULL physical description.
- •Source Priority:
- •Check Frontmatter: If the entity has an
image_promptfield in its file, COPY IT VERBATIM. Do NOT summarize, shorten, or paraphrase. Theimage_promptfield contains the exact visual description needed for consistency. - •Fallback: If no
image_prompt, read the entity's file (bio/description) and synthesize a detailed physical description including: race, build, facial features, hair color/style, eye color, clothing, armor, weapons, accessories, and any distinguishing marks. - •Last Resort: Generate a detailed description based on context, but include at least 5 specific visual attributes.
- •Check Frontmatter: If the entity has an
Example - WRONG vs CORRECT:
- •❌ WRONG: "a human wizard in rust-brown robes"
- •✅ CORRECT: "a young adult male human wizard with a lean, rugged build, intense blue-grey eyes, a strong jawline, a weathered complexion, and a prominent scar across his right cheek, short messy dark brown hair complemented by a full dark brown beard, wearing layered medieval clothing, a rust-brown hooded tunic over a coarse off-white linen shirt, with a thick brown leather shoulder strap and buckle, two bronze circular geometric star emblems visible on his chest"
Quick Reference - Main PCs:
Before generating any prompt with PCs, READ their entity files and copy the image_prompt field exactly.
2. Visual Styles
- •Requirement: Use a defined art style for every image.
- •Allowed Styles: High quality digital fantasy art, Dark Fantasy Oil Painting (Frazetta style), Watercolor and Ink, Vibrant Comic Book Style, Stained Glass illustration, Woodcut print, Tarot Card aesthetic, Abstract Ethereal Concept Art, 80s Dark Fantasy Anime, Nouveau Art Style.
- •Variation:
- •Session Recap: Vary the style between images to keep it visually interesting.
- •Video/Single: Stick to the style requested by the caller, or default to High quality digital fantasy art.
3. Prompt Structure
Every prompt must follow this structure:
[Detailed Subject Description (No Names)] [Action/Pose]. [Detailed Environment/Setting]. [Lighting/Atmosphere]. [Art Style].
Workflow 1: Session Recap Mode
Input: Input Data = Absolute path to the session recap markdown file.
- •Read & Parse: Read the content of the markdown file.
- •Scan for Entities: Identify
[[wikilinks]]in the text to find relevant entity files for descriptions. - •Generate Prompts:
- •Main Header: Create 3 distinct prompts representing the overall session themes/events.
- •Section Headers: For each
### Headerin the body, create 2 distinct prompts representing that specific section.
- •Update File:
- •Insert image blocks into the markdown file immediately after the headers (Main and Sections).
- •Format:
markdown
 - •Crucial: The Alt Text (
![...]) MUST be the exact, full prompt. Do NOT shorten it. - •Path: Use
../assets/sessions/{000}/relative path.
- •Generate Images:
- •Call
generate_imagefor each prompt. - •Target File:
content/assets/sessions/{000}/{filename}.png(Ensure it matches the link). - •Error Handling: If generation fails, do NOT revert the markdown. The placeholders are valuable.
- •Call
Workflow 2: Single Image Mode
Input: Input Data = Description string.
- •Refine Prompt: Apply Core Logic (No Names ->
image_promptor bio, added Style, detailed setting). - •Generate Image: Call
generate_image. - •Result: Return the path to the generated image.
Workflow 3: Prompt Generation Mode
Input: Input Data = Description description.
- •Refine Prompt: Apply Core Logic (No Names ->
image_promptor bio, detailed setting). - •Result: Return the Refined Text Prompt only.