/infographic:infographicfrom infographic
Generate professional LinkedIn-style infographics using Gemini AI image generation. Uses a guided, conversational flow with section-by-section validation, style discovery, multi-turn image editing, and learned preferences that improve over sessions. USE THIS SKILL WHEN: - User says "create infographic", "make a visual", "design an infographic", "generate infographic" - User wants to visualize a concept, framework, or data for social media - User mentions "LinkedIn post", "visual content", "carousel", "infographic series" - User asks to explain a concept visually or create a diagram-style image - User mentions "visual metaphor", "iceberg diagram", "pyramid", "funnel visualization" - User wants to generate images with Gemini/Nano Banana for informational content - User says "brand visuals", "social media graphics", "thought leadership visual" - User mentions "nano banana", "gemini image generation", "professional infographics"
Ships in infographic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A guided, conversational approach to creating professional infographics. Uses section-by-section validation, style discovery, and learned preferences to create visuals that improve over sessions.
Follow these steps in order before responding to the user:
Read these files NOW (use Read tool):
1. references/visual-reasoning.md (HOW TO THINK about visualizations - READ THIS FIRST)
2. references/visual-metaphors.md (12+ metaphor types, selection guide)
3. references/gemini-image-api.md (API, models, multi-turn editing)
4. references/style-guide.md (visual style rules, color systems, layouts)
5. references/prompt-engineering.md (prompt crafting for infographics)
6. references/style-presets.md (preset palettes for quick style selection)
7. references/pattern-bank.md (learned preferences schema)
8. references/image-editing.md (multi-turn editing workflow)
9. references/api-setup.md (API key setup guide)
This phase runs silently. See Phase 0 below.
After Phase 0 completes, start the guided conversation with Phase 1.
Summary: READ FILES → AUTO-LOAD CONFIG (Phase 0) → START PHASE 1
Goal: Check for existing configurations and load them silently. Do NOT ask questions yet.
Run these checks in order:
# 1. Check for .env with API key
if [ -f .env ]; then
source .env 2>/dev/null
fi
# 2. Check API key
echo "${GEMINI_API_KEY:+API key is set}"
# 3. Check for brand config
if [ -f .infographic-brand.json ]; then
cat .infographic-brand.json
fi
# 4. Check for pattern bank (learned preferences)
if [ -f .infographic-patterns.json ]; then
cat .infographic-patterns.json
fi
Based on what you find:
If configs exist, acknowledge them briefly:
I found your saved settings:
- API key: [✓ configured / ✗ not set]
- Brand: [Company palette: primary/accent colors] OR [not set]
- Learned preferences: [list 2-3 key preferences] OR [none yet]
Ready to create your infographic!
If no configs exist, just proceed to Phase 1 — you'll collect what you need through the guided flow.
Output: Silent config load. Brief acknowledgment if configs found, then proceed to Phase 1.
Goal: Understand what the user wants to communicate and for which platform.
Read the user's content (they may have provided a LinkedIn post, concept, data, or topic). Identify:
Propose your understanding:
Here's what I think the key message is:
[Your extracted insight in one sentence]
Main points:
1. [Point 1]
2. [Point 2]
3. [Point 3]
...
Is this right, or would you frame it differently?
Wait for user confirmation before proceeding.
Use AskUserQuestion:
question: "Where will this be posted?"
header: "Platform"
options:
- label: "LinkedIn"
description: "4:5 portrait recommended for best engagement"
- label: "Instagram"
description: "1:1 square or 4:5 portrait"
- label: "Twitter/X"
description: "16:9 landscape for timeline"
- label: "Presentation"
description: "16:9 landscape for slides"
Use AskUserQuestion:
question: "How much content do you have?"
header: "Complexity"
options:
- label: "Simple (3-5 points)"
description: "One core idea, fits in a single infographic"
- label: "Medium (6-10 points)"
description: "One idea with multiple facets, needs simplification"
- label: "Complex (10+ points)"
description: "Multiple ideas or deep detail — recommend a series"
If "Complex" selected, propose how to split into a series (2-4 posts) with specific content mapping for each.
Summarize what you've captured:
Let me confirm before we move on:
- Core insight: [...]
- Key points: [...]
- Platform: [...] ([aspect ratio])
- Format: [Single infographic / Series of N posts]
All correct?
Wait for confirmation before Phase 2.
Output: Confirmed brief with insight, points, platform, and format.
Goal: Establish the visual identity. Either extract from website, use presets, or collect manually.
If .infographic-patterns.json exists with learned style preferences, propose using them:
Based on your history, I'll use:
- Colors: [saved palette]
- Tone: [saved tone]
- Style: [saved style preferences]
Use these again, or start fresh?
Use AskUserQuestion:
question: "Use your saved style preferences?"
header: "Style"
options:
- label: "Yes, use saved (Recommended)"
description: "[Brief summary of saved style]"
- label: "Start fresh"
description: "I want to choose a new style for this project"
If "Yes, use saved" — skip to Phase 3.
Use AskUserQuestion:
question: "How should I get your visual style?"
header: "Style source"
options:
- label: "Extract from my website (Recommended)"
description: "I'll analyze your site for colors, fonts, and brand feel"
- label: "Show me preset styles"
description: "Choose from 5 professional palettes"
- label: "I'll describe my colors/fonts"
description: "You know your exact hex codes and preferences"
- label: "Use a professional default"
description: "Clean blue and amber palette, works for most content"
WebFetch to get the pagereferences/css-extraction.mdI found these brand elements on [domain]:
- Primary color: [color] [hex]
- Secondary color: [color] [hex]
- Font style: [detected font family or type]
- Overall feel: [professional/playful/minimal/bold]
Use these?
Present the 5 presets from references/style-presets.md:
Use AskUserQuestion:
question: "Which style palette fits your brand?"
header: "Palette"
options:
- label: "Professional Blue"
description: "#2563EB blue + #F59E0B amber — corporate, trustworthy"
- label: "Warm Coral"
description: "#F97316 coral + #14B8A6 teal — energetic, approachable"
- label: "Modern Purple"
description: "#7C3AED purple + #10B981 emerald — creative, innovative"
- label: "Minimal Mono"
description: "#111827 black + #EF4444 red accent — bold, striking"
Ask for:
Use AskUserQuestion:
question: "What's the visual tone?"
header: "Tone"
options:
- label: "Professional & clean"
description: "Corporate feel, great for LinkedIn thought leadership"
- label: "Playful & approachable"
description: "Hand-drawn touches, friendly for broader audiences"
- label: "Bold & striking"
description: "High contrast, large type, attention-grabbing"
- label: "Minimal & elegant"
description: "Lots of whitespace, sophisticated restraint"
After collecting style, save to .infographic-brand.json:
cat > .infographic-brand.json <<'EOF'
{
"primaryColor": "#HEXCODE",
"accentColor": "#HEXCODE",
"background": "light|dark",
"backgroundColor": "#HEXCODE",
"fontStyle": "clean sans-serif|serif|handwritten|bold",
"tone": "professional|playful|bold|minimal",
"extractedFrom": "website.com|preset|manual",
"savedAt": "ISO-8601-timestamp"
}
EOF
Style locked in:
- Primary: [color] [hex]
- Accent: [color] [hex]
- Background: [light/dark]
- Font: [style]
- Tone: [tone]
Ready to choose a visualization?
Output: Brand profile saved and confirmed.
Goal: Find the perfect visual metaphor by understanding the shape of the user's idea.
IMPORTANT: Don't just match keywords to templates. Follow the reasoning process in references/visual-reasoning.md.
Before presenting options, think through these questions internally (don't ask the user):
1. Extract the Core Tension: What two things are in relationship?
2. Identify the Relationship Type:
| Relationship | Visual Shape | Example Metaphors |
|---|---|---|
| Revelation (hidden vs. visible) | Depth, layers | Iceberg, Layers |
| Hierarchy (levels of importance) | Vertical stack | Pyramid, Tiers |
| Transformation (A becomes B) | Journey, movement | U-curve, Timeline |
| Composition (parts → whole) | Container | Pie, Silhouette, Puzzle |
| Contrast (A vs. B) | Division | Split, Tangled→Straight |
| Intersection (overlap) | Merger | Venn |
| Convergence (many → few) | Narrowing | Funnel, Hourglass |
| Sequence (ordered steps) | Flow | Timeline, Numbered steps |
3. Feel the Emotional Weight:
4. Validate the Fit:
Show the user your thinking, then present options:
Looking at your content, here's what I see:
The core tension is: [what vs. what]
This is about: [relationship type — revelation/hierarchy/transformation/etc.]
The idea's shape feels like: [description of the shape]
Based on this, here are visualization options:
Use AskUserQuestion:
question: "Which visualization resonates with your message?"
header: "Visual"
options:
- label: "[Metaphor 1]"
description: "[Why it works — connect to THEIR specific content and the shape you identified]"
- label: "[Metaphor 2]"
description: "[Why it works — different angle on the same shape]"
- label: "[Metaphor 3]"
description: "[Why it works — alternative interpretation]"
- label: "Something else"
description: "I have a different idea in mind"
CRITICAL: The descriptions must explain WHY this metaphor fits THIS content, not generic template descriptions.
Bad: "Iceberg — Shows hidden depth" Good: "Iceberg — Your '10% talent, 90% execution' message maps perfectly: talent visible above water, the grinding work massive below"
If user selects "Something else," ask them to describe what they're envisioning. Use the reasoning framework to understand what shape they're going for.
After metaphor selection, map their SPECIFIC content to the visual structure:
For a [chosen metaphor], here's how I'd map your content:
[Show the exact mapping with their words]
Example for Iceberg with their content:
Above water (10% — what people see):
- "Natural talent"
- "The big wins"
Below water (90% — the hidden work):
- "Daily practice" (30%)
- "Failed attempts" (25%)
- "Strategic planning" (20%)
- "Consistent execution" (15%)
Does this mapping capture your message?
Let user confirm or adjust. The mapping should use THEIR language and data.
Visual direction confirmed:
- Metaphor: [chosen metaphor]
- Why it fits: [one sentence connecting to their content's shape]
- Content mapping: [brief summary]
Now let's set up image generation.
Output: Confirmed metaphor with clear reasoning for why it fits this specific content.
Goal: Ensure we can generate images, or provide graceful fallback.
echo "${GEMINI_API_KEY:+API key is configured}"
Skip to Phase 5.
Use AskUserQuestion:
question: "I need a Gemini API key to generate images. How do you want to proceed?"
header: "API Key"
options:
- label: "Set it up now (Recommended)"
description: "I'll guide you through getting a free key from Google AI Studio"
- label: "I have a key ready"
description: "Let me paste it or I've already exported it"
- label: "Skip for now"
description: "Just give me the prompt to use elsewhere"
Follow the guide in references/api-setup.md:
Display step-by-step instructions:
To get your Gemini API key:
1. Go to Google AI Studio: https://aistudio.google.com
2. Sign in with your Google account
3. Click "Get API Key" in the left sidebar
4. Click "Create API Key" and select a project (or create one)
5. Copy the generated key
Paste your API key below when ready.
After user provides key, save to .env:
echo "GEMINI_API_KEY=their-provided-key" > .env
Verify with a test:
source .env && curl -s "https://generativelanguage.googleapis.com/v1beta/models?key=${GEMINI_API_KEY}" | head -c 200
If verified, proceed to Phase 5.
Ask user to paste the key, then:
.envNo problem! I'll complete all the planning and give you a ready-to-use prompt.
You can:
- Paste the prompt into Google AI Studio, ChatGPT, or any image AI
- Come back later with `/infographic` after setting up your key
Continue through Phases 5-6, but output the prompt as text instead of calling the API.
Output: API key configured and verified, OR skip-generation path selected.
Goal: Gather specific details in manageable chunks with validation after each.
Use AskUserQuestion:
question: "Where should the title and text go?"
header: "Text placement"
options:
- label: "Title at top, visual below"
description: "Classic layout, title draws you in"
- label: "Title integrated with visual"
description: "More artistic, title becomes part of the design"
- label: "Minimal text, visual-first"
description: "Let the image do the talking"
Use AskUserQuestion:
question: "What should be the visual focus?"
header: "Hierarchy"
options:
- label: "One dominant element"
description: "Hero visual that draws the eye first"
- label: "Balanced weight"
description: "All elements equally important"
- label: "Progressive reveal"
description: "Eye moves from top to bottom naturally"
Checkpoint A: "Layout confirmed: [title placement], [hierarchy style]."
Use AskUserQuestion:
question: "How should the title look?"
header: "Title style"
options:
- label: "Bold & large"
description: "Makes a strong statement"
- label: "Elegant & thin"
description: "Sophisticated, refined"
- label: "Handwritten style"
description: "Personal, approachable"
- label: "All caps bold"
description: "Maximum impact"
Use AskUserQuestion:
question: "How much text on the infographic?"
header: "Text density"
options:
- label: "Minimal (3-5 labels)"
description: "Large text, maximum readability"
- label: "Moderate (5-8 labels)"
description: "Good balance of info and clarity"
- label: "Detailed (8+ labels)"
description: "More information, smaller text"
Checkpoint B: "Typography confirmed: [title style], [text density]."
Use AskUserQuestion:
question: "Border and frame treatment?"
header: "Border"
options:
- label: "Clean thin border"
description: "Neat, professional edge"
- label: "No border"
description: "Bleeds to the edge, modern feel"
- label: "Rounded corners"
description: "Softer, friendly appearance"
Use AskUserQuestion:
question: "Visual elements to include?"
header: "Elements"
options:
- label: "Simple icons"
description: "Line-style icons for visual interest"
- label: "Illustrations"
description: "Flat-style illustrations"
- label: "Just text and shapes"
description: "Clean, no decorative elements"
Checkpoint C: "Details confirmed: [border], [elements]."
Ask for:
Complete specification:
CONTENT:
- Title: "[exact title]"
- Subtitle: "[subtitle or none]"
- Labels: [list each]
LAYOUT:
- Platform: [platform] ([aspect ratio])
- Text placement: [choice]
- Visual hierarchy: [choice]
- Visual metaphor: [metaphor]
STYLE:
- Colors: [primary], [accent], [background]
- Font: [style]
- Tone: [tone]
- Title treatment: [choice]
- Text density: [choice]
- Border: [choice]
- Elements: [choice]
Ready to generate?
Output: Complete specification confirmed.
Goal: Craft the prompt, show it to the user, and generate the image.
Use the complete specification from Phase 5 and the prompt patterns from references/prompt-engineering.md to create a detailed generation prompt.
Include ALL specifications:
Here's the prompt I'll use to generate your infographic:
---
[Full prompt text]
---
Any tweaks before I generate?
Wait for user approval.
If API key is available, call Gemini:
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: ${GEMINI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"parts": [
{"text": "YOUR CRAFTED PROMPT HERE"}
]
}]
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -d > infographic-[topic-slug].png
Save with descriptive filename:
infographic-[topic-slug].pnginfographic-[topic-slug]-01.png, etc.Verify the file:
ls -la infographic-*.png
Show to user using Read tool
Output the crafted prompt with instructions:
Here's your ready-to-use prompt:
---
[Full prompt text]
---
To generate:
1. Go to Google AI Studio (aistudio.google.com)
2. Select "Gemini 2.5 Flash" model
3. Paste this prompt
4. Click Generate
Or use any image AI of your choice.
I've also saved this prompt to `infographic-prompt.txt` for later.
Save prompt to file:
cat > infographic-prompt.txt <<'EOF'
[Full prompt text]
EOF
Output: Image generated and displayed, OR prompt saved for manual use.
Goal: Get feedback and iterate on the image until the user is satisfied.
Use AskUserQuestion:
question: "Here's your infographic. What's your first reaction?"
header: "Reaction"
options:
- label: "Love it!"
description: "Maybe small tweaks, but the direction is right"
- label: "Good direction, needs changes"
description: "Core concept works, specific things to adjust"
- label: "Not quite right"
description: "Let's try a different approach"
- label: "Start over"
description: "Let's go back and try a different concept"
Use AskUserQuestion with multiSelect enabled:
question: "What would you like to change? (select all that apply)"
header: "Changes"
multiSelect: true
options:
- label: "Colors"
description: "Too dark/light, wrong tone, specific color issues"
- label: "Text"
description: "Wording, size, placement, or readability"
- label: "Layout"
description: "Arrangement, spacing, or composition"
- label: "Style"
description: "Too busy/simple, wrong visual feel"
If Colors selected:
question: "What's wrong with the colors?"
header: "Color fix"
options:
- label: "Make it lighter/brighter"
description: "Current palette feels too dark"
- label: "Make it bolder/richer"
description: "Colors feel washed out"
- label: "Wrong tone"
description: "Show me warmer/cooler alternatives"
- label: "Change specific color"
description: "I'll tell you which one"
If Text selected:
question: "What about the text?"
header: "Text fix"
options:
- label: "Title needs rewording"
description: "Change the title text"
- label: "Labels too long/short"
description: "Adjust the supporting text"
- label: "Text too small/large"
description: "Resize for readability"
- label: "Wrong placement"
description: "Move text to different position"
If Layout selected:
question: "What layout issue?"
header: "Layout fix"
options:
- label: "More whitespace"
description: "Feels too crowded"
- label: "Elements misaligned"
description: "Things don't line up right"
- label: "Wrong visual balance"
description: "Composition feels off"
If Style selected:
question: "What style issue?"
header: "Style fix"
options:
- label: "Too busy"
description: "Simplify the design"
- label: "Too simple"
description: "Add more visual interest"
- label: "Wrong visual feel"
description: "Doesn't match my brand/tone"
Follow the multi-turn editing process in references/image-editing.md:
Repeat Steps 7.1-7.3 until user says "Love it!" or confirms they're done.
Output: Final approved image(s).
Goal: Update the pattern bank with learned preferences for future sessions.
Look at the choices made during this session:
Use AskUserQuestion:
question: "I noticed some patterns in your preferences. What should I remember for next time?"
header: "Save"
options:
- label: "Save all preferences"
description: "Remember everything for faster sessions"
- label: "Save just brand/colors"
description: "Keep the visual identity, ask other questions"
- label: "Don't save anything"
description: "I prefer fresh choices each time"
- label: "Let me choose"
description: "I'll tell you what to remember"
If saving, update .infographic-patterns.json:
cat > .infographic-patterns.json <<'EOF'
{
"learnedPreferences": {
"titleStyle": "[from session]",
"textDensity": "[from session]",
"iconUsage": [true/false],
"colorTone": "[from session]",
"layoutStyle": "[from session]",
"whitespacePreference": "[from session]"
},
"commonChoices": {
"metaphors": ["[metaphors used]"],
"platforms": ["[platforms chosen]"],
"tones": ["[tones selected]"]
},
"feedback": [
{
"session": "[ISO-date]",
"liked": ["[what worked]"],
"changed": ["[what was adjusted]"]
}
],
"lastUpdated": "[ISO-8601-timestamp]"
}
EOF
Your infographic is ready!
Saved files:
- [filename.png] — your infographic
- .infographic-brand.json — your brand settings
- .infographic-patterns.json — your preferences (if saved)
[If series] I can generate the remaining [N] posts whenever you're ready. Just say "continue the series."
[If no API key] Your prompt is saved in infographic-prompt.txt. Once you have an API key, run `/infographic` again to generate.
Output: Session complete, files saved, preferences updated.
# Generate image
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: ${GEMINI_API_KEY}" \
-H "Content-Type: application/json" \
-d '{"contents": [{"parts": [{"text": "prompt"}]}]}'
# Edit image (multi-turn)
IMAGE_B64=$(base64 -i image.png)
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: ${GEMINI_API_KEY}" \
-H "Content-Type: application/json" \
-d "{\"contents\": [{\"parts\": [{\"inlineData\": {\"mimeType\": \"image/png\", \"data\": \"${IMAGE_B64}\"}}, {\"text\": \"Edit instructions\"}]}]}"
| File | Purpose |
|---|---|
.env | API key storage |
.infographic-brand.json | Brand colors, fonts, tone |
.infographic-patterns.json | Learned preferences |
infographic-[topic].png | Generated images |
infographic-prompt.txt | Saved prompts (no-key fallback) |
| Platform | Ratio | Pixels |
|---|---|---|
| 4:5 | 1080×1350 | |
| LinkedIn/Instagram | 1:1 | 1080×1080 |
| 16:9 | 1200×675 | |
| Presentation | 16:9 | 1920×1080 |
| Stories | 9:16 | 1080×1920 |
visual-reasoning.md)references/api-setup.md (opens in a new tab)references/css-extraction.md (opens in a new tab)references/gemini-image-api.md (opens in a new tab)references/image-editing.md (opens in a new tab)references/pattern-bank.md (opens in a new tab)references/prompt-engineering.md (opens in a new tab)references/style-guide.md (opens in a new tab)references/style-presets.md (opens in a new tab)references/visual-metaphors.md (opens in a new tab)references/visual-reasoning.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub agniiva/benai-marketplace --plugin infographic