← 返回 Skills 市场
berthelol

Infographic creator socials

作者 berthelol · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
30
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install infographic-creator
功能描述
Generate modern operator-style social-media infographics (Twitter, LinkedIn, Instagram) using OpenAI gpt-image-2. Use this skill whenever the user wants to m...
使用说明 (SKILL.md)

Infographic generator

A pipeline for producing branded, operator-style infographics for social media. The design system is reverse-engineered from top product creators on LinkedIn — the look is clean grid structure + handwritten annotations + flanking emojis + signed footer. Outputs are ready for Twitter, LinkedIn, or Instagram.

The skill renders via OpenAI gpt-image-2 using the images.edit endpoint so the user's logos, screenshots, and avatar are honored as visual references rather than hallucinated.


What this skill produces

  • Single-image infographics in 4:5 portrait, 1:1 square, or 16:9 landscape
  • Consistent visual identity across posts via a saved theme color + avatar
  • 12 layout templates (L1–L12) covering comparisons, before/after, stage flows, ranked lists, hero charts, framework grids, cheat sheets, ladders, myth/truth, process grids, visual metaphors, and annotated screenshots
  • Reusable prompt patterns so each new piece takes ~5 minutes from idea to PNG

Project layout

When the skill is first used in a project, it creates a working directory:

infographics/
├── style.json          # active theme (filled at runtime: accent color, handle, avatar path)
├── assets/             # logos, screenshots, avatar (user-supplied)
├── outputs/            # rendered PNGs
└── prompts/            # one .py file per generated piece, kept for re-rendering

If this directory already exists, reuse the existing style.json (don't re-ask theme questions every session).


The 5-step workflow — always follow

When the user asks for a new infographic, run these steps in order. Don't shortcut.

Step 1 — Find the idea

If the user gave a clear topic, skip ahead. Otherwise:

  • Surface 3–5 candidate ideas as a short table (idea title, why it'll resonate, suggested layout, suggested format).
  • Pull from what you know about the user's work, recent context, or industry. Avoid generic ideas — specificity drives engagement.
  • Recommend ONE pick with reasoning. Wait for confirmation.

Step 2 — Select layout + format

Pick one layout from references/style-guide.md (L1–L12). Justify briefly.

Then pick a Twitter/LinkedIn format:

Format gpt-image-2 size When to use
4:5 portrait 1024x1536 Default. Dense data — comparison tables, cheat sheets, ranked lists. Highest engagement.
1:1 square 1024x1024 Single hero metaphor, hooks, hero charts. Punchy in-feed.
16:9 landscape 1536x1024 Process flows, timelines, before/after spreads.

Rotation rule: if the user is producing a series, alternate formats across posts to break feed monotony. Don't ship 5 portraits in a row.

Step 3 — Enrich with logos + images

Identify every brand, tool, or person mentioned in the idea. For each:

  1. Brand favicons via Google's favicon service:

    https://www.google.com/s2/favicons?domain=DOMAIN&sz=128
    

    This is the most reliable logo source. Download with curl -sL \x3Curl> -o assets/\x3Cname>.png.

  2. SVG-only logos: convert to PNG with cairosvg:

    pip3 install cairosvg --break-system-packages --quiet
    python3 -c "import cairosvg; cairosvg.svg2png(url='in.svg', write_to='out.png', output_width=512)"
    
  3. User avatar: ask the user once for a photo path; copy into assets/avatar.png and reference in style.json.

  4. Verify each PNG visually with the Read tool before proceeding. If a favicon came back as a generic globe (domain has no favicon), warn the user and either skip the logo or ask for an alternate URL.

Step 4 — Copywriting (ask the user)

The visual quality is bounded by the copy quality. Ask 3–5 targeted questions to fill the prompt. Tailor them to the chosen layout. Examples:

  • Title (≤6 words, declarative or metaphorical) — what's the punch?
  • Subtitle (handwritten line, one conversational sentence)
  • Section/row labels specific to the layout (e.g. for L1: column headers + 5–7 row criteria)
  • The takeaway (closing one-line rule that goes in the cream callout box)
  • Tone: declarative / contrarian / playful / operator-honest

Do NOT generate copy yourself. Wait for the user. Their voice is the differentiator — the moment you write the copy, the post sounds AI-generated.

Step 5 — Generate

  1. Compose the prompt: open references/prompt-templates.md, pick the right layout template, fill in all {{...}} placeholders with the user's confirmed copy, accent color, and reference image filenames.
  2. Save the prompt as a .py file in infographics/prompts/\x3Cslug>.py so it's re-runnable.
  3. Render via gpt-image-2: call scripts/generate.py (see that file for the exact API contract).
  4. Read the output with the Read tool and show it to the user inline.
  5. Note any rendering issues + offer one tightening pass (e.g. "Hostinger logo came out fuzzy — want me to swap to a cleaner source?").

Style invariants — never break these

These are what make the output look intentional rather than AI-slop. Skipping any one of them dilutes the whole brand.

  1. Accent color carries the piece. Frame, accent words in the title, handwritten subtitle, hand-drawn arrows — all use the user's chosen accent. Read style.json for the active hex; if not yet set, ask the user.

  2. Two emojis flank the title (top-left + top-right). One literal, one emotional. Use 3D Apple-style emojis, never flat ones.

  3. Handwritten subtitle in a darker shade of the accent color (~25% darker), Caveat or Patrick Hand font. One sentence, conversational.

  4. Footer signature pill: black rounded pill at bottom-center, small circular avatar (from assets/avatar.png) on the left, the user's handle on the right. Anchors the brand.

  5. Closing panel is mandatory. Every piece ends with either a cream callout box ("rule of thumb"), a mint "final insight" panel, or a handwritten one-liner. Never end on raw data.

  6. Use images.edit, not images.generate. This is what lets reference logos and the avatar be honored. generate will hallucinate them.

  7. Don't say "purple" (or any color word) verbally in the prompt if it conflicts with the chosen accent hex. Models weight words higher than hex codes. Always describe the accent as the actual color word the user picked, AND include the hex.


Worked example — comparison infographic

User says: "Make a comparison infographic of Linear vs Jira."

Step 1 — Idea is clear. Skip to step 2.

Step 2 — Layout: L1 (comparison table) — head-to-head naturally maps to a table. Format: 4:5 portrait for density. Confirm with user.

Step 3 — Fetch logos:

curl -sL "https://www.google.com/s2/favicons?domain=linear.app&sz=128" -o assets/linear.png
curl -sL "https://www.google.com/s2/favicons?domain=atlassian.com&sz=128" -o assets/jira.png

Read both back to confirm they look right.

Step 4 — Ask:

  • Title (≤6 words): your suggestion?
  • Subtitle (handwritten, one line): the human take
  • 5–7 comparison rows: which dimensions matter (speed, pricing, integrations, learning curve, mobile, ...)
  • Takeaway: which side you actually pick + why
  • Tone: declarative / contrarian / playful?

Step 5 — Compose the L1 prompt from references/prompt-templates.md, fill in placeholders, save to infographics/prompts/linear-vs-jira.py, render at 1024x1536, show output, note quirks.


Pitfalls to avoid

  • Color word/hex conflict — if the user picks #006EFF (blue), don't leave the word "purple" or "violet" anywhere in the prompt. The model weights words higher than hex codes.
  • Text density above ~12 cells — gpt-image-2 starts garbling. Shorten cell copy or split into two posts.
  • Brand-name moderation — celebrity names, "Tesla", "Apple" (and other major brands sometimes) trip the safety system on images.edit. If you get a moderation_blocked error, swap the brand reference for a generic descriptor and retry.
  • SVG logos — gpt-image-2 won't accept them. Always convert to PNG first.
  • Outer frame missing — gpt-image-2 frequently drops the top edge of the outer accent frame. If a clean frame matters, composite it in Figma post-render (5 min job). Don't burn iterations chasing it.
  • Tiny favicon source — Google's favicon API sometimes returns a 32px image. The model can still use it as a reference but the rendered logo may look fuzzy. Try &sz=256 first; if still small, source from the brand's press kit.
  • Avatar drift — gpt-image-2 will sometimes alter the avatar photo. If brand consistency matters, composite the real avatar over the rendered output in Figma.

Reference files

When you need details, read these:

  • references/style-guide.md — full visual rules: 12 layouts (L1–L12), color tokens, typography, recurring motifs, tone of writing
  • references/prompt-templates.md — fill-in-the-blank prompt scaffolds, one per layout
  • references/style.json — machine-readable design tokens, runtime-edited to record the user's theme

When the user has used this skill before

  • Don't re-ask their theme color or handle — read infographics/style.json from their project.
  • Reuse logos already in assets/ (don't re-fetch).
  • Ask if they want to keep the same format as last post (rotation rule) or switch.

When to recommend Figma post-processing

Image-2 is great for the layout + composition but has known weak spots:

  • Pixel-perfect outer frames
  • Brand logos at small sizes (favicons under 64px)
  • Specific typography (forcing a real font like Inter)
  • Avatar fidelity

If any of these matter for a high-stakes post (launch announcement, sponsored content), generate the layout in image-2, then do a 5-minute touch-up in Figma to composite real logos + avatar + frame. Tell the user when that's worth doing.

安全使用建议
Before installing, be comfortable providing an OpenAI API key and sending chosen avatars, screenshots, or logos to OpenAI for rendering. Use a virtual environment for any Python dependencies, and periodically review the local infographics folder because it may retain prompts and personal branding assets.
功能分析
Type: OpenClaw Skill Name: infographic-creator Version: 1.0.0 The skill is classified as suspicious due to a path traversal vulnerability in `scripts/generate.py`. The `render` function joins the `assets_dir` with `reference_images` filenames using the `Path` `/` operator; if an absolute path is provided as a filename, it resolves to that absolute path, allowing the script to read arbitrary files (e.g., `~/.ssh/id_rsa` or `~/.aws/credentials`) and send them to the OpenAI `images.edit` API endpoint. While the instructions in `SKILL.md` and the design templates in `references/` appear legitimate and focused on infographic generation, this vulnerability could be leveraged via prompt injection to exfiltrate sensitive data.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
The stated purpose, SKILL.md workflow, and generate.py code align around creating social-media infographics with OpenAI image generation. The noteworthy capability is expected use of an OpenAI API key and external image API.
Instruction Scope
The workflow stays within infographic creation, asks the user for copy and avatar input, and does not contain evidence of goal hijacking, hidden instructions, or deceptive stopping conditions.
Install Mechanism
Registry-level requirements list no required env vars or binaries, while SKILL.md declares OPENAI_API_KEY, python3, curl, and pip dependencies. The setup is purpose-aligned but under-declared at the registry level, and the cairosvg install example uses --break-system-packages.
Credentials
The skill creates an infographics workspace, downloads favicon/logo assets, and writes generated PNG outputs. These actions are proportionate to the purpose, but users should expect local file writes and outbound requests.
Persistence & Privilege
The skill persists style.json, assets, outputs, and prompts for reuse. There is no evidence of background persistence, privilege escalation, or autonomous activity outside the requested infographic workflow.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install infographic-creator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /infographic-creator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the infographic generator skill for modern, branded social-media visuals. - Full five-step pipeline: idea selection, layout picking, asset enrichment (logos/avatars), user-driven copywriting, and graphic rendering using OpenAI's gpt-image-2. - Supports 12 operator-style templates and outputs in 4:5, 1:1, or 16:9 ratios for Twitter, LinkedIn, and Instagram. - Consistent visual identity via user-chosen accent, avatar, and signature styling. - Enriches graphics with brand logos and favicons, prevents generic AI-image looks. - Preserves prompts and project assets for easy re-rendering and series consistency.
元数据
Slug infographic-creator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Infographic creator socials 是什么?

Generate modern operator-style social-media infographics (Twitter, LinkedIn, Instagram) using OpenAI gpt-image-2. Use this skill whenever the user wants to m... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 30 次。

如何安装 Infographic creator socials?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install infographic-creator」即可一键安装,无需额外配置。

Infographic creator socials 是免费的吗?

是的,Infographic creator socials 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Infographic creator socials 支持哪些平台?

Infographic creator socials 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Infographic creator socials?

由 berthelol(@berthelol)开发并维护,当前版本 v1.0.0。

💬 留言讨论