{"slug":"baoyu-infographic","title":"\u4fe1\u606f\u56fe\u751f\u6210","description":"\u628a\u5185\u5bb9\u63d0\u70bc\u6210\u4fe1\u606f\u56fe\uff1a21 \u79cd\u7248\u5f0f\u300122 \u79cd\u89c6\u89c9\u98ce\u683c\uff0c\u5148\u5206\u6790\u5185\u5bb9\u518d\u6392\u7248\u3002","category":"\u526a\u8f91\u4e0e\u5305\u88c5","tags":["\u4fe1\u606f\u56fe","\u4fe1\u606f\u56fe\u8bbe\u8ba1","\u6392\u7248"],"author":"\u5b9d\u7389","source_url":"https://github.com/JimLiu/baoyu-skills/blob/main/skills/baoyu-infographic/SKILL.md","license":"MIT","status":"published","verification":"source_reviewed","verification_notes":"\u6765\u6e90 JimLiu/baoyu-skills\uff08skills/baoyu-infographic/SKILL.md\uff09\uff0c\u672c\u5730\u6253\u5305\u4e0a\u4f20\uff1b\u672a\u6267\u884c\u5305\u5185\u811a\u672c\u3002","revision":"1794c49d32494261a36dba74bc56f288","created_at":"2026-10-28T07:42:44+00:00","updated_at":"2026-10-28T07:44:12+00:00","source_repo":"","source_path":"","source_commit":"","source_updated_at":"","stars":0,"proxy_score":null,"score":null,"grade":null,"dimensions":{},"evaluation":{},"installs":0,"platforms":[],"formats":[],"category_slug":"packaging","category_name":"\u526a\u8f91\u4e0e\u5305\u88c5","usage_guide":{},"read_url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic","skill_url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/SKILL.md","download_url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/download","install_url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/install","files":[{"path":"SKILL.md","bytes":19957,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/SKILL.md"},{"path":"references/analysis-framework.md","bytes":7507,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/analysis-framework.md"},{"path":"references/base-prompt.md","bytes":1082,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/base-prompt.md"},{"path":"references/codex-imagegen.md","bytes":3707,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/codex-imagegen.md"},{"path":"references/config/first-time-setup.md","bytes":4666,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/config/first-time-setup.md"},{"path":"references/config/preferences-schema.md","bytes":4611,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/config/preferences-schema.md"},{"path":"references/layouts/bento-grid.md","bytes":851,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/bento-grid.md"},{"path":"references/layouts/binary-comparison.md","bytes":1278,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/binary-comparison.md"},{"path":"references/layouts/bridge.md","bytes":907,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/bridge.md"},{"path":"references/layouts/circular-flow.md","bytes":759,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/circular-flow.md"},{"path":"references/layouts/comic-strip.md","bytes":847,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/comic-strip.md"},{"path":"references/layouts/comparison-matrix.md","bytes":893,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/comparison-matrix.md"},{"path":"references/layouts/dashboard.md","bytes":776,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/dashboard.md"},{"path":"references/layouts/dense-modules.md","bytes":3766,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/dense-modules.md"},{"path":"references/layouts/funnel.md","bytes":821,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/funnel.md"},{"path":"references/layouts/hierarchical-layers.md","bytes":1180,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/hierarchical-layers.md"},{"path":"references/layouts/hub-spoke.md","bytes":865,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/hub-spoke.md"},{"path":"references/layouts/iceberg.md","bytes":884,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/iceberg.md"},{"path":"references/layouts/isometric-map.md","bytes":833,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/isometric-map.md"},{"path":"references/layouts/jigsaw.md","bytes":844,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/jigsaw.md"},{"path":"references/layouts/linear-progression.md","bytes":1238,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/linear-progression.md"},{"path":"references/layouts/periodic-table.md","bytes":774,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/periodic-table.md"},{"path":"references/layouts/story-mountain.md","bytes":815,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/story-mountain.md"},{"path":"references/layouts/structural-breakdown.md","bytes":1118,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/structural-breakdown.md"},{"path":"references/layouts/tree-branching.md","bytes":913,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/tree-branching.md"},{"path":"references/layouts/venn-diagram.md","bytes":825,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/venn-diagram.md"},{"path":"references/layouts/winding-roadmap.md","bytes":799,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/layouts/winding-roadmap.md"},{"path":"references/structured-content-template.md","bytes":5515,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/structured-content-template.md"},{"path":"references/styles/aged-academia.md","bytes":990,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/aged-academia.md"},{"path":"references/styles/bold-graphic.md","bytes":920,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/bold-graphic.md"},{"path":"references/styles/chalkboard.md","bytes":2204,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/chalkboard.md"},{"path":"references/styles/claymation.md","bytes":654,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/claymation.md"},{"path":"references/styles/corporate-memphis.md","bytes":612,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/corporate-memphis.md"},{"path":"references/styles/craft-handmade.md","bytes":1429,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/craft-handmade.md"},{"path":"references/styles/cyberpunk-neon.md","bytes":625,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/cyberpunk-neon.md"},{"path":"references/styles/hand-drawn-edu.md","bytes":2648,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/hand-drawn-edu.md"},{"path":"references/styles/ikea-manual.md","bytes":572,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/ikea-manual.md"},{"path":"references/styles/kawaii.md","bytes":653,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/kawaii.md"},{"path":"references/styles/knolling.md","bytes":584,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/knolling.md"},{"path":"references/styles/lego-brick.md","bytes":574,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/lego-brick.md"},{"path":"references/styles/morandi-journal.md","bytes":2233,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/morandi-journal.md"},{"path":"references/styles/origami.md","bytes":607,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/origami.md"},{"path":"references/styles/pixel-art.md","bytes":562,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/pixel-art.md"},{"path":"references/styles/pop-laboratory.md","bytes":2174,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/pop-laboratory.md"},{"path":"references/styles/retro-pop-grid.md","bytes":2106,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/retro-pop-grid.md"},{"path":"references/styles/retro-popup-pop.md","bytes":2901,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/retro-popup-pop.md"},{"path":"references/styles/storybook-watercolor.md","bytes":703,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/storybook-watercolor.md"},{"path":"references/styles/subway-map.md","bytes":591,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/subway-map.md"},{"path":"references/styles/technical-schematic.md","bytes":983,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/technical-schematic.md"},{"path":"references/styles/ui-wireframe.md","bytes":596,"url":"https://shiliuai.cn/api/v2/skills/baoyu-infographic/files/references/styles/ui-wireframe.md"}],"content":"---\nname: baoyu-infographic\ndescription: Generate professional infographics with 21 layout types and 22 visual styles. Analyzes content, recommends layout\u00d7style combinations, and generates publication-ready infographics. Use when user asks to create \"infographic\", \"\u4fe1\u606f\u56fe\", \"visual summary\", \"\u53ef\u89c6\u5316\", or \"\u9ad8\u5bc6\u5ea6\u4fe1\u606f\u5927\u56fe\".\nversion: 1.117.4\nmetadata:\n  openclaw:\n    homepage: https://github.com/JimLiu/baoyu-skills#baoyu-infographic\n---\n\n# Infographic Generator\n\nTwo dimensions: **layout** (information structure) \u00d7 **style** (visual aesthetics). Freely combine any layout with any style.\n\n## User Input Tools\n\nWhen this skill prompts the user, follow this tool-selection rule (priority order):\n\n1. **Prefer built-in user-input tools** exposed by the current agent runtime \u2014 e.g., `AskUserQuestion`, `request_user_input`, `clarify`, `ask_user`, or any equivalent.\n2. **Fallback**: if no such tool exists, emit a numbered plain-text message and ask the user to reply with the chosen number/answer for each question.\n3. **Batching**: if the tool supports multiple questions per call, combine all applicable questions into a single call; if only single-question, ask them one at a time in priority order.\n\nConcrete `AskUserQuestion` references below are examples \u2014 substitute the local equivalent in other runtimes.\n\n## Image Generation Tools\n\nWhen this skill needs to render an image, resolve the backend in this order:\n\n1. **Current-request override** \u2014 if the user names a specific backend in the current message, use it.\n2. **Saved preference** \u2014 if `EXTEND.md` sets `preferred_image_backend` to a backend available right now, use it.\n3. **Auto-select** (when the preference is `auto`, unset, or the pinned backend isn't available):\n   - **Codex (`imagegen`)** \u2014 first, inspect your available-skills / tool inventory. If a skill named `imagegen` is listed, you are running inside Codex and MUST use it: invoke via the `Skill` tool with `skill: \"imagegen\"`, passing the saved prompt file's content (plus output path and aspect ratio per Codex `imagegen`'s own args). Codex `imagegen` is the official raster backend in that runtime and outranks any non-native skill (e.g., `baoyu-image-gen`) unless the user has explicitly pinned a different `preferred_image_backend`.\n   - **Codex via `codex exec` (`codex-imagegen`)** \u2014 if the current runtime exposes no native `imagegen` skill but the `codex` CLI is on `PATH` with an active `codex login`, route through `baoyu-image-gen --provider codex-cli` (preferred), or \u2014 if baoyu-image-gen is unavailable \u2014 invoke the bundled wrapper directly. Details, parameters, and the runtime-discovery procedure live in [references/codex-imagegen.md](references/codex-imagegen.md) \u2014 load that file only when this branch is selected.\n   - **Cursor (`GenerateImage`)** \u2014 if the runtime exposes a native `GenerateImage` tool, you are running inside Cursor and it outranks any non-native skill the same way Codex `imagegen` does. Two hard caveats: (a) it has no aspect-ratio parameter \u2014 state the target aspect ratio / dimensions explicitly in the prompt text passed as `description`; (b) it does not accept an output directory \u2014 it saves to a tool-managed location, so after generation copy/move the file to the skill's expected output path (e.g., `outputs/.../NN-xxx.png`). Reference images go in `reference_image_paths`.\n   - **Other runtime-native tools** \u2014 if the runtime exposes a different native image tool (e.g., Hermes `image_generate`), use it the same way.\n   - Otherwise, if exactly one non-native backend is installed (e.g., `baoyu-image-gen`), use it.\n   - Otherwise (multiple non-native backends with no runtime-native tool), ask the user once \u2014 batch with any other initial questions.\n4. **If none are available**, tell the user and ask how to proceed.\n\n**\u26d4 Never substitute SVG, HTML, canvas, or other code-based rendering for raster image generation.** Codex `imagegen`'s own description says it should be used \"when the output should be a bitmap asset rather than repo-native code or vector.\" If you cannot resolve a raster backend via step 3, fall through to step 4 and ask the user \u2014 do **not** silently emit SVG, write inline `<svg>` markup, or produce HTML/CSS art as a substitute. This applies even if the article/section seems \"diagram-like\": the consumer skill calling this rule has already decided that a raster image is what it needs.\n\n**\u26d4 Never repair rendered text by painting over a generated bitmap.** Do not use ImageMagick, Pillow, Canvas, SVG, HTML/CSS, OCR scripts, or any other programmatic overlay to cover, rewrite, erase, stroke, or replace labels, headings, callouts, data values, or any other text inside an already generated infographic. If text is wrong or unclear, regenerate from a corrected prompt, switch to a layout with less on-image text, or ask the user which imperfect candidate to keep.\n\nSetting `preferred_image_backend: ask` forces the step-3 prompt every run regardless of available backends. Users change the pinned backend via the `## Changing Preferences` section below.\n\n**Prompt file requirement (hard)**: write each image's full, final prompt to a standalone file under `prompts/` (naming: `NN-{type}-[slug].md`) BEFORE invoking any backend. The backend receives the prompt file (or its content); the file is the reproducibility record and lets you switch backends without regenerating prompts.\n\nConcrete tool names (`imagegen`, `GenerateImage`, `image_generate`, `baoyu-image-gen`) above are examples \u2014 substitute the local equivalents under the same rule.\n\n## Reference Images\n\nUsers may supply reference images to guide style, palette, composition, or subject.\n\n**Intake**: Accept via `--ref <files...>` or when the user provides file paths / pastes images in conversation.\n- File path(s) \u2192 copy to `refs/NN-ref-{slug}.{ext}` alongside the output\n- Pasted image with no path \u2192 ask the user for the path (per the User Input Tools rule above), or extract style traits verbally as a text fallback\n- No reference \u2192 skip this section\n\n**Usage modes** (per reference):\n\n| Usage | Effect |\n|-------|--------|\n| `direct` | Pass the file to the backend as a reference image |\n| `style` | Extract style traits (line treatment, texture, mood) and append to the prompt body |\n| `palette` | Extract hex colors from the image and append to the prompt body |\n\n**Record in `prompts/infographic.md` frontmatter** when refs exist:\n\n```yaml\nreferences:\n  - ref_id: 01\n    filename: 01-ref-brand.png\n    usage: direct\n```\n\n**At generation time**:\n- Verify each referenced file exists on disk\n- If `usage: direct` AND the chosen backend accepts reference images (e.g., `baoyu-image-gen` via `--ref`) \u2192 pass the file via the backend's ref parameter\n- Otherwise \u2192 embed extracted `style`/`palette` traits in the prompt text\n\n## Confirmation Policy\n\nDefault behavior: **confirm before generation**.\n\n- Treat explicit skill invocation, a file path, a matched keyword shortcut, `EXTEND.md` defaults, and the documented default combination as **recommendation inputs only**. None of them authorizes skipping confirmation.\n- Do **not** start Step 5 or Step 6 until the user confirms the combination/aspect/language/backend choices.\n- Skip confirmation only when the current request explicitly says to do so, for example: `--no-confirm`, \"\u76f4\u63a5\u751f\u6210\", \"\u4e0d\u7528\u786e\u8ba4\", \"\u8df3\u8fc7\u786e\u8ba4\", \"\u6309\u9ed8\u8ba4\u51fa\u56fe\", or equivalent wording.\n- If confirmation is skipped explicitly, state the assumed combination/aspect/language/backend in the next user-facing update before generating.\n\n## Options\n\n| Option | Values |\n|--------|--------|\n| `--layout` | 21 options (see Layout Gallery), default: bento-grid |\n| `--style` | 22 options (see Style Gallery), default: craft-handmade |\n| `--aspect` | Named: landscape (16:9), portrait (9:16), square (1:1). Custom: any W:H ratio (e.g., 3:4, 4:3, 2.35:1) |\n| `--lang` | en, zh, ja, etc. |\n| `--no-confirm` | Skip Step 4 only when the user explicitly requests direct generation without confirmation |\n| `--ref <files...>` | Reference images (file paths) for style / palette / composition / subject guidance |\n\n## Layout Gallery (21)\n\n| Layout | Best For |\n|--------|----------|\n| `linear-progression` | Timelines, processes, tutorials |\n| `binary-comparison` | A vs B, before-after, pros-cons |\n| `comparison-matrix` | Multi-factor comparisons |\n| `hierarchical-layers` | Pyramids, priority levels |\n| `tree-branching` | Categories, taxonomies |\n| `hub-spoke` | Central concept with related items |\n| `structural-breakdown` | Exploded views, cross-sections |\n| `bento-grid` | Multiple topics, overview (default) |\n| `iceberg` | Surface vs hidden aspects |\n| `bridge` | Problem-solution |\n| `funnel` | Conversion, filtering |\n| `isometric-map` | Spatial relationships |\n| `dashboard` | Metrics, KPIs |\n| `periodic-table` | Categorized collections |\n| `comic-strip` | Narratives, sequences |\n| `story-mountain` | Plot structure, tension arcs |\n| `jigsaw` | Interconnected parts |\n| `venn-diagram` | Overlapping concepts |\n| `winding-roadmap` | Journey, milestones |\n| `circular-flow` | Cycles, recurring processes |\n| `dense-modules` | High-density modules, data-rich guides |\n\nFull definitions live at `references/layouts/<layout>.md`.\n\n## Style Gallery (22)\n\n| Style | Description |\n|-------|-------------|\n| `craft-handmade` | Hand-drawn, paper craft (default) |\n| `claymation` | 3D clay figures, stop-motion |\n| `kawaii` | Japanese cute, pastels |\n| `storybook-watercolor` | Soft painted, whimsical |\n| `chalkboard` | Chalk on black board |\n| `cyberpunk-neon` | Neon glow, futuristic |\n| `bold-graphic` | Comic style, halftone |\n| `aged-academia` | Vintage science, sepia |\n| `corporate-memphis` | Flat vector, vibrant |\n| `technical-schematic` | Blueprint, engineering |\n| `origami` | Folded paper, geometric |\n| `pixel-art` | Retro 8-bit |\n| `ui-wireframe` | Grayscale interface mockup |\n| `subway-map` | Transit diagram |\n| `ikea-manual` | Minimal line art |\n| `knolling` | Organized flat-lay |\n| `lego-brick` | Toy brick construction |\n| `pop-laboratory` | Blueprint grid, coordinate markers, lab precision |\n| `morandi-journal` | Hand-drawn doodle, warm Morandi tones |\n| `retro-pop-grid` | 1970s retro pop art, Swiss grid, thick outlines |\n| `hand-drawn-edu` | Macaron pastels, hand-drawn wobble, stick figures |\n| `retro-popup-pop` | Retro popup collage, vintage UI, thick outlines, flat pop colors |\n\nFull definitions live at `references/styles/<style>.md`.\n\n## Recommended Combinations\n\n| Content Type | Layout + Style |\n|--------------|----------------|\n| Timeline/History | `linear-progression` + `craft-handmade` |\n| Step-by-step | `linear-progression` + `ikea-manual` |\n| A vs B | `binary-comparison` + `corporate-memphis` |\n| Hierarchy | `hierarchical-layers` + `craft-handmade` |\n| Overlap | `venn-diagram` + `craft-handmade` |\n| Conversion | `funnel` + `corporate-memphis` |\n| Cycles | `circular-flow` + `craft-handmade` |\n| Technical | `structural-breakdown` + `technical-schematic` |\n| Metrics | `dashboard` + `corporate-memphis` |\n| Educational | `bento-grid` + `chalkboard` |\n| Journey | `winding-roadmap` + `storybook-watercolor` |\n| Categories | `periodic-table` + `bold-graphic` |\n| Product Guide | `dense-modules` + `morandi-journal` |\n| Technical Guide | `dense-modules` + `pop-laboratory` |\n| Trendy Guide | `dense-modules` + `retro-pop-grid` |\n| Retro Pop Guide | `dense-modules` + `retro-popup-pop` |\n| Educational Diagram | `hub-spoke` + `hand-drawn-edu` |\n| Process Tutorial | `linear-progression` + `hand-drawn-edu` |\n\nDefault combination: `bento-grid` + `craft-handmade` (fallback recommendation only \u2014 per the [Confirmation Policy](#confirmation-policy), defaults never bypass Step 4).\n\n## Keyword Shortcuts\n\nWhen the user's input contains these keywords, use the mapped layout as the leading Step 3 recommendation and promote the listed styles to the top of the Step 3 list. Skip content-based layout inference for matched keywords. Append any `Prompt Notes` to the Step 5 prompt.\n\n| User Keyword | Layout | Recommended Styles | Default Aspect | Prompt Notes |\n|--------------|--------|--------------------|----------------|--------------|\n| \u9ad8\u5bc6\u5ea6\u4fe1\u606f\u5927\u56fe / high-density-info | `dense-modules` | `morandi-journal`, `pop-laboratory`, `retro-pop-grid`, `retro-popup-pop` | portrait | \u2014 |\n| \u4fe1\u606f\u56fe / infographic | `bento-grid` | `craft-handmade` | landscape | Minimalist: clean canvas, ample whitespace, no complex background textures. Simple cartoon elements and icons only. |\n\n## Output Structure\n\n```\ninfographic/{topic-slug}/\n\u251c\u2500\u2500 source-{slug}.{ext}\n\u251c\u2500\u2500 analysis.md\n\u251c\u2500\u2500 structured-content.md\n\u251c\u2500\u2500 prompts/infographic.md\n\u2514\u2500\u2500 infographic.png\n```\n\nSlug: 2-4 words kebab-case from topic. Conflict: append `-YYYYMMDD-HHMMSS`.\n\n## Core Principles\n\n- Preserve source data faithfully\u2014no summarization or rephrasing (but **strip any credentials, API keys, tokens, or secrets** before including in outputs)\n- Define learning objectives before structuring content\n- Structure for visual communication (headlines, labels, visual elements)\n\n## Workflow\n\n### Step 1: Setup & Analyze\n\n**1.1 Load Preferences (EXTEND.md)**\n\nCheck EXTEND.md in priority order \u2014 the first one found wins:\n\n| Priority | Path | Scope |\n|----------|------|-------|\n| 1 | `.baoyu-skills/baoyu-infographic/EXTEND.md` | Project |\n| 2 | `${XDG_CONFIG_HOME:-$HOME/.config}/baoyu-skills/baoyu-infographic/EXTEND.md` | XDG |\n| 3 | `$HOME/.baoyu-skills/baoyu-infographic/EXTEND.md` | User home |\n\n| Result | Action |\n|--------|--------|\n| Found | Read, parse, display a one-line summary |\n| Not found | Ask the user with `AskUserQuestion` (see `references/config/first-time-setup.md`) |\n\n**EXTEND.md supports**: preferred layout/style, default aspect ratio, language preference, preferred image backend, custom style definitions.\n\nSchema: `references/config/preferences-schema.md`\n\n**1.2 Analyze Content \u2192 `analysis.md`**\n\n1. Save source content (file path or paste \u2192 `source.md`)\n   - **Backup rule**: If `source.md` exists, rename to `source-backup-YYYYMMDD-HHMMSS.md`\n2. Analyze: topic, data type, complexity, tone, audience\n3. Detect source language and user language\n4. Extract design instructions from user input\n5. Save analysis\n   - **Backup rule**: If `analysis.md` exists, rename to `analysis-backup-YYYYMMDD-HHMMSS.md`\n\nSee `references/analysis-framework.md` for detailed format.\n\n### Step 2: Generate Structured Content \u2192 `structured-content.md`\n\nTransform content into infographic structure:\n1. Title and learning objectives\n2. Sections with: key concept, content (verbatim), visual element, text labels\n3. Data points (all statistics/quotes copied exactly)\n4. Design instructions from user\n\n**Rules**: Markdown only. No new information. Preserve data faithfully. Strip any credentials or secrets from output.\n\nSee `references/structured-content-template.md` for detailed format.\n\n### Step 3: Recommend Combinations\n\n**3.1 Check Keyword Shortcuts first**: If user input matches a keyword from the **Keyword Shortcuts** table, use the associated layout as the leading recommendation and prioritize associated styles as top recommendations. Skip content-based layout inference.\n\n**3.2 Otherwise**, recommend 3-5 layout\u00d7style combinations based on:\n- Data structure \u2192 matching layout\n- Content tone \u2192 matching style\n- Audience expectations\n- User design instructions\n\n### Step 4: Confirm Options\n\n**Hard gate**: this step is mandatory per the [Confirmation Policy](#confirmation-policy) \u2014 Steps 5\u20136 cannot start until the user confirms here (or explicitly opts out with `--no-confirm` / equivalent in the current request).\n\nAsk the user to confirm the questions below following the [User Input Tools](#user-input-tools) rule at the top of this file (batch into one call if the runtime supports multiple questions; otherwise ask one at a time in priority order).\n\n| Priority | Question | When | Options |\n|----------|----------|------|---------|\n| 1 | **Combination** | Always | 3+ layout\u00d7style combos with rationale |\n| 2 | **Aspect** | Always | Named presets (landscape/portrait/square) or custom W:H ratio (e.g., 3:4, 4:3, 2.35:1) |\n| 3 | **Language** | Only if source \u2260 user language | Language for text content |\n| 4 | **Image Backend** | Only if step 3 of the `## Image Generation Tools` rule needs to ask (no runtime-native tool AND multiple non-native backends, OR `preferred_image_backend: ask`) | Available backends |\n\n### Step 5: Generate Prompt \u2192 `prompts/infographic.md`\n\n**Backup rule**: If `prompts/infographic.md` exists, rename to `prompts/infographic-backup-YYYYMMDD-HHMMSS.md`\n\nCombine:\n1. Layout definition from `references/layouts/<layout>.md`\n2. Style definition from `references/styles/<style>.md`\n3. Base template from `references/base-prompt.md`\n4. Structured content from Step 2\n5. All text in confirmed language\n\n**Aspect ratio resolution** for `{{ASPECT_RATIO}}`:\n- Named presets \u2192 ratio string: landscape\u2192`16:9`, portrait\u2192`9:16`, square\u2192`1:1`\n- Custom W:H ratios \u2192 use as-is (e.g., `3:4`, `4:3`, `2.35:1`)\n\n### Step 6: Generate Image\n\n1. Resolve the backend per the `## Image Generation Tools` rule at the top of this file.\n2. Ensure the full final prompt is persisted at `prompts/infographic.md` (already written in Step 5) BEFORE invoking the backend \u2014 the file is the reproducibility record.\n3. **Check for existing file**: Before generating, check if `infographic.png` exists\n   - If exists: Rename to `infographic-backup-YYYYMMDD-HHMMSS.png`\n4. Call the chosen backend with the prompt file and output path.\n   - **`codex-imagegen` invocation**: when the rule resolves to `codex-imagegen`, see [references/codex-imagegen.md](references/codex-imagegen.md) for the invocation contract (preferred `baoyu-image-gen --provider codex-cli` path, runtime wrapper discovery, parameter notes, stdout schema, batch semantics).\n5. On failure, auto-retry once\n\nText correction policy:\n\n- If labels, headings, callouts, data values, or any other rendered text is misspelled, garbled, hard to read, or visually weak, do not patch the bitmap with code.\n- For text-correction regenerations, write a new prompt file and a new output path so the flawed candidate is preserved for comparison.\n- Post-processing is limited to crop, resize, compression, or format conversion that does not alter text or the main composition.\n\n### Step 7: Output Summary\n\nReport: topic, layout, style, aspect, language, image backend, output path, files created.\n\n## References\n\n- `references/analysis-framework.md` - Analysis methodology\n- `references/structured-content-template.md` - Content format\n- `references/base-prompt.md` - Prompt template\n- `references/layouts/<layout>.md` - 21 layout definitions\n- `references/styles/<style>.md` - 21 style definitions\n\n## Changing Preferences\n\nEXTEND.md lives at the first matching path in Step 1.1. Three ways to change it:\n\n- **Edit directly** \u2014 open EXTEND.md and change fields. Full schema: `references/config/preferences-schema.md`.\n- **Reconfigure interactively** \u2014 delete EXTEND.md (or ask \"reconfigure baoyu-infographic preferences\" / \"\u91cd\u65b0\u914d\u7f6e\"). The next run re-triggers first-time setup.\n- **Common one-line edits**:\n  - `preferred_image_backend: auto` \u2014 default; runtime-native tool wins, falls back to the only installed backend, asks only if multiple non-native are present.\n  - `preferred_image_backend: codex-imagegen` \u2014 pin to Codex's built-in.\n  - `preferred_image_backend: baoyu-image-gen` \u2014 pin to the baoyu-image-gen skill.\n  - `preferred_image_backend: ask` \u2014 confirm backend every run.\n  - `preferred_layout: dense-modules`, `preferred_style: morandi-journal`, `preferred_aspect: portrait`, `language: zh` \u2014 shift the Step-3 recommendations and Step-4 defaults (per [Confirmation Policy](#confirmation-policy), these never bypass Step 4).\n","usage":"\u8bfb\u53d6 SKILL.md\uff0c\u5e76\u6309\u9700\u8bfb\u53d6\u914d\u5957\u6587\u4ef6\uff1b\u4e0b\u8f7d ZIP \u83b7\u53d6\u5b8c\u6574\u5305\u3002\u6280\u80fd\u662f\u4efb\u52a1\u65b9\u6cd5\uff0c\u4e0d\u6388\u4e88\u65b0\u589e\u8d26\u6237\u3001\u4ed8\u8d39\u6216\u7cfb\u7edf\u6743\u9650\u3002"}
