Generate Image
by @abigale-cyber
Generate article companion images for the content factory pipeline. Use when Codex needs article images, infographic cards, inline visuals, or a PNG exported...
clawhub install content-system-generate-imageπ About This Skill
name: generate-image description: Generate article companion images for the content factory pipeline. Use when Codex needs article images, infographic cards, inline visuals, or a PNG exported from an article markdown draft before preview or publishing.
Generate Image
Generate the image asset for an article draft as an independent executor. On ClawHub, this skill is published as content-system-generate-image.
Quick Start
Run the default command:
.venv/bin/python -m skill_runtime.cli run-skill generate-image --input content-production/drafts/ai-content-system-article.md
Prepare Source Article
Start from an article markdown draft that already has a stable title, structure, and core message. Use the article content to infer the primary visual theme and the most useful image role, such as header art, infographic card, or inline supporting visual.
The default remote image backend is:
provider: openai
api base: https://new.suxi.ai/v1
model: nano-nx
This is meant for the ι¦θη»εΎ endpoint, which is treated as an OpenAI-compatible image API.
Follow Generation Workflow
1. Read the article draft and extract the topic, tone, and the strongest visualizable idea.
2. Generate the preferred image through the shared runtime in skills/generate-image/runtime.py.
3. Fall back to the local infographic renderer when external generation fails or is unavailable.
4. Write the exported PNG to the pipeline output path. If wechat-studio is involved, let the workbench decide whether and how to ingest the result.
Per-article overrides are supported through Markdown frontmatter fields:
image_providerimage_api_baseimage_modelWrite Output
Write the primary exported file to:
content-production/ready/-img-1.png
Respect Constraints
md2wechat configSK, place it into the token field, and log incontent-production/ready/*.png as the executor's exported artifact; any workbench copy should be managed by wechat-studio, not by this skillRead Related Files
skills/generate-image/runtime.pyskill_runtime/engine.pyskills/wechat-studio/frontend/server.pydocs/generate-image-execution-spec.mdπ‘ Examples
Run the default command:
.venv/bin/python -m skill_runtime.cli run-skill generate-image --input content-production/drafts/ai-content-system-article.md