A Claude Code skill that turns a topic into a branded "HOW X WORKS" educational infographic: a hand-drawn style diagram generated by Gemini, composited onto a branded HTML template, and screenshotted into a final PNG, plus a ready-to-post caption.
Built for backend / Java / system-design topics, but works for any technical concept.
- You give a topic (e.g. "Docker", "How Kafka Works").
- Claude fills a structured prompt and calls Gemini with three reference diagrams for style matching.
- The raw diagram is composited onto
assets/template.htmlwith your branding. - Playwright screenshots the page to a final PNG.
- A LinkedIn-style caption is written alongside it.
- Node.js 18+ (with
npx) - A Gemini API key: https://aistudio.google.com/apikey
- Claude Code (this is a skill; the workflow lives in
SKILL.md)
One line. Clones into ~/.claude/skills/infographic, installs dependencies (including the headless Chromium Playwright needs), and seeds .env:
curl -fsSL https://raw.githubusercontent.com/amigoscode/infographics-skill/main/install.sh | bashThen add your Gemini API key (get one at https://aistudio.google.com/apikey):
export GEMINI_API_KEY=... # or edit ~/.claude/skills/infographic/.envThat is it. Open Claude Code and ask for an infographic (see Usage).
Manual install
git clone https://github.com/amigoscode/infographics-skill.git ~/.claude/skills/infographic
cd ~/.claude/skills/infographic
npm install # installs deps + Chromium for Playwright
cp .env.example .env # then add your GEMINI_API_KEYThe first time the skill runs it asks you for:
- Footer text: the URL shown bottom-left (default
www.amigoscode.com) - Logo path: the wordmark shown bottom-center, also used as the top-left fallback icon for generic topics (default
assets/amigoscode-wordmark.svg)
Your answers are saved to config.json (git-ignored). To rebrand, drop your own SVG/PNG into assets/ and edit config.json:
{
"footerText": "www.yourdomain.com",
"logoPath": "assets/your-wordmark.svg",
"outputDir": "~/infographics"
}See config.example.json for the shape.
In Claude Code:
Create an infographic about how Docker works
or just name a topic. The final PNG and caption land in <outputDir>/How <Topic> Works/.
You can also run the generator directly:
npm run generate -- \
--ref assets/reference-rate-limiting.jpeg \
--ref assets/reference-linux-processes.jpeg \
--ref assets/reference-kafka.jpeg \
--prompt "<your prompt>" \
--output "~/infographics/How Docker Works/raw.png"infographic-skill/
├── SKILL.md # the skill workflow Claude follows
├── config.example.json # template for per-user config
├── .env.example # template for your API key
├── package.json
└── assets/
├── generate-diagram.ts # Gemini image generation
├── template.html # branded slide (placeholders)
├── caption-examples.md # caption hook patterns + examples
├── amigoscode-wordmark.svg # default brand logo (swap for your own)
└── reference-*.jpeg # style reference diagrams
The bundled amigoscode-wordmark.svg and reference-*.jpeg files are Amigoscode brand assets, included as working defaults. If you use this skill for your own content, replace them with your own logo (SVG or PNG) and references via config.json.
MIT. The Amigoscode name, logo, and reference images remain the property of Amigoscode; the MIT license covers the code and workflow, not the brand assets.
