mofa-infographic

star 10

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.

mofa-org By mofa-org schedule Updated 6/8/2026

name: mofa-infographic version: 0.5.0 description: "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." requires_bins: mofa requires_env: GEMINI_API_KEY

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

  • CLI flags, resolution & quality, output structure, mofa/config.json: docs/cli-flags.md.
  • API modes (rt vs batch), per-section timing, 10-minute timeout strategy, cached-section recovery: docs/api-modes-and-timing.md.
  • Telegram preferences flow + inline-keyboard example for picking style / sections / resolution: docs/interaction.md.

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

  • Each section ~15-30s. Keep sections ≤8 for a single call to stay inside the 600s tool timeout.
  • --api batch is 50% cheaper but 5-30 min — avoid in octos tool calls.
  • Cached sections (section-XX.png >10KB) are reused on rerun; delete to regenerate.
Install via CLI
npx skills add https://github.com/mofa-org/mofa-skills --skill mofa-infographic
Repository Details
star Stars 10
call_split Forks 10
navigation Branch main
article Path SKILL.md
More from Creator