{"slug":"generating-infographics","title":"generating-infographics","summary":"Use when creating infographics, data visualizations, process diagrams, timelines, or comparisons - generates branded infographics using @antv/infographic with 114 templates across 7 categories. Triggers on \"create infographic\", \"make infographic\", \"visualize data\", \"timeline\", \"p","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-11-10T18:22:18.26247Z","repo":{"url":"https://github.com/camoa/claude-skills","stars":32,"forks":6,"license":"MIT","updatedAt":"2026-11-10T03:29:18Z"},"bodyHtml":"<hr>\n<h2>name: generating-infographics\ndescription: Use when creating infographics, data visualizations, process diagrams, timelines, or comparisons - generates branded infographics using @antv/infographic with 114 templates across 7 categories. Triggers on \"create infographic\", \"make infographic\", \"visualize data\", \"timeline\", \"process diagram\".\nversion: 2.9.1\nallowed-tools: Read, Write, Glob, Bash\nuser-invocable: false</h2>\n<h1>Generating Infographics</h1>\n<p>Generate branded infographics with custom themes and backgrounds using @antv/infographic.</p>\n<h2>Prerequisites</h2>\n<ol>\n<li>Run <code>/brand-init</code> to create project structure</li>\n<li>Run <code>/brand-extract</code> to generate brand-philosophy.md</li>\n<li>Run <code>/template-infographic</code> to create an infographic template</li>\n</ol>\n<h3>No-Brand Safeguard</h3>\n<p>If <code>brand-philosophy.md</code> is not found OR contains no <code>## Color Palette</code> section:</p>\n<ul>\n<li><strong>STOP generation</strong> — inform user: \"No brand colors found. Run <code>/brand-extract</code> first to analyze your brand.\"</li>\n<li>If user insists on proceeding: use deliberately bland neutrals (#1a1a1a, #666, #f5f5f5, system fonts)</li>\n<li>Never fall back to any recognizable brand colors</li>\n</ul>\n<h2>When to Use</h2>\n<ul>\n<li>\"Create an infographic\"</li>\n<li>\"Make a process diagram\"</li>\n<li>\"Visualize this data\"</li>\n<li>\"Create a timeline\"</li>\n<li>\"Show comparison infographic\"</li>\n<li>NOT for: Charts/graphs (use charting library), presentations (use visual-content skill)</li>\n</ul>\n<h2>Commands</h2>\n<table>\n<thead>\n<tr>\n<th>Command</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>/template-infographic</code></td>\n<td>Create infographic template</td>\n</tr>\n<tr>\n<td><code>/infographic</code></td>\n<td>Generate infographic (guided)</td>\n</tr>\n<tr>\n<td><code>/infographic-quick</code></td>\n<td>Generate infographic (fast)</td>\n</tr>\n</tbody>\n</table>\n<h2>Template Categories (114 Total)</h2>\n<table>\n<thead>\n<tr>\n<th>Category</th>\n<th>Count</th>\n<th>Use Cases</th>\n<th>Icons</th>\n<th>Illustrated</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Sequence</td>\n<td>43</td>\n<td>Timelines, steps, processes, roadmaps</td>\n<td>✓ (2)</td>\n<td>✓ (5)</td>\n</tr>\n<tr>\n<td>List</td>\n<td>23</td>\n<td>Features, grids, pyramids, sectors</td>\n<td>✓ (4)</td>\n<td>✓ (1)</td>\n</tr>\n<tr>\n<td>Hierarchy</td>\n<td>25</td>\n<td>Org charts, tree structures</td>\n<td>—</td>\n<td>—</td>\n</tr>\n<tr>\n<td>Compare</td>\n<td>17</td>\n<td>VS, before/after, SWOT</td>\n<td>—</td>\n<td>—</td>\n</tr>\n<tr>\n<td>Quadrant</td>\n<td>3</td>\n<td>2x2 matrices</td>\n<td>—</td>\n<td>✓ (1)</td>\n</tr>\n<tr>\n<td>Relation</td>\n<td>2</td>\n<td>Networks, connections</td>\n<td>✓ (1)</td>\n<td>—</td>\n</tr>\n<tr>\n<td>Chart</td>\n<td>1</td>\n<td>Bar charts</td>\n<td>—</td>\n<td>—</td>\n</tr>\n</tbody>\n</table>\n<h2>Template Asset Types</h2>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>Count</th>\n<th>Identifier</th>\n<th>Data Format</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Text-only</strong></td>\n<td>100+</td>\n<td>(default)</td>\n<td><code>{ \"label\": \"Cloud\", \"desc\": \"Infrastructure\" }</code></td>\n</tr>\n<tr>\n<td><strong>Icon-based</strong></td>\n<td>8</td>\n<td><code>icon</code> in name</td>\n<td><code>{ \"label\": \"icon:rocket\", \"desc\": \"Fast\" }</code></td>\n</tr>\n<tr>\n<td><strong>Illustrated</strong></td>\n<td>9</td>\n<td><code>-illus</code> suffix</td>\n<td><code>{ \"label\": \"Step 1\", \"desc\": \"Discovery\", \"illus\": \"step-1\" }</code></td>\n</tr>\n</tbody>\n</table>\n<p><strong>Recommendation:</strong> Start with text-only templates. Illustrated templates require custom image files.</p>\n<h3>Illustrated Template Workflow</h3>\n<p>When using <code>-illus</code> templates:</p>\n<ol>\n<li>Content includes <code>illus</code> field referencing image filename</li>\n<li>Supported formats: SVG (recommended), PNG, JPG</li>\n<li>Options: provide your own images, find icons, or use placeholders</li>\n<li>Images stored with infographic output: <code>infographics/{date}-{name}/illustrations/</code></li>\n<li>See <code>references/illustrations.md</code> for detailed workflow</li>\n</ol>\n<h2>Text Guidelines (Avoiding Overlap)</h2>\n<table>\n<thead>\n<tr>\n<th>Element</th>\n<th>Max</th>\n<th>Good</th>\n<th>Bad</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Labels</td>\n<td>1-2 words</td>\n<td>\"Cloud\"</td>\n<td>\"Cloud Computing Services\"</td>\n</tr>\n<tr>\n<td>Descriptions</td>\n<td>2-4 words</td>\n<td>\"Infrastructure design\"</td>\n<td>\"Complete infrastructure design and implementation\"</td>\n</tr>\n</tbody>\n</table>\n<p>If overlap occurs: shorten text, use wider canvas (1200px+), or use column/grid templates.</p>\n<h2>Quick Reference</h2>\n<table>\n<thead>\n<tr>\n<th>Task</th>\n<th>How</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Generate infographic</td>\n<td><code>node generate.js --config config.json --data '{...}' --output output.png</code></td>\n</tr>\n<tr>\n<td>Set background</td>\n<td><code>--background \"spotlight-dots\"</code></td>\n</tr>\n<tr>\n<td>SVG output</td>\n<td><code>--format svg</code></td>\n</tr>\n</tbody>\n</table>\n<h2>Background Presets</h2>\n<p>Layered presets (gradient + pattern) include <code>spotlight-dots</code> (recommended),\n<code>spotlight-grid</code>, <code>diagonal-crosshatch</code>, <code>tech-matrix</code>. Simple presets include\n<code>spotlight</code>, <code>diagonal-fade</code>, <code>top-down</code>, <code>subtle-dots</code>, <code>tech-grid</code>,\n<code>crosshatch</code>, <code>solid</code>. Full effect descriptions and custom background\nconfiguration: <code>references/backgrounds.md</code>.</p>\n<h2>Workflow</h2>\n<h3>1. Create Template (once)</h3>\n<pre><code>/template-infographic\n</code></pre>\n<p>Select: category → design → palette → background → style</p>\n<h3>2. Generate Infographic (repeat)</h3>\n<pre><code>/infographic-quick\n</code></pre>\n<p>Select template → paste content → name → get PNG</p>\n<h2>Accessibility &amp; Readability (MANDATORY)</h2>\n<p><strong>These checks are NON-NEGOTIABLE before generating any infographic.</strong></p>\n<h3>Contrast Validation (WCAG AA)</h3>\n<table>\n<thead>\n<tr>\n<th>Requirement</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Minimum contrast ratio</td>\n<td><strong>4.5:1</strong> for all text</td>\n</tr>\n<tr>\n<td>Large text (title)</td>\n<td>3:1 acceptable</td>\n</tr>\n<tr>\n<td>Standard</td>\n<td>WCAG 2.1 AA</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Key principle:</strong> Palette colors are for SHAPES and FILLS, not text. Text needs explicit high-contrast colors.</p>\n<h3>Text Color Rules by Background</h3>\n<table>\n<thead>\n<tr>\n<th>Background Type</th>\n<th>Title Fill</th>\n<th>Description Fill</th>\n<th>Label Fill</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Dark</strong> (spotlight-dots, tech-matrix)</td>\n<td>White or near-white (WCAG &gt;= 4.5:1)</td>\n<td>White at ~85% opacity</td>\n<td>White or near-white</td>\n</tr>\n<tr>\n<td><strong>Light</strong> (solid, subtle-dots)</td>\n<td>Near-black (WCAG &gt;= 4.5:1)</td>\n<td>Dark gray</td>\n<td>Near-black</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Never use palette colors for text</strong> - they're for decorative shapes only.</p>\n<h3>Spacing &amp; Balance Rules</h3>\n<table>\n<thead>\n<tr>\n<th>Element</th>\n<th>Requirement</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Item spacing</strong></td>\n<td>Minimum 20px between items</td>\n</tr>\n<tr>\n<td><strong>Edge margins</strong></td>\n<td>Never touch canvas edges (min 5% padding)</td>\n</tr>\n<tr>\n<td><strong>Text truncation</strong></td>\n<td>Labels 1-2 words, descriptions 2-4 words</td>\n</tr>\n<tr>\n<td><strong>Visual balance</strong></td>\n<td>Equal spacing between similar elements</td>\n</tr>\n</tbody>\n</table>\n<h3>Pre-Generation Checklist</h3>\n<pre><code>□ All text has 4.5:1 contrast against background\n□ Labels are 1-2 words (no overlap risk)\n□ Descriptions are 2-4 words\n□ Content fits template capacity (check item limits)\n□ Dark bg → white text, Light bg → dark text\n□ No text touching edges\n□ colorBg derived from brand-philosophy.md, not from skill defaults\n□ colorPrimary derived from brand-philosophy.md, not from skill defaults\n□ Colors traced to brand-philosophy.md (not copied from reference docs or runtime fallbacks)\n□ font-family from brand-philosophy.md, not a generic default\n□ Text colors WCAG-validated against actual background\n</code></pre>\n<p><strong>If ANY check fails, DO NOT generate. Fix the content or config first.</strong></p>\n<h3>Config by Background Type</h3>\n<p>Set <code>title</code>/<code>desc</code>/<code>item</code> text fills by background brightness — dark\nbackgrounds need white/near-white text, light backgrounds need near-black.\n<strong>Never use palette colors for text</strong> — they are for decorative shapes only.\nReady-to-adapt dark-bg and light-bg config JSON is in <code>references/theming.md</code>\n§ Text Fill by Background Type. The <code>/template-infographic</code> command generates\ncorrect configs from your brand-philosophy.md.</p>\n<h2>Data Structure by Type</h2>\n<p>Content JSON shape depends on the template category — Sequence/List use a flat\n<code>items</code> array of <code>label</code>+<code>desc</code>; Compare and Hierarchy nest <code>children</code>. Full\nJSON examples per category: <code>references/templates.md</code> § Data Structure by Type.</p>\n<h2>Common Mistakes</h2>\n<table>\n<thead>\n<tr>\n<th>Mistake</th>\n<th>Fix</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>Text overlapping</td>\n<td>Shorten labels (1-2 words), descriptions (2-4 words)</td>\n</tr>\n<tr>\n<td>Missing illustrations</td>\n<td>Check template ends in <code>-illus</code>, provide SVG/PNG/JPG files</td>\n</tr>\n<tr>\n<td>Icon not showing</td>\n<td>Use <code>icon:name</code> syntax, only for icon templates</td>\n</tr>\n<tr>\n<td>Background not applied</td>\n<td>Pass <code>--background</code> flag to generate.js</td>\n</tr>\n<tr>\n<td>Text invisible on light bg</td>\n<td>Add explicit <code>title</code>/<code>desc</code>/<code>item</code> fills with dark colors (#1A202C, #4A5568)</td>\n</tr>\n<tr>\n<td>Pastel text unreadable</td>\n<td>Palette colors are for shapes only; text needs high contrast (~4.5:1)</td>\n</tr>\n</tbody>\n</table>\n<h2>References</h2>\n<ul>\n<li><code>references/templates.md</code> - Complete 114 template catalog with asset requirements</li>\n<li><code>references/theming.md</code> - Theme configuration details</li>\n<li><code>references/backgrounds.md</code> - Background customization guide</li>\n<li><code>references/icons.md</code> - Available icons for icon-based templates</li>\n<li><code>references/illustrations.md</code> - Illustrated template workflow and SVG requirements</li>\n</ul>\n<h2>Module Structure</h2>\n<pre><code>lib/\n├── renderer.js       # Main entry point\n├── dom-setup.js      # JSDOM environment\n├── infographic.js    # Infographic creation\n├── exporter.js       # SVG/PNG export\n├── backgrounds.js    # Gradient/pattern backgrounds\n└── icons.js          # Icon utilities\n</code></pre>\n","files":[{"path":"ACKNOWLEDGEMENTS.md","sizeBytes":2107,"isText":true},{"path":"generate.js","sizeBytes":12192,"isText":true},{"path":".gitignore","sizeBytes":30,"isText":false},{"path":"lib/backgrounds.js","sizeBytes":19462,"isText":true},{"path":"lib/dom-setup.js","sizeBytes":3006,"isText":true},{"path":"lib/exporter.js","sizeBytes":5175,"isText":true},{"path":"lib/icons.js","sizeBytes":5876,"isText":true},{"path":"lib/illustrations.js","sizeBytes":6451,"isText":true},{"path":"lib/infographic.js","sizeBytes":5045,"isText":true},{"path":"lib/prompt-generator.js","sizeBytes":8765,"isText":true},{"path":"lib/renderer.js","sizeBytes":2329,"isText":true},{"path":"lib/validation.js","sizeBytes":6121,"isText":true},{"path":"package.json","sizeBytes":532,"isText":true},{"path":"package-lock.json","sizeBytes":110462,"isText":true},{"path":"prompts/data-prompt-template.md","sizeBytes":4006,"isText":true},{"path":"references/backgrounds.md","sizeBytes":5019,"isText":true},{"path":"references/icons.md","sizeBytes":3188,"isText":true},{"path":"references/illustrations.md","sizeBytes":7403,"isText":true},{"path":"references/templates.md","sizeBytes":9637,"isText":true},{"path":"references/theming.md","sizeBytes":5512,"isText":true},{"path":"SKILL.md","sizeBytes":8190,"isText":true},{"path":"test.js","sizeBytes":4379,"isText":true},{"path":"WORKFLOW.md","sizeBytes":9964,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-11-10T18:23:04.076766Z","sha256":"6190EF545293AB4E8131DC2C985C6C4A9A3C3738B857713C24F3251886042362","sizeBytes":72796},"review":null,"source":{"repositoryUrl":"https://github.com/camoa/claude-skills","path":"brand-content-design/skills/infographic-generator","license":"MIT","commit":"c73ba2a2a322813b7fb9d6e4a08285bf5c87dea4","subtreeSha":"3F371EE31B8B4312C09EB1AFF1AD8E0DD9B1A0EFF9C9C27D8397851CE8AB5A85","lastSyncedAt":"2026-11-10T18:22:06.443791Z"},"reviewedAt":"2026-11-10T18:24:15.889995Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/camoa/claude-skills/tree/main/brand-content-design/skills/infographic-generator"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install camoa-claude-skills@llmmart"},{"target":"git","command":"git clone https://github.com/camoa/claude-skills.git"}]}