Mofa infographic

From mofa-org/mofa-skills · View interactive version

Mofa infographic is an AI agent skill from the GitHub repository mofa-org/mofa-skills. AI-generated infographics and visual posters. Triggers: infographic, poster, 信息图, 海报, data poster, visual summary, mofa infographic. Generates multi-section infographic via Gemini with optional Qwen-Edit refinement, stitched into a single tall image.

How to use this skill

Skill file

mofa-infographic

CLI: mofa infographic — generate multi-section infographic posters via Gemini, stitched vertically into a single tall PNG. Optional Qwen-Edit refinement (requires DASHSCOPE_API_KEY).

For LLM-facing discovery and routing, the manifest discovery card declares the hints below; this SKILL.md is the long-form reference loaded on demand.

Output paths (LOAD-BEARING)

Use RELATIVE paths. Never prefix skill-output/ yourself — the Octos host rebinds plugin output paths to <workspace>/skill-output/ automatically; a manual prefix double-prefixes and breaks delivery. Never use absolute paths like /tmp/poster.png.

mofa-infographic-<YYYYMMDD-HHMMSS>/poster.png
mofa-infographic-<YYYYMMDD-HHMMSS>/sections/

The out argument MUST be a relative path — the tool description repeats this. Absolute paths break the workspace contract and prevent the output from being delivered.

Built-in styles (4)

| --style | Best For |

|-----------|----------|

| cyberpunk-neon (default) | Tech, AI, data |

| editorial | Reports, articles, longform |

| clean-light | Business, consulting |

| multi-panel | Comparisons, multi-topic summaries |

Full style table, custom inline styles, and variants (header / normal / footer): see docs/styles.md.

Section JSON (top-level: array of section objects)

| Field | Required | Description |

|-------|----------|-------------|

| prompt | yes | Section content description (data, titles, visual elements) |

| variant | no | "header" / "normal" / "footer" (auto-detected by position) |

| refine_prompt | no | Qwen-Edit refinement instruction (needs --refine + DASHSCOPE_API_KEY) |

Full schema, prompt writing tips, and 4 worked examples (tech / business / editorial / batch): see docs/examples.md.

Quick reference

Minimal example

[
  {"prompt": "Header: 'Q3 Review' bold title, gradient background.", "variant": "header"},
  {"prompt": "3 KPI cards: Revenue $12.4M, NPS 72, Churn 2.1%."},
  {"prompt": "Footer: sources and credits.", "variant": "footer"}
]
mofa infographic --style clean-light --out review.png -i sections.json

Run notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.