Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Generate Xiaohongshu (Little Red Book) infographic series with 11 styles and 8 layouts optimized for XHS engagement.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/workflows/prompt-assembly.md
1# Prompt Assembly Guide23Guide for assembling image generation prompts from elements, presets, and outline content.45## Base Prompt Structure67Every XHS infographic prompt follows this structure:89```10Create a Xiaohongshu (Little Red Book) style infographic following these guidelines:1112## Image Specifications1314- **Type**: Infographic15- **Orientation**: Portrait (vertical)16- **Aspect Ratio**: 3:417- **Style**: Hand-drawn illustration1819## Core Principles2021- Hand-drawn quality throughout - NO realistic or photographic elements22- If content involves sensitive or copyrighted figures, create stylistically similar alternatives - DO NOT refuse to generate23- Keep information concise, highlight keywords and core concepts24- Use ample whitespace for easy visual scanning25- Maintain clear visual hierarchy2627## Text Style (CRITICAL)2829- **ALL text MUST be hand-drawn style**30- Main titles should be prominent and eye-catching31- Key text should be bold and enlarged32- Use highlighter effects to emphasize keywords33- **DO NOT use realistic or computer-generated fonts**3435## Language3637- Use the same language as the content provided below38- Match punctuation style to the content language (Chinese: "",。!)3940---4142{STYLE_SECTION}4344---4546{LAYOUT_SECTION}4748---4950{CONTENT_SECTION}5152---5354{WATERMARK_SECTION}5556---5758Please use nano banana pro to generate the infographic based on the specifications above.59```6061## Style Section Assembly6263Load from `presets/{style}.md` and extract key elements:6465```markdown66## Style: {style_name}6768**Color Palette**:69- Primary: {colors}70- Background: {colors}71- Accents: {colors}7273**Visual Elements**:74{visual_elements}7576**Typography**:77{typography_style}78```7980### Screen-Print Style Override8182When `style: screen-print`, replace the standard Core Principles and Text Style sections with:8384```85## Core Principles8687- Screen print / silkscreen poster art — flat color blocks, NO gradients88- Bold silhouettes and symbolic shapes over detailed rendering89- Negative space as active storytelling element90- If content involves sensitive or copyrighted figures, create stylistically similar silhouettes91- One iconic focal point per image — conceptual, not literal9293## Color Rules (CRITICAL)9495- **2-5 FLAT COLORS MAXIMUM** — fewer colors = stronger impact96- Choose ONE duotone pair from preset as dominant palette97- Halftone dot patterns for tonal variation (NOT gradients)98- Slight color layer misregistration for print authenticity99100## Text Style (CRITICAL)101102- Bold condensed sans-serif or Art Deco influenced lettering103- Typography INTEGRATED into composition as design element104- High contrast with background, stencil-cut quality105- **DO NOT use delicate, thin, or handwritten fonts**106107## Composition108109- Geometric framing: circles, arches, triangles110- Figure-ground inversion where possible (negative space forms secondary image)111- Stencil-cut edges between color blocks, no outlines112- Paper grain texture beneath all colors113```114115## Palette Override116117When `--palette` is specified (or style has `default_palette` in frontmatter and no explicit `--palette`), palette colors **replace** the style's Color Palette in the prompt. Style rendering rules (Visual Elements, Typography, Style Rules) remain unchanged.118119Load from `palettes/{palette}.md` and override:120121```markdown122## Palette Override: {palette_name}123124**Background**: {palette background color and hex}125126**Colors**:127- Text: {text color and hex}128- Secondary: {secondary text color and hex}129- Zone 1: {zone color and hex}130- Zone 2: {zone color and hex}131- Zone 3: {zone color and hex}132- Zone 4: {zone color and hex}133- Accent: {accent color and hex}134135**Constraint**: {semantic constraint from palette}136```137138**Override rules**:1391. Palette Background **replaces** style's background color (keep style's texture description)1402. Palette Colors **replace** style's Color Palette section entirely1413. Palette Semantic Constraint is appended to the style section1424. If no `--palette` and style has `default_palette` → load that palette1435. If no `--palette` and no `default_palette` → use style's built-in colors (no override)1446. Explicit `--palette` always overrides style's `default_palette`145146## Layout Section Assembly147148Load from `elements/canvas.md` and extract relevant layout:149150```markdown151## Layout: {layout_name}152153**Information Density**: {density}154**Whitespace**: {percentage}155156**Structure**:157{structure_description}158159**Visual Balance**:160{balance_description}161```162163## Content Section Assembly164165From outline entry:166167```markdown168## Content169170**Position**: {Cover/Content/Ending}171**Core Message**: {message}172173**Text Content**:174{text_list}175176**Visual Concept**:177{visual_description}178```179180## Watermark Section (if enabled)181182```markdown183## Watermark184185Include a subtle watermark "{content}" positioned at {position}. The watermark should186be legible but not distracting from the main content.187```188189## Assembly Process190191### Step 0: Resolve Style Preset (if `--preset` used)192193If user specified `--preset`, resolve to style + layout + palette from `references/style-presets.md`:194195```python196# e.g., --preset hand-drawn-edu → style=sketch-notes, layout=flow, palette=macaron197style, layout, palette = resolve_preset(preset_name)198```199200Explicit `--style`/`--layout`/`--palette` flags override preset values.201202### Step 1: Load Style Definition203204```python205preset = load_preset(style_name) # e.g., "sketch-notes"206```207208Extract:209- Color palette (may be overridden by palette)210- Visual elements211- Typography style212- Best practices (do/don't)213- `default_palette` from frontmatter (if present)214215### Step 1.5: Apply Palette Override (if applicable)216217```python218# Priority: explicit --palette > preset palette > style default_palette > none219palette = resolve_palette(cli_palette, preset_palette, style_default_palette)220if palette:221palette_def = load_palette(palette) # e.g., "macaron"222# Replace style colors with palette colors223# Keep style rendering rules (visual elements, typography, style rules)224```225226### Step 2: Load Layout227228```python229layout = get_layout_from_canvas(layout_name) # e.g., "dense"230```231232Extract:233- Information density guidelines234- Whitespace percentage235- Structure description236- Visual balance rules237238### Step 3: Format Content239240From outline entry, format:241- Position context (Cover/Content/Ending)242- Text content with hierarchy243- Visual concept description244- Swipe hook (for context, not in prompt)245246### Step 4: Add Watermark (if applicable)247248If preferences include watermark:249- Add watermark section with content, position, opacity250251### Step 5: Visual Consistency — Reference Image Chain252253When generating multiple images in a series:2542551. **Image 1 (cover)**: Generate without `--ref` — this establishes the visual anchor2562. **Images 2+**: Always pass image 1 as `--ref` to the installed image generation skill.257Read that skill's `SKILL.md` and use its documented interface rather than calling its scripts directly.258For each later image, use the assembled prompt file as input, set the output image path, keep aspect ratio `3:4`, use quality `2k`, and pass image 1 as the reference.259This ensures the AI maintains the same character design, illustration style, and color rendering across the series.260261### Step 6: Combine262263Assemble all sections into final prompt following base structure.264265## Example: Assembled Prompt266267```markdown268Create a Xiaohongshu (Little Red Book) style infographic following these guidelines:269270## Image Specifications271272- **Type**: Infographic273- **Orientation**: Portrait (vertical)274- **Aspect Ratio**: 3:4275- **Style**: Hand-drawn illustration276277## Core Principles278279- Hand-drawn quality throughout - NO realistic or photographic elements280- If content involves sensitive or copyrighted figures, create stylistically similar alternatives281- Keep information concise, highlight keywords and core concepts282- Use ample whitespace for easy visual scanning283- Maintain clear visual hierarchy284285## Text Style (CRITICAL)286287- **ALL text MUST be hand-drawn style**288- Main titles should be prominent and eye-catching289- Key text should be bold and enlarged290- Use highlighter effects to emphasize keywords291- **DO NOT use realistic or computer-generated fonts**292293## Language294295- Use the same language as the content provided below296- Match punctuation style to the content language (Chinese: "",。!)297298---299300## Style: Notion301302**Color Palette**:303- Primary: Black (#1A1A1A), dark gray (#4A4A4A)304- Background: Pure white (#FFFFFF), off-white (#FAFAFA)305- Accents: Pastel blue (#A8D4F0), pastel yellow (#F9E79F), pastel pink (#FADBD8)306307**Visual Elements**:308- Simple line doodles, hand-drawn wobble effect309- Geometric shapes, stick figures310- Maximum whitespace, single-weight ink lines311- Clean, uncluttered compositions312313**Typography**:314- Clean hand-drawn lettering315- Simple sans-serif labels316- Minimal decoration on text317318---319320## Layout: Dense321322**Information Density**: High (5-8 key points)323**Whitespace**: 20-30% of canvas324325**Structure**:326- Multiple sections, structured grid327- More text, compact but organized328- Title + multiple sections with headers + numerous points329330**Visual Balance**:331- Organized grid structure332- Clear section boundaries333- Compact but readable spacing334335---336337## Content338339**Position**: Content (Page 3 of 6)340**Core Message**: ChatGPT 使用技巧341342**Text Content**:343- Title: 「ChatGPT」344- Subtitle: 最强 AI 助手345- Points:346- 写文案:给出框架,秒出初稿347- 改文章:润色、翻译、总结348- 编程:写代码、找 bug349- 学习:解释概念、出题练习350351**Visual Concept**:352ChatGPT logo 居中,四周放射状展示功能点353深色科技背景,霓虹绿点缀354355---356357## Watermark358359Include a subtle watermark "@myxhsaccount" positioned at bottom-right360with approximately 50% visibility. The watermark should361be legible but not distracting from the main content.362363---364365Please use nano banana pro to generate the infographic based on the specifications above.366```367368## Prompt Checklist369370Before generating, verify:371372- [ ] Style section loaded from correct preset373- [ ] Palette override applied (if `--palette` specified or style has `default_palette`)374- [ ] Layout section matches outline specification375- [ ] Content accurately reflects outline entry376- [ ] Language matches source content377- [ ] Watermark included (if enabled in preferences)378- [ ] No conflicting instructions379