SKILL.md
SKILL.mdBrowse 47 files
2,640 tokens
10,434 bytes
Token encoding: o200k_base
Snapshot 24fd22b
1---2name: baoyu-infographic3description: "Infographics: 21 layouts x 21 styles (信息图, 可视化)."4version: 1.56.15author: 宝玉 (JimLiu)6license: MIT7platforms: [linux, macos, windows]8metadata:9 hermes:10 tags: [infographic, visual-summary, creative, image-generation]11 homepage: https://github.com/JimLiu/baoyu-skills#baoyu-infographic12---13 14# Infographic Generator15 16Adapted from [baoyu-infographic](https://github.com/JimLiu/baoyu-skills) for Hermes Agent's tool ecosystem.17 18Two dimensions: **layout** (information structure) × **style** (visual aesthetics). Freely combine any layout with any style.19 20## When to Use21 22Trigger this skill when the user asks to create an infographic, visual summary, information graphic, or uses terms like "信息图", "可视化", or "高密度信息大图". The user provides content (text, file path, URL, or topic) and optionally specifies layout, style, aspect ratio, or language.23 24## Options25 26| Option | Values |27|--------|--------|28| Layout | 21 options (see Layout Gallery), default: bento-grid |29| Style | 21 options (see Style Gallery), default: craft-handmade |30| 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) |31| Language | en, zh, ja, etc. |32 33## Layout Gallery34 35| Layout | Best For |36|--------|----------|37| `linear-progression` | Timelines, processes, tutorials |38| `binary-comparison` | A vs B, before-after, pros-cons |39| `comparison-matrix` | Multi-factor comparisons |40| `hierarchical-layers` | Pyramids, priority levels |41| `tree-branching` | Categories, taxonomies |42| `hub-spoke` | Central concept with related items |43| `structural-breakdown` | Exploded views, cross-sections |44| `bento-grid` | Multiple topics, overview (default) |45| `iceberg` | Surface vs hidden aspects |46| `bridge` | Problem-solution |47| `funnel` | Conversion, filtering |48| `isometric-map` | Spatial relationships |49| `dashboard` | Metrics, KPIs |50| `periodic-table` | Categorized collections |51| `comic-strip` | Narratives, sequences |52| `story-mountain` | Plot structure, tension arcs |53| `jigsaw` | Interconnected parts |54| `venn-diagram` | Overlapping concepts |55| `winding-roadmap` | Journey, milestones |56| `circular-flow` | Cycles, recurring processes |57| `dense-modules` | High-density modules, data-rich guides |58 59Full definitions: `references/layouts/<layout>.md`60 61## Style Gallery62 63| Style | Description |64|-------|-------------|65| `craft-handmade` | Hand-drawn, paper craft (default) |66| `claymation` | 3D clay figures, stop-motion |67| `kawaii` | Japanese cute, pastels |68| `storybook-watercolor` | Soft painted, whimsical |69| `chalkboard` | Chalk on black board |70| `cyberpunk-neon` | Neon glow, futuristic |71| `bold-graphic` | Comic style, halftone |72| `aged-academia` | Vintage science, sepia |73| `corporate-memphis` | Flat vector, vibrant |74| `technical-schematic` | Blueprint, engineering |75| `origami` | Folded paper, geometric |76| `pixel-art` | Retro 8-bit |77| `ui-wireframe` | Grayscale interface mockup |78| `subway-map` | Transit diagram |79| `ikea-manual` | Minimal line art |80| `knolling` | Organized flat-lay |81| `lego-brick` | Toy brick construction |82| `pop-laboratory` | Blueprint grid, coordinate markers, lab precision |83| `morandi-journal` | Hand-drawn doodle, warm Morandi tones |84| `retro-pop-grid` | 1970s retro pop art, Swiss grid, thick outlines |85| `hand-drawn-edu` | Macaron pastels, hand-drawn wobble, stick figures |86 87Full definitions: `references/styles/<style>.md`88 89## Recommended Combinations90 91| Content Type | Layout + Style |92|--------------|----------------|93| Timeline/History | `linear-progression` + `craft-handmade` |94| Step-by-step | `linear-progression` + `ikea-manual` |95| A vs B | `binary-comparison` + `corporate-memphis` |96| Hierarchy | `hierarchical-layers` + `craft-handmade` |97| Overlap | `venn-diagram` + `craft-handmade` |98| Conversion | `funnel` + `corporate-memphis` |99| Cycles | `circular-flow` + `craft-handmade` |100| Technical | `structural-breakdown` + `technical-schematic` |101| Metrics | `dashboard` + `corporate-memphis` |102| Educational | `bento-grid` + `chalkboard` |103| Journey | `winding-roadmap` + `storybook-watercolor` |104| Categories | `periodic-table` + `bold-graphic` |105| Product Guide | `dense-modules` + `morandi-journal` |106| Technical Guide | `dense-modules` + `pop-laboratory` |107| Trendy Guide | `dense-modules` + `retro-pop-grid` |108| Educational Diagram | `hub-spoke` + `hand-drawn-edu` |109| Process Tutorial | `linear-progression` + `hand-drawn-edu` |110 111Default: `bento-grid` + `craft-handmade`112 113## Keyword Shortcuts114 115When user input contains these keywords, **auto-select** the associated layout and offer associated styles as top recommendations in Step 3. Skip content-based layout inference for matched keywords.116 117If a shortcut has **Prompt Notes**, append them to the generated prompt (Step 5) as additional style instructions.118 119| User Keyword | Layout | Recommended Styles | Default Aspect | Prompt Notes |120|--------------|--------|--------------------|----------------|--------------|121| 高密度信息大图 / high-density-info | `dense-modules` | `morandi-journal`, `pop-laboratory`, `retro-pop-grid` | portrait | — |122| 信息图 / infographic | `bento-grid` | `craft-handmade` | landscape | Minimalist: clean canvas, ample whitespace, no complex background textures. Simple cartoon elements and icons only. |123 124## Output Structure125 126```127infographic/{topic-slug}/128├── source-{slug}.{ext}129├── analysis.md130├── structured-content.md131├── prompts/infographic.md132└── infographic.png133```134 135Slug: 2-4 words kebab-case from topic. Conflict: append `-YYYYMMDD-HHMMSS`.136 137## Core Principles138 139- Preserve source data faithfully — no summarization or rephrasing (but **strip any credentials, API keys, tokens, or secrets** before including in outputs)140- Define learning objectives before structuring content141- Structure for visual communication (headlines, labels, visual elements)142 143## Workflow144 145### Step 1: Analyze Content146 147**Load references**: Read `references/analysis-framework.md` from this skill.148 1491. Save source content (file path or paste → `source.md` using `write_file`)150 - **Backup rule**: If `source.md` exists, rename to `source-backup-YYYYMMDD-HHMMSS.md`1512. Analyze: topic, data type, complexity, tone, audience1523. Detect source language and user language1534. Extract design instructions from user input1545. Save analysis to `analysis.md`155 - **Backup rule**: If `analysis.md` exists, rename to `analysis-backup-YYYYMMDD-HHMMSS.md`156 157See `references/analysis-framework.md` for detailed format.158 159### Step 2: Generate Structured Content → `structured-content.md`160 161Transform content into infographic structure:1621. Title and learning objectives1632. Sections with: key concept, content (verbatim), visual element, text labels1643. Data points (all statistics/quotes copied exactly)1654. Design instructions from user166 167**Rules**: Markdown only. No new information. Preserve data faithfully. Strip any credentials or secrets from output.168 169See `references/structured-content-template.md` for detailed format.170 171### Step 3: Recommend Combinations172 173**3.1 Check Keyword Shortcuts first**: If user input matches a keyword from the **Keyword Shortcuts** table, auto-select the associated layout and prioritize associated styles as top recommendations. Skip content-based layout inference.174 175**3.2 Otherwise**, recommend 3-5 layout×style combinations based on:176- Data structure → matching layout177- Content tone → matching style178- Audience expectations179- User design instructions180 181### Step 4: Confirm Options182 183Use the `clarify` tool to confirm options with the user. Since `clarify` handles one question at a time, ask the most important question first:184 185**Q1 — Combination**: Present 3+ layout×style combos with rationale. Ask user to pick one.186 187**Q2 — Aspect**: Ask for aspect ratio preference (landscape/portrait/square or custom W:H).188 189**Q3 — Language** (only if source ≠ user language): Ask which language the text content should use.190 191### Step 5: Generate Prompt → `prompts/infographic.md`192 193**Backup rule**: If `prompts/infographic.md` exists, rename to `prompts/infographic-backup-YYYYMMDD-HHMMSS.md`194 195**Load references**: Read the selected layout from `references/layouts/<layout>.md` and style from `references/styles/<style>.md`.196 197Combine:1981. Layout definition from `references/layouts/<layout>.md`1992. Style definition from `references/styles/<style>.md`2003. Base template from `references/base-prompt.md`2014. Structured content from Step 22025. All text in confirmed language203 204**Aspect ratio resolution** for `{{ASPECT_RATIO}}`:205- Named presets → ratio string: landscape→`16:9`, portrait→`9:16`, square→`1:1`206- Custom W:H ratios → use as-is (e.g., `3:4`, `4:3`, `2.35:1`)207 208Save the assembled prompt to `prompts/infographic.md` using `write_file`.209 210### Step 6: Generate Image211 212Use the `image_generate` tool with the assembled prompt from Step 5.213 214- Map aspect ratio to image_generate's format: `16:9` → `landscape`, `9:16` → `portrait`, `1:1` → `square`215- For custom ratios, pick the closest named aspect216- On failure, auto-retry once217- Save the resulting image URL/path to the output directory218 219### Step 7: Output Summary220 221Report: topic, layout, style, aspect, language, output path, files created.222 223## References224 225- `references/analysis-framework.md` — Analysis methodology226- `references/structured-content-template.md` — Content format227- `references/base-prompt.md` — Prompt template228- `references/layouts/<layout>.md` — 21 layout definitions229- `references/styles/<style>.md` — 21 style definitions230 231## Pitfalls232 2331. **Data integrity is paramount** — never summarize, paraphrase, or alter source statistics. "73% increase" must stay "73% increase", not "significant increase".2342. **Strip secrets** — always scan source content for API keys, tokens, or credentials before including in any output file.2353. **One message per section** — each infographic section should convey one clear concept. Overloading sections reduces readability.2364. **Style consistency** — the style definition from the references file must be applied consistently across the entire infographic. Don't mix styles.2375. **image_generate aspect ratios** — the tool only supports `landscape`, `portrait`, and `square`. Custom ratios like `3:4` should map to the nearest option (portrait in that case).238 Discovery context
Discovered by repository scan. No exact path reference found in the snapshot’s root AGENTS.md.