name: skill-image description: "触发词:生成架构图/场景图/插图。走API出白底PNG,自动读Key,¥0.3-0.5/张。" version: 2.0.0 author: Yuyang001 (FmodeAgent) license: MIT platforms: [linux]
自动读取(按优先级):
FMODE_API_KEY~/.fmode/config.json api_key~/.fmode/config.yaml.env 文件自带 scripts/gen.py 可独立运行,不依赖 Hermes。
示例 prompt:
纯白背景扁平风格架构图。标题"内容营销超级预审Agent Harness架构"。
从上到下五层:L1宣称定级→L2规则匹配→L3案例类比→L4决策门→L5风险评级。
右侧三个数据卡片。底部三大本体模块。右下Loop闭环。
简洁扁平商务风格。纯白背景适合PPT。
示例 prompt:
扁平插画场景。一个法务团队围坐在堆满文件的办公桌前,
桌上电脑显示67%退审率。人物表情焦虑。
清新明亮风格。
| 用途 | 尺寸 | 成本 |
|---|---|---|
| PPT大图/架构 | 1792×1024 | ¥0.5 |
| PPT小图/插画 | 1024×1024 | ¥0.3 |
| 卡片/图标 | 1024×1024 | ¥0.3 |
| 封面/海报 | 1792×1024 | ¥0.5 |
| 模式 | 尺寸 | Token | 单价 | 8张总价 |
|---|---|---|---|---|
| 架构图 | 1792×1024 | ~3,500 | ¥0.5 | ¥4.0 |
| 场景图 | 1024×1024 | ~2,000 | ¥0.3 | ¥2.4 |
from hermes_tools import terminal
terminal('python3 skills/skill-image/scripts/gen.py --arch "内容营销预审Agent Harness架构" case01')
terminal('python3 skills/skill-image/scripts/gen.py --scene "法务团队被海量稿件淹没" legal-scene')
python3 /path/to/skill-image/scripts/gen.py --arch "内容营销预审Agent Harness架构" my-arch
python3 /path/to/skill-image/scripts/gen.py --scene "营销团队在开会" team-meeting
export SKILL_IMAGE_OUTPUT=/my/project/images
python3 gen.py --arch "..." out
from scripts.gen import gen_arch, gen_scene, batch_arch
# 单张
path = gen_arch('内容营销预审Agent Harness架构...', 'case01')
# 场景
path = gen_scene('医生在电脑前分析健康数据的场景', 'doctor-scene')
# 批量
batch_arch([('case01','prompt1'), ('case02','prompt2')])