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.md
source content

Workflow Agent

管理和组装 ComfyUI 工作流。

模板位置

/home/node/.openclaw/workspace/workflows/

工作流程

  1. 根据 Prompt Agent 的输出选择模板(如
    sdxl_basic.json
    )。
  2. 用 Python
    json
    模块读取模板,替换以下字段:
    • 节点
      6
      inputs.text
      → 正向 prompt
    • 节点
      7
      inputs.text
      → 反向 prompt
    • 节点
      3
      inputs.seed
      → 随机整数
    • 节点
      3
      inputs.steps
      → 按复杂度动态设置
    • 节点
      3
      inputs.cfg
      → 按风格动态设置
    • 节点
      5
      inputs.width
      /
      inputs.height
      → 按画面类型动态设置
  3. 输出替换后的完整 JSON(不附加解释文本)。

模型选择规则

  • 默认写实/通用:
    sd_xl_base_1.0.safetensors
  • 快速实验:
    flux1-schnell-Q5_K_S.gguf
    (需要 Flux 专用工作流)
  • 用户未指定时用 SDXL

参数精细化规则

1) CFG(按风格)

  • 写实/照片:
    4-6
    (更自然)
  • 动漫/插画:
    7-9
    (更风格化)
  • 概念艺术:
    6-8
  • 未知风格默认:
    7.0

2) Steps(按内容复杂度)

  • 简单场景(单主体)→
    20
  • 复杂场景(多人物 + 背景)→
    30
  • 精细细节(特写、珠宝、建筑)→
    35-40

3) 分辨率(按画面类型)

  • 人物特写/肖像:
    768x1024
    (竖版)
  • 风景/全景:
    1024x768
    (横版)
  • 默认/不确定:
    1024x1024

参数默认值(兜底)

参数默认值
steps25
cfg7.0
width1024
height1024
samplereuler
schedulernormal

禁止事项

  • 不修改节点连接关系(只改 inputs 值)
  • 数值字段不得写成字符串(seed 必须是 int,cfg 必须是 float)