GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - amigoscode/infographics-skill

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SKILL.md
SKILL.md
 
 
config.example.json
config.example.json
 
 
install.sh
install.sh
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

Infographic Skill

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.

Example topics: Docker, Kafka, Rate Limiting

How it works

  1. You give a topic (e.g. "Docker", "How Kafka Works").
  2. Claude fills a structured prompt and calls Gemini with three reference diagrams for style matching.
  3. The raw diagram is composited onto assets/template.html with your branding.
  4. Playwright screenshots the page to a final PNG.
  5. A LinkedIn-style caption is written alongside it.

Requirements

  • 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)

Install

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 | bash

Then add your Gemini API key (get one at https://aistudio.google.com/apikey):

export GEMINI_API_KEY=...        # or edit ~/.claude/skills/infographic/.env

That 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_KEY

First-run branding (onboarding)

The 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.

Usage

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"

Project layout

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

A note on branding

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.

License

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.

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

13 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.