infographic-generator
Skill2 starsChanged 41 days agoMITView on GitHub
Use this skill when the user provides a visual spec (JSON with palette, typography, coordinates, semantic colors) and needs editorial infographics rendered SVG->PNG at 2x resolution, or when assembling PNG banners into a .docx document from markdown content.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- Samueladewole/claude-skillstheir own version, first seen Oct 13, 2026
- vfarcic/dot-aitheir own version, first seen Oct 8, 2026
- jobottinkwork/claude-skillstheir own version, first seen Oct 8, 2026
- mashharuki/claude-code-sampletheir own version, first seen Oct 1, 2026
- wulaosiji/founder-skillstheir own version, first seen Sep 9, 2026
- wulaosiji/skillstheir own version, first seen Sep 9, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- Affitor/affiliate-skills★ 757same name
- vfarcic/dot-ai★ 336same name
- reymerekar7/rm-skills★ 37same name
- wulaosiji/skills★ 28same name
- wulaosiji/founder-skills★ 9same name
- GPTtang/skill-atlas★ 4same name
- mashharuki/claude-code-sample★ 1same name
- jobottinkwork/claude-skills★ 0same name
- konglong87/infographic-generator-skills★ 0same name
- Samueladewole/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 48
Always set lineRule explicitly in docx paragraph spacing:
- Very specific: line 59
When embedding images inline in docx, the paragraph's line height must accommodate the image height.
- Very specific: line 66
Place in fonts/ directory:
- Distinctive: line 75
Default: 2000×800 source pixels rendered at 2× pixel dimensions (4000×1600 PNG).
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Infographic Generator Skill
What this skill does
Renders editorial infographics from a JSON specification to SVG, then to PNG at 2× resolution (2000×800 default). Optionally assembles multiple PNG banners into a .docx document.
When to use
- User provides a visual spec with palette, typography, layout
- User needs a branded infographic for a report, article, or social post
- User wants to assemble multiple infographic banners into a Word document
Inputs
A JSON spec file with:
palette— hex colors:primary,secondary,accent,background,texttypography— font families and sizes fortitle,subtitle,body,monolayout— preset name:hero,donut,quick-card,comparisoncontent— structured data matching the layout presetdimensions— optional{width, height}(default 2000×800)
How to use
Render a single infographic
node scripts/render.js <spec.json> [output.png]Available presets (in scripts/templates.js)
- hero — full-width banner with title, subtitle, key metrics
- donut — donut chart with legend and callout stats
- quick-card — compact reference card with bullet points
- comparison — side-by-side comparison table
Assemble into .docx
node scripts/assemble-docx.js <markdown.md> <banner1.png> [banner2.png ...] output.docxCritical gotchas (MUST follow)
1. docx lineRule
Always set lineRule explicitly in docx paragraph spacing:
spacing: { before: 200, after: 200, lineRule: "exact", line: 240 }Without explicit lineRule, LibreOffice interprets line spacing as "exact" and clips inline images, causing title/subtitle overlay.
2. Unicode arrows break serif fonts
Gelasio (and similar Georgia replacements) does NOT have the glyph for →. The font rendering engine falls back to a sans-serif glyph, breaking the visual consistency of serif text runs.
Always use ASCII -> instead of → in any text rendered with Gelasio/serif fonts.
3. Image extent vs paragraph line height
When embedding images inline in docx, the paragraph's line height must accommodate the image height. Set the line height to match or exceed the image extent, or use floating positioning instead of inline.
4. Font family patching for weight matching
The renderer passes .ttf file paths to resvg-js through font.fontFiles. The files' internal family names and weights must match the SVG declarations. Merely renaming a file does not change its internal font metadata. The renderer does not register {family, weight, data} objects or load .woff2 files.
Optional custom fonts
Place in fonts/ directory:
Gelasio-Regular.ttf,Gelasio-Bold.ttf— serif, Georgia alternativeInter-Regular.ttf,Inter-SemiBold.ttf— sans-serif, UI fontDejaVuSansMono.ttf— monospace, for code/data
Download the fonts separately; this repository does not bundle them. System fonts provide fallback when the optional files are absent.
Output specs
- Default: 2000×800 source pixels rendered at 2× pixel dimensions (4000×1600 PNG); no print-DPI metadata is set
- Format: PNG (via resvg-js SVG rasterization)
- Color space: sRGB
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

