← 返回
未分类 Key 中文

Generate Image

Generate article companion images for the content factory pipeline. Use when Codex needs article images, infographic cards, inline visuals, or a PNG exported...
生成文章配图,用于内容工厂流水线。当需要文章图片、信息图卡片、内联视觉或PNG导出时使用。
abigale-cyber abigale-cyber 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 416
下载
💾 1
安装
1
版本
#latest

概述

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_provider
  • image_api_base
  • image_model

Write Output

Write the primary exported file to:

content-production/ready/<slug>-img-1.png

Respect Constraints

  • External image generation may fail because of network or API issues
  • The skill injects its own provider, base URL, and default model at runtime instead of changing the global md2wechat config
  • Users with an existing 香蕉制作平台 can use it directly
  • Users without one can open job.suxi.ai, generate an SK, place it into the token field, and log in
  • When fallback is used, the PNG is still valid but is a local placeholder-style information card
  • Treat content-production/ready/*.png as the executor's exported artifact; any workbench copy should be managed by wechat-studio, not by this skill

Read Related Files

  • Shared runtime: skills/generate-image/runtime.py
  • Pipeline entry: skill_runtime/engine.py
  • Visual workbench: skills/wechat-studio/frontend/server.py
  • Execution guide: docs/generate-image-execution-spec.md

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 06:27 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

WeChat Article Extractor

abigale-cyber
从微信官方公众号文章中提取元数据和内容。适用于需要解析微信文章链接(mp.weixin.qq.com)并提取文章信息的场景。
★ 0 📥 429
content-creation

Content System Humanizer Zh

abigale-cyber
在不改变事实、数据或原文的前提下,以克制的方式去除中文文本中明显的AI写作痕迹。用于Codex需要降低AI气味时。
★ 0 📥 658

News Collect

abigale-cyber
在 `skills/news-aggregator-skill` 中进行本地扫描,随后将结果规范化为本地报告合同,供收集层使用。当 Codex 需要...
★ 0 📥 440