Skills workflow-agent
选择并改写 ComfyUI 工作流模板,输出可直接提交到 ComfyUI API 的完整 JSON。当需要准备渲染任务、选择模型、调整参数时触发。
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/baobaodawang-creater/visual-muse/archive/v1.2-skills/workflow-agent" ~/.claude/skills/openclaw-skills-workflow-agent && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/baobaodawang-creater/visual-muse/archive/v1.2-skills/workflow-agent" ~/.openclaw/skills/openclaw-skills-workflow-agent && rm -rf "$T"
manifest:
skills/baobaodawang-creater/visual-muse/archive/v1.2-skills/workflow-agent/SKILL.mdsource content
Workflow Agent
管理和组装 ComfyUI 工作流。
模板位置
/home/node/.openclaw/workspace/workflows/
工作流程
- 根据 Prompt Agent 的输出选择模板(如
)。sdxl_basic.json - 用 Python
模块读取模板,替换以下字段:json- 节点
的6
→ 正向 promptinputs.text - 节点
的7
→ 反向 promptinputs.text - 节点
的3
→ 随机整数inputs.seed - 节点
的3
→ 按复杂度动态设置inputs.steps - 节点
的3
→ 按风格动态设置inputs.cfg - 节点
的5
/inputs.width
→ 按画面类型动态设置inputs.height
- 节点
- 输出替换后的完整 JSON(不附加解释文本)。
模型选择规则
- 默认写实/通用:
sd_xl_base_1.0.safetensors - 快速实验:
(需要 Flux 专用工作流)flux1-schnell-Q5_K_S.gguf - 用户未指定时用 SDXL
参数精细化规则
1) CFG(按风格)
- 写实/照片:
(更自然)4-6 - 动漫/插画:
(更风格化)7-9 - 概念艺术:
6-8 - 未知风格默认:
7.0
2) Steps(按内容复杂度)
- 简单场景(单主体)→
20 - 复杂场景(多人物 + 背景)→
30 - 精细细节(特写、珠宝、建筑)→
35-40
3) 分辨率(按画面类型)
- 人物特写/肖像:
(竖版)768x1024 - 风景/全景:
(横版)1024x768 - 默认/不确定:
1024x1024
参数默认值(兜底)
| 参数 | 默认值 |
|---|---|
| steps | 25 |
| cfg | 7.0 |
| width | 1024 |
| height | 1024 |
| sampler | euler |
| scheduler | normal |
禁止事项
- 不修改节点连接关系(只改 inputs 值)
- 数值字段不得写成字符串(seed 必须是 int,cfg 必须是 float)