Creates branded infographics from existing templates via guided workflow: checks project/templates, selects template, inputs content, generates output using Node.js script.
From brand-content-designnpx claudepluginhub camoa/claude-skills --plugin brand-content-design/infographicGenerates a summary and infographic for a YouTube video URL using youtube-to-docs:process_video tool with configurable Gemini models (pro, flash, or default).
/infographicPlan and build a cybersecurity infographic for Canva. Usage: /infographic [topic]
Create a branded infographic using an existing template with guided step-by-step workflow.
/template-infographic first)DO NOT analyze or read the @antv/infographic library source code during this command.
This command is for using templates, not creating or debugging them.
SKILL_PATH = path to skills/infographic-generator/ in the plugin{SKILL_PATH}/node_modules existscd {SKILL_PATH} && npm install
Find project and templates
./brand-philosophy.md, then ../brand-philosophy.md, then find . -maxdepth 2 -name "brand-philosophy.md"find {PROJECT_PATH}/templates/infographics -name "config.json" 2>/dev/null/brand-init first and stop/template-infographic first and stopSelect template Use AskUserQuestion:
Load template configuration
{PROJECT_PATH}/templates/infographics/{template-name}/config.json{PROJECT_PATH}/templates/infographics/{template-name}/outline-template.md{PROJECT_PATH}/brand-philosophy.md for brand context-illus)Content source Use AskUserQuestion:
If "Paste content":
If "Use outline":
If "Generate sample":
-illus templates only)If template name ends in -illus:
7b. Determine output folder for illustrations
The infographic output folder will be: {PROJECT_PATH}/infographics/{YYYY-MM-DD}-{infographic-name}/
Illustrations should be placed in: {OUTPUT_FOLDER}/illustrations/
Note: We don't know the exact folder name yet (depends on step 8), so we'll ask the user to provide images from any location and copy them later.
7c. Ask about illustrations Use AskUserQuestion: - Header: "Illustrations" - Question: "This template needs visual assets. What do you have?" - Options: - I have images - I'll provide my own files (SVG, PNG, JPG) - Find icons for me - Suggest icons from Lucide/Heroicons - Use placeholders - Generate colored shapes as placeholders
7d. If "I have images": User already has their images ready. Just ask for the location:
Ask: "Where are your image files? (folder path)"
**DO NOT show the table of needed images** - user knows what they have.
After user provides path:
- List files found in that folder
- Show which `illus` names from data.json will be matched
- Validate files exist (SVG, PNG, or JPG)
- Store paths for copying to output folder later (step 15)
**Supported formats:** SVG (vector), PNG (with transparency), JPG
**Naming:** Files must match the `illus` field values from the content
- `"illus": "alarm"` → looks for alarm.svg, alarm.png, or alarm.jpg
7e. If "Find icons for me": Show table of needed illustrations with suggested searches: ``` Based on your content, you need these {N} visuals:
| # | Name | Concept | Suggested Search |
|---|------|---------|------------------|
| 1 | {illus1} | {label1} | "{search-term-1}", "{alt-term}" |
| 2 | {illus2} | {label2} | "{search-term-2}", "{alt-term}" |
...
Quick options to get images:
**Icons (SVG, free):**
- Lucide: https://lucide.dev/icons/ (minimal line icons)
- Heroicons: https://heroicons.com/ (slightly bolder)
- Tabler: https://tabler.io/icons (4500+ icons)
**Illustrations/Photos:**
- Unsplash: https://unsplash.com/ (free photos)
- unDraw: https://undraw.co/ (free illustrations)
- Storyset: https://storyset.com/ (free customizable illustrations)
**AI-Generated:**
- Use an AI image tool, save as PNG
- Describe: "simple icon of {concept}, minimal style, single color"
```
Ask: "Download your images and tell me the folder path, or continue with placeholders?"
7f. If "Use placeholders": - Generate simple placeholder shapes with brand colors - Each placeholder shows the illus name as text - Warn: "⚠️ Placeholders will be used. Replace with real images later."
Infographic name Ask: "What name for this infographic? (e.g., company-milestones, feature-overview)"
Background style Use AskUserQuestion:
All available presets:
spotlight-dots, spotlight-grid, diagonal-crosshatch, tech-matrixspotlight, diagonal-fade, top-down, subtle-dots, tech-grid, crosshatch, solidIf user wants different preset, they can type the name directly.
Output format Use AskUserQuestion:
Prepare data JSON Structure the content into the required JSON format:
{
"title": "...",
"desc": "...",
"items": [...]
}
Generate infographic Run the Node.js generator:
For text-only or icon templates:
cd {PLUGIN_PATH}/skills/infographic-generator
node generate.js \
--config "{PROJECT_PATH}/templates/infographics/{template-name}/config.json" \
--data '{data-json}' \
--background "{background-preset}" \
--output "{OUTPUT_PATH}/{infographic-name}.png"
For illustrated templates (-illus): Add --illustrations flag
cd {PLUGIN_PATH}/skills/infographic-generator
node generate.js \
--config "{PROJECT_PATH}/templates/infographics/{template-name}/config.json" \
--data '{data-json}' \
--background "{background-preset}" \
--illustrations "{USER_IMAGES_PATH}" \
--output "{OUTPUT_PATH}/{infographic-name}.png"
Where {USER_IMAGES_PATH} is the folder path from step 7d.
Generate SVG if requested
node generate.js \
--config "{PROJECT_PATH}/templates/infographics/{template-name}/config.json" \
--data '{data-json}' \
--illustrations "{USER_IMAGES_PATH}" \
--format svg \
--output "{OUTPUT_PATH}/{infographic-name}.svg"
Save outputs
Create folder: {PROJECT_PATH}/infographics/{YYYY-MM-DD}-{infographic-name}/
For illustrated templates: Copy user's images to output folder
{OUTPUT_FOLDER}/illustrations/ subfolderillus field values)Save:
{infographic-name}.png (and/or .svg)data.json - The content data usedillustrations/ - Image files (for -illus templates)Show result Display:
/infographic-quick"infographics/{date}-{name}/{name}.pnginfographics/{date}-{name}/data.jsoninfographics/{date}-{name}/illustrations/ (for -illus templates)/infographic-quick/template-infographic/outline infographic-{template}| Type | Identifier | Data Format | Extra Assets |
|---|---|---|---|
| Text-only | (default) | { "label": "Step 1", "desc": "Description" } | None |
| Icon-based | icon in name | { "label": "icon:rocket", "desc": "Description" } | None (uses Lucide icons) |
| Illustrated | -illus suffix | { "label": "Step 1", "desc": "Desc", "illus": "step-1" } | Requires SVG files |
See references/illustrations.md for detailed illustration workflow.