Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Analyze articles and generate contextual illustrations using Type × Style two-dimension approach across multiple AI providers.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/prompt-construction.md
1# Prompt Construction23## Prompt File Format45Each prompt file uses YAML frontmatter + content:67```yaml8---9illustration_id: 0110type: infographic11style: blueprint12references: # ⚠️ ONLY if files EXIST in references/ directory13- ref_id: 0114filename: 01-ref-diagram.png15usage: direct # direct | style | palette16---1718[Type-specific template content below...]19```2021**⚠️ CRITICAL - When to include `references` field**:2223| Situation | Action |24|-----------|--------|25| Reference file saved to `references/` | Include in frontmatter ✓ |26| Style extracted verbally (no file) | DO NOT include in frontmatter, append to prompt body instead |27| File path in frontmatter but file doesn't exist | ERROR - remove references field |2829**Reference Usage Types** (only when file exists):3031| Usage | Description | Generation Action |32|-------|-------------|-------------------|33| `direct` | Primary visual reference | Pass to `--ref` parameter |34| `style` | Style characteristics only | Describe style in prompt text |35| `palette` | Color palette extraction | Include colors in prompt |3637**If no reference file but style/palette extracted verbally**, append directly to prompt body:38```39COLORS (from reference):40- Primary: #E8756D coral41- Secondary: #7ECFC0 mint42...4344STYLE (from reference):45- Clean lines, minimal shadows46- Gradient backgrounds47...48```4950---5152## Default Composition Requirements5354**Apply to ALL prompts by default**:5556| Requirement | Description |57|-------------|-------------|58| **Clean composition** | Simple layouts, no visual clutter |59| **White space** | Generous margins, breathing room around elements |60| **No complex backgrounds** | Solid colors or subtle gradients only, avoid busy textures |61| **Centered or content-appropriate** | Main visual elements centered or positioned by content needs |62| **Matching graphics** | Use graphic elements that align with content theme |63| **Highlight core info** | White space draws attention to key information |6465**Add to ALL prompts**:66> Clean composition with generous white space. Simple or no background. Main elements centered or positioned by content needs.6768---6970## Color Specification Rules7172Colors in prompts use hex codes for **rendering guidance only** — they tell the model which colors to use, NOT what text to display.7374**⚠️ CRITICAL**: Image generation models sometimes render color names and hex values as visible text labels in the image (e.g., painting "Macaron Blue #A8D8EA" as a label). This must be prevented.7576**Add to ALL prompts that contain a COLORS section**:77> Color values (#hex) and color names are rendering guidance only — do NOT display color names, hex codes, or palette labels as visible text in the image.7879---8081## Character Rendering8283When depicting people:8485| Guideline | Description |86|-----------|-------------|87| **Style** | Simplified cartoon silhouettes or symbolic expressions |88| **Avoid** | Realistic human portrayals, detailed faces |89| **Diversity** | Varied body types when showing multiple people |90| **Emotion** | Express through posture and simple gestures |9192**Add to ALL prompts with human figures**:93> Human figures: simplified stylized silhouettes or symbolic representations, not photorealistic.9495---9697## Text in Illustrations9899| Element | Guideline |100|---------|-----------|101| **Size** | Large, prominent, immediately readable |102| **Style** | Handwritten fonts preferred for warmth |103| **Content** | Concise keywords and core concepts only |104| **Language** | Match article language |105106**Add to prompts with text**:107> Text should be large and prominent with handwritten-style fonts. Keep minimal, focus on keywords.108109---110111## Principles112113Good prompts must include:1141151. **Layout Structure First**: Describe composition, zones, flow direction1162. **Specific Data/Labels**: Use actual numbers, terms from article1173. **Visual Relationships**: How elements connect1184. **Semantic Colors**: Meaning-based color choices (red=warning, green=efficient)1195. **Style Characteristics**: Line treatment, texture, mood1206. **Aspect Ratio**: End with ratio and complexity level121122## Type-Specific Templates123124### Infographic125126```127[Title] - Data Visualization128129Layout: [grid/radial/hierarchical]130131ZONES:132- Zone 1: [data point with specific values]133- Zone 2: [comparison with metrics]134- Zone 3: [summary/conclusion]135136LABELS: [specific numbers, percentages, terms from article]137COLORS: [semantic color mapping]138STYLE: [style characteristics]139ASPECT: 16:9140```141142**Infographic + sketch-notes + macaron palette** (default / `hand-drawn-edu` preset):143```144Single-page hand-drawn educational infographic in a clean presentation style.145Warm cream paper background, black hand-drawn lines with slight wobble, soft146pastel color blocks. Feels simple, friendly, and easy to understand at a glance.147Diagram-style visuals ONLY — no realistic or photographic images.148149PALETTE: macaron — soft pastel blocks on warm cream150COLORS: Warm Cream background (#F5F0E8); Black (#1A1A1A) for ALL lines, text,151arrows, and doodles; section fills in Light Blue (#A8D8EA), Mint Green152(#B5E5CF), Lavender (#D5C6E0), Peach (#FFD5C2); Coral Red (#E8655A)153sparingly for one or two emphasis points only.154155LAYOUT (top → bottom):156- TOP: Bold hand-lettered title, oversized, slightly wobbly, with an optional157decorative underline or small doodle.158- MIDDLE: 2–6 rounded-rectangle info boxes arranged in a clean grid, row, or159radial pattern. Each box = one section, one pastel fill color, one160simple icon or sketchy cartoon element, one short keyword/phrase.161Hand-drawn arrows connect related zones.162- BOTTOM: One short hand-lettered takeaway sentence summarizing the main idea.163164ELEMENTS: Rounded info boxes with clear sectioning, wavy/straight hand-drawn165arrows with small inline labels, simple icons and sketchy cartoon166elements (stick figures, tools, objects), small doodle decorations167(stars, sparkles, underlines, dots, asterisks) used sparingly.168169STYLE: Minimal, well-organized, airy. Color fills don't completely fill170outlines (slight "hand-painted" overshoot). ALL text hand-lettered —171no computer fonts. Short labels and keywords only, never long172paragraphs. Generous white space between sections.173```174175**Infographic + vector-illustration**:176```177Flat vector illustration infographic. Clean black outlines on all elements.178COLORS: Cream background (#F5F0E6), Coral Red (#E07A5F), Mint Green (#81B29A), Mustard Yellow (#F2CC8F)179ELEMENTS: Geometric simplified icons, no gradients, playful decorative elements (dots, stars)180```181182**Infographic + vector-illustration + warm palette**:183```184Flat vector illustration infographic. Clean black outlines on all elements.185PALETTE OVERRIDE (warm): Warm-only color palette, no cool colors.186COLORS: Soft Peach background (#FFECD2), Warm Orange (#ED8936),187Terracotta (#C05621), Golden Yellow (#F6AD55), Deep Brown (#744210)188ELEMENTS: Geometric simplified icons, no gradients, rounded corners,189modular card layout, consistent icon style190```191192### Scene193194```195[Title] - Atmospheric Scene196197FOCAL POINT: [main subject]198ATMOSPHERE: [lighting, mood, environment]199MOOD: [emotion to convey]200COLOR TEMPERATURE: [warm/cool/neutral]201STYLE: [style characteristics]202ASPECT: 16:9203```204205### Flowchart206207```208[Title] - Process Flow209210Layout: [left-right/top-down/circular]211212STEPS:2131. [Step name] - [brief description]2142. [Step name] - [brief description]215...216217CONNECTIONS: [arrow types, decision points]218STYLE: [style characteristics]219ASPECT: 16:9220```221222**Flowchart + vector-illustration**:223```224Flat vector flowchart with bold arrows and geometric step containers.225COLORS: Cream background (#F5F0E6), steps in Coral/Mint/Mustard, black outlines226ELEMENTS: Rounded rectangles, thick arrows, simple icons per step227```228229**Flowchart + sketch-notes + macaron palette**:230```231Hand-drawn educational flowchart on warm cream paper. Slight wobble on all lines.232PALETTE: macaron — soft pastel color blocks233COLORS: Warm Cream background (#F5F0E8), zone fills in Macaron Blue (#A8D8EA),234Lavender (#D5C6E0), Mint (#B5E5CF), Coral Red (#E8655A) for emphasis235ELEMENTS: Rounded cards with dashed/solid borders, wavy hand-drawn arrows with labels,236simple stick-figure characters, doodle decorations (stars, underlines)237STYLE: Color fills don't completely fill outlines, hand-drawn lettering, generous white space238```239240**Flowchart + ink-notes + mono-ink palette**:241```242Professional hand-drawn visual-note flowchart on pure white. Black ink line work243with slight wobble, à la Mike Rohde sketchnoting.244PALETTE: mono-ink — black ink dominant, sparse semantic accents245COLORS: Pure White background (#FFFFFF), Near Black (#1A1A1A) for all lines,246text, and figures; Coral Red (#E8655A) only for risk/emphasis,247Muted Teal (#5FA8A8) only for positive/solution states248ELEMENTS: Left-to-right stage boxes with rounded-rect frames, wavy hand-drawn249arrows between stages, simple stick-figure characters with role250labels above (e.g., "ML Engineer", "Team Lead"), dashed-border box251for future/empty stage, small doodle icons per stage252STYLE: Hand-lettered titles (bold, oversized), handwritten stage labels and253annotations, generous white space, bottom tagline summarizing takeaway254```255256### Comparison257258```259[Title] - Comparison View260261LEFT SIDE - [Option A]:262- [Point 1]263- [Point 2]264265RIGHT SIDE - [Option B]:266- [Point 1]267- [Point 2]268269DIVIDER: [visual separator]270STYLE: [style characteristics]271ASPECT: 16:9272```273274**Comparison + vector-illustration**:275```276Flat vector comparison with split layout. Clear visual separation.277COLORS: Left side Coral (#E07A5F), Right side Mint (#81B29A), cream background278ELEMENTS: Bold icons, black outlines, centered divider line279```280281**Comparison + vector-illustration + warm palette**:282```283Flat vector comparison with split layout. Clear visual separation.284PALETTE OVERRIDE (warm): Warm-only color palette, no cool colors.285COLORS: Left side Warm Orange (#ED8936), Right side Terracotta (#C05621),286Soft Peach background (#FFECD2), Deep Brown (#744210) accents287ELEMENTS: Bold icons, black outlines, centered divider line288```289290**Comparison + ink-notes + mono-ink palette** (Before/After, Traditional vs New):291```292Professional hand-drawn sketchnote comparison on pure white. Black ink line work293with slight wobble, à la Mike Rohde sketchnoting.294PALETTE: mono-ink — black ink dominant, sparse semantic accents295COLORS: Pure White background (#FFFFFF), Near Black (#1A1A1A) for all outlines,296text, figures, arrows; Coral Red (#E8655A) reserved for risks/gaps297(left/Before side); Muted Teal (#5FA8A8) reserved for positives298(right/After side). Color accents under 10% of canvas.299LAYOUT: Left | Right split with vertical hand-drawn divider. Hand-lettered300"Before" label (top-left) and "After" label (top-right).301LEFT SIDE: Stick figure(s) with role label above, speech bubble showing the302pain point, bulleted pain-point list in handwritten text.303RIGHT SIDE: Stick figure(s) showing the new state, bulleted improvement list,304small positive-action icons.305BRIDGE: Curved hand-drawn "mindset shift" arrow bridging left → right with306small inline label describing the shift.307BOTTOM: Single-line hand-lettered tagline summarizing the takeaway.308STYLE: Hand-lettered headings (bold, oversized), handwritten body annotations,309generous white space, no computer fonts, no gradients, no shadows.310```311312### Framework313314```315[Title] - Conceptual Framework316317STRUCTURE: [hierarchical/network/matrix]318319NODES:320- [Concept 1] - [role]321- [Concept 2] - [role]322323RELATIONSHIPS: [how nodes connect]324STYLE: [style characteristics]325ASPECT: 16:9326```327328**Framework + vector-illustration**:329```330Flat vector framework diagram with geometric nodes and bold connectors.331COLORS: Cream background (#F5F0E6), nodes in Coral/Mint/Mustard/Blue, black outlines332ELEMENTS: Rounded rectangles or circles for nodes, thick connecting lines333```334335**Framework + vector-illustration + warm palette**:336```337Flat vector framework diagram with geometric nodes and bold connectors.338PALETTE OVERRIDE (warm): Warm-only color palette, no cool colors.339COLORS: Soft Peach background (#FFECD2), nodes in Warm Orange (#ED8936),340Terracotta (#C05621), Golden Yellow (#F6AD55), black outlines341ELEMENTS: Rounded rectangles or circles for nodes, thick connecting lines342```343344**Framework + ink-notes + mono-ink palette** (command center, OS analogy):345```346Professional hand-drawn sketchnote framework on pure white. Black ink line work347with slight wobble, à la Mike Rohde sketchnoting.348PALETTE: mono-ink — black ink dominant, sparse semantic accents349COLORS: Pure White background (#FFFFFF), Near Black (#1A1A1A) for all lines,350text, figures; Dusty Lavender (#9B8AB5) for neutral category tags only;351Coral Red (#E8655A) for emphasis sparingly. Color accents under 10%.352STRUCTURE: Central rounded-rectangle frame as "the system" with hand-lettered353title inside. Inner layer of labeled sub-components (node labels354above each). Outer layer of feeder arrows from stick-figure355operators/users with role labels.356ELEMENTS: Stick figures at the edges with role tags ("Team Lead", "Operator"),357wavy hand-drawn connector arrows with small inline labels, small358doodle icons per component, dashed-border placeholder(s) for359future/empty capabilities.360BOTTOM: Single-line hand-lettered tagline.361STYLE: Hand-lettered headings, handwritten annotations, generous white space,362no computer fonts, no gradients.363```364365### Timeline366367```368[Title] - Chronological View369370DIRECTION: [horizontal/vertical]371372EVENTS:373- [Date/Period 1]: [milestone]374- [Date/Period 2]: [milestone]375376MARKERS: [visual indicators]377STYLE: [style characteristics]378ASPECT: 16:9379```380381### Screen-Print Style Override382383When `style: screen-print`, replace standard style instructions with:384385```386Screen print / silkscreen poster art. Flat color blocks, NO gradients.387COLORS: 2-5 colors maximum. [Choose from style palette or duotone pair]388TEXTURE: Halftone dot patterns, slight color layer misregistration, paper grain389COMPOSITION: Bold silhouettes, geometric framing, negative space as storytelling element390FIGURES: Silhouettes only, no detailed faces, stencil-cut edges391TYPOGRAPHY: Bold condensed sans-serif integrated into composition (not overlaid)392```393394**Scene + screen-print**:395```396Conceptual poster scene. Single symbolic focal point, NOT literal illustration.397COLORS: Duotone pair (e.g., Burnt Orange #E8751A + Deep Teal #0A6E6E) on Off-Black #121212398COMPOSITION: Centered silhouette or geometric frame, 60%+ negative space399TEXTURE: Halftone dots, paper grain, slight print misregistration400```401402**Comparison + screen-print**:403```404Split poster composition. Each side dominated by one color from duotone pair.405LEFT: [Color A] side with silhouette/icon for [Option A]406RIGHT: [Color B] side with silhouette/icon for [Option B]407DIVIDER: Geometric shape or negative space boundary408TEXTURE: Halftone transitions between sides409```410411---412413## Palette Override414415When a palette is specified (via `--palette` or preset), it overrides the style's default colors:4164171. Read style file → get rendering rules (Visual Elements, Style Rules, line treatment)4182. Read palette file (`palettes/<palette>.md`) → get Colors + Background4193. Palette Colors **replace** style's default Color Palette in prompt4204. Palette Background **replaces** style's Background color (keep style's texture description)4215. Build prompt: style rendering instructions + palette colors422423**Prompt frontmatter** includes palette when specified:424```yaml425---426illustration_id: 01427type: infographic428style: vector-illustration429palette: macaron430---431```432433**Example**: `vector-illustration` + `macaron` palette:434```435Flat vector illustration infographic. Clean black outlines on all elements.436PALETTE: macaron — soft pastel color blocks437COLORS: Warm Cream background (#F5F0E8), Macaron Blue (#A8D8EA), Mint (#B5E5CF),438Lavender (#D5C6E0), Peach (#FFD5C2), Coral Red (#E8655A) for emphasis439ELEMENTS: Geometric simplified icons, no gradients, playful decorative elements440```441442When no palette is specified, use the style's built-in Color Palette as before.443444---445446## What to Avoid447448- Vague descriptions ("a nice image")449- Literal metaphor illustrations450- Missing concrete labels/annotations451- Generic decorative elements452453## Watermark Integration454455If watermark enabled in preferences, append:456457```458Include a subtle watermark "[content]" positioned at [position].459```460