Install
openclaw skills install infographicGenerate high-density infographics with structured layout and style choices and bundled generation tooling. Use when the user asks to create an infographic, a visual summary, or a dense single-page information graphic.
openclaw skills install infographicinfographic)If you use reference images (image-to-image / series reference / consistency refs):
http:// may work but is insecure and can be blocked by some networks.data: URLs are not supported by the WeryAI gateway.This skill turns complex source material into a single high-density infographic.
Maintain the layout and style mapping when the bundled generation runtime updates, and re-check recent runtime behavior if a newer version changes prompt handling.
Script:
scripts/scaffold.tsscripts/build-prompt.tsscripts/build-batch.tshttps://api.weryai.com).IMAGE_GEN_API_KEY. The key is never printed. It may be persisted only when you explicitly run npm run setup -- --persist-api-key.https:// recommended). http:// may work but is insecure. Local file paths and data: URLs are rejected..image-skills/infographic/ (project) and/or ~/.image-skills/infographic/ (home).Not a good fit for:
layout: the information structurestyle: the visual languageSee:
| Script | Purpose |
|---|---|
scripts/scaffold.ts | Initialize analysis.md, structured-content.md, and prompts |
scripts/build-batch.ts | Generate batch.json from prompt variants |
scripts/build-prompt.ts | Build final prompt from structured-content.md |
npm run generate | Generate the infographic |
./scripts/vendor/compression-runtime/scripts/main.ts | Compress output for delivery |
Create the working directory and starter files:
${BUN_X} {baseDir}/scripts/scaffold.ts \
--output-dir infographic/topic-slug \
--topic "Topic name" \
--lang en
This creates:
analysis.mdstructured-content.mdprompts/infographic.mdExtract:
Save the result to analysis.md, using:
Before selecting the final layout and style, rewrite the material into structured-content.md:
This step should make titles, sections, labels, and data points explicit.
layout and styleDefault priorities:
layout: bento-gridstyle: infographicRecommended rules:
linear-progressionbinary-comparisonhierarchical-layersbento-griddense-modulesIf the user explicitly asks for a specific visual direction, follow that preference.
batch.json for VariantsIf you want to explore multiple infographic directions, place multiple prompt files in prompts/, for example:
01-technical.md02-minimal.md03-bold.mdThen generate a batch file:
${BUN_X} {baseDir}/scripts/build-batch.ts \
--prompts infographic/topic-slug/prompts \
--output infographic/topic-slug/batch.json \
--images-dir infographic/topic-slug \
--model "$M" \
--jobs 3
The script reads Style direction: and Aspect ratio: from each prompt file when possible, then maps them into generation task fields.
Convert structured-content.md into the final prompt:
${BUN_X} {baseDir}/scripts/build-prompt.ts \
--structured-content infographic/topic-slug/structured-content.md \
--output infographic/topic-slug/prompts/infographic.md \
--audience "product teams" \
--style technical-schematic \
--aspect 4:3 \
--lang en
This keeps the prompt synchronized with the structured content instead of rewriting it by hand.
The bundled image runtime currently exposes one structured style argument, --style, so:
style to --stylelayout, labels, hierarchy, and information relationships into the prompt body3:4, 4:3, or 16:9 depending on content shapeRecommended mapping:
| infographic style | runtime --style |
|---|---|
craft-handmade | watercolor |
chalkboard | chalk |
corporate-memphis | flat-illustration |
technical-schematic | infographic |
bold-graphic | poster |
storybook-watercolor | watercolor |
retro-pop-grid | poster |
minimal | editorial |
Use references/prompt-template.md and make sure to:
On first use in a new project, run npm run ensure-ready -- --project <your-project> --workflow infographic from this skill directory before generation. This reads the doctor report and auto-runs bootstrap if local script dependencies are still missing. If the report shows a missing IMAGE_GEN_API_KEY and the user approves, run npm run setup -- --project <your-project> --workflow infographic --persist-api-key when the key is already in env, or persist it to .image-skills/infographic/.env on the user's behalf, then continue without leaving this workflow.
When this skill is first connected, tell the user that the default generation model is Nano Banana 2 (GEMINI_3_1_FLASH_IMAGE). Also tell them it can be switched later whenever another model fits the task better.
${BUN_X} {baseDir}/npm run generate \
--promptfiles prompts/infographic.md \
--style infographic \
--image infographic/topic-slug/infographic.png \
--ar 3:4 \
-m "$M"
Batch example:
${BUN_X} {baseDir}/npm run generate \
--batchfile infographic/topic-slug/batch.json \
--jobs 3
If the user has not chosen a model yet, follow this skill's model-selection rules first.
Suggested output directory:
infographic/<topic-slug>/
Suggested minimum files:
analysis.mdstructured-content.mdprompts/infographic.mdbatch.jsoninfographic.pngscaffold.ts on an existing directory overwrites analysis.md, structured-content.md, and the starter prompt files.build-prompt.ts overwrites the target prompt file each time it runs.build-batch.ts overwrites batch.json.--image path overwrites the existing infographic output.batch.json, re-running the batch regenerates all listed variants unless you remove the ones you want to keep.analysis.md, structured-content.md, and prompts/infographic.md exist in the output directory.layout / style / aspect.When the user wants changes after seeing the generated infographic:
layout in structured-content.md and rebuild the prompt. Try a different layout pattern.style / --style, re-generate.structured-content.md, rebuild prompt with build-prompt.ts, re-generate.prompts/, batch-generate to compare layouts and styles.Infographics are single-image outputs, so each iteration only re-generates one image.
When the infographic is ready:
${BUN_X} {baseDir}/./scripts/vendor/compression-runtime/scripts/main.ts infographic/topic-slug/infographic.png -f webp -q 85
If multiple variants were generated via batch, show all of them and let the user pick the best one.
Internal checklist (for agent): layout / style / aspect, information division, model, text language, compression done.