agentleFS
jincaijincai/openclaw-skills/infographic/SKILL.md

infographic

Skill18 starsChanged 9 months agoMITView on GitHub

Generate professional infographic images from articles, tweets, or any structured content. Use this skill when the user asks to create an infographic, visual summary, knowledge card, or sharable image from an article or topic. Also triggers on: "生成信息图", "做张图", "总结成图片", "visual summary", "knowledge card", "shareable image for WeChat/social media". Produces high-DPI PNG images optimized for mobile viewing and social sharing (WeChat, Telegram, Twitter). NOT for: AI-generated art, photos, illustrations, or anything requiring image generation models.

7 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. ZJU-REAL/Easel★ 3.1ksame name
    2. claude-office-skills/skills★ 497same name
    3. CatCatUncle/openworkbuddy★ 259same name
    4. duncan-buildroom/profit-room-skills★ 18same name
    5. costiash/eliviz★ 7same name
    6. remybroun/infographic★ 3same name
    7. jack1415926/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.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create professional, mobile-friendly infographic images from structured content using HTML + Playwright screenshot.

    line 14
  2. Distinctive:

    Keep text concise — infographics are scannable, not readable.

    line 37
  3. Very specific:

    Create a single self-contained HTML file (no external dependencies).

    line 41
  4. Distinctive:

    No fixed height — content determines length, no wasted whitespace

    line 63
  5. Very specific:

    All CSS inline in <style> — no external files, no Google Fonts CDN

    line 66
  6. Distinctive:

    Use the design system reference for exact colors, spacing, and component HTML.

    line 76
  7. Distinctive:

    Use the bundled screenshot script:

    line 80

“Common” is measured: kept by at least 6 in 10 of the 4 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Infographic Skill

Create professional, mobile-friendly infographic images from structured content using HTML + Playwright screenshot.

When to Use

  • User shares an article/tweet and asks for an infographic or visual summary
  • User wants a shareable image for WeChat groups, Telegram, Twitter, etc.
  • User asks for a "knowledge card", "one-pager", or "visual breakdown"

Workflow

Article/Content → Extract Key Points → Design HTML → Screenshot (3x) → Deliver PNG

Step 1: Extract & Structure Content

Analyze the source material and identify:

  • Title (bilingual if applicable: Chinese primary, English subtitle)
  • Core thesis (1-2 sentence summary for callout box)
  • Main sections (3-7 sections, each with title + 1-3 bullet points)
  • Key insight or takeaway (for the dark bottom section)
  • Source attribution (author, platform, URL)

Keep text concise — infographics are scannable, not readable. If a section needs more than 3 short lines, split it.

Step 2: Design the HTML

Create a single self-contained HTML file (no external dependencies). Read {baseDir}/references/design-system.md for the full color palette, typography, and component library.

Page setup:

<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  width: 750px;
  background: #faf6f0;
  font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  padding: 44px 40px;
}
</style>
</head>

Key rules:

  • Width: always 750px (renders to 2250px at 3x — optimal for mobile)
  • No fixed height — content determines length, no wasted whitespace
  • Minimum font size: 12px (renders to 36px physical pixels at 3x)
  • Background: #faf6f0 (cream) or #fff — never transparent
  • All CSS inline in <style> — no external files, no Google Fonts CDN
  • Chinese font stack: -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif

Layout pattern (adapt to content):

  1. Header: badge + title + subtitle + divider
  2. Callout box: core thesis in yellow box with gold left border
  3. Content cards: numbered sections with colored accent circles
  4. Takeaway box: dark background, key conclusions
  5. Footer: source attribution + brand

Use the design system reference for exact colors, spacing, and component HTML.

Step 3: Screenshot with Playwright

Use the bundled screenshot script:

node {baseDir}/scripts/screenshot.js /tmp/infographic.html /path/to/output.png 3 750

Arguments: <input.html> <output.png> [scaleFactor=3] [viewportWidth=750]

The script automatically finds Playwright in the npx cache or global install.

If the script fails, use this inline approach:

NODE_PATH=$(find ~/.npm/_npx -name "index.mjs" -path "*/playwright/*" -exec dirname {} \; -exec dirname {} \; 2>/dev/null | head -1) \
node -e "
const pw = require('playwright');
(async () => {
  const browser = await pw.chromium.launch();
  const ctx = await browser.newContext({ viewport: { width: 750, height: 600 }, deviceScaleFactor: 3 });
  const page = await ctx.newPage();
  await page.goto('file:///tmp/infographic.html', { waitUntil: 'networkidle' });
  await page.locator('body').screenshot({ path: 'OUTPUT.png', type: 'png' });
  await browser.close();
})();
"

Never use npx playwright screenshot CLI — it doesn't support deviceScaleFactor and produces blurry 1x images.

Step 4: Deliver

Telegram delivery (lossless):

OpenClaw's message send routes .png files through Telegram's sendPhoto API, which compresses images to max 2048px on the longest side. To deliver the original high-res image, use sendDocument directly:

bash {baseDir}/scripts/send_telegram.sh /path/to/output.png "Caption text"

Or with the message tool if the platform doesn't compress (Discord, etc.), just send normally.

Other platforms: Most platforms preserve document uploads. Use the message tool with filePath for non-Telegram delivery.

Design Principles

  1. Scannable, not readable — if someone has to zoom in to read, there's too much text
  2. Visual hierarchy — title → callout → numbered cards → takeaway. Eyes should flow top-to-bottom naturally
  3. Consistent color coding — each section gets one accent color from the palette, don't mix randomly
  4. Mobile-first — 750px width at 3x = 2250px physical. Looks crisp on any phone
  5. Self-contained — single HTML file, no external resources, works offline

Customization

  • For English-only content: same layout, adjust font stack to include serif options
  • For data-heavy content: use the 2×2 grid pattern or horizontal bar charts in CSS
  • For comparison content: use side-by-side dark cards in the takeaway section
  • For longer articles (7+ sections): consider splitting into 2 images or using a more compact card style

Requirements

  • Node.js (any recent version)
  • Playwright with Chromium (npx playwright install chromium)
  • For Telegram lossless delivery: curl + bot token in ~/.openclaw/openclaw.json

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.