LA

lingyichen-ai/workflow-skill

API development
144 stars Quality 40 Trend 40

Describe your workflow in one sentence, and get a complete workflow definition file ready to import into Coze, Dify, or ComfyUI — including node configuration, edges, layout, and all...

Overview

Describe your workflow in one sentence, and get a complete workflow definition file ready to import into Coze, Dify, or ComfyUI — including node configuration, edges, layout, and all...

README

Workflow Skill

中文 |

Generate importable workflow files from natural language descriptions.

Describe your workflow in one sentence, and get a complete workflow definition file ready to import into Coze, Dify, or ComfyUI — including node configuration, edges, layout, and all platform-specific format requirements.

Installation

git clone https://github.com/twwch/workflow-skill.git /tmp/workflow-skill
cp -r /tmp/workflow-skill/skills/coze-workflow ~/.claude/skills/
cp -r /tmp/workflow-skill/skills/dify-workflow ~/.claude/skills/
cp -r /tmp/workflow-skill/skills/comfyui-workflow ~/.claude/skills/


Coze Workflow

Generate .zip files for direct import into coze.cn via the UI import dialog.

Usage

/coze-workflow 创建一个金融研报自动生成工作流:5路并行数据采集 → 分章撰写 → 风控审核 → 发布

How it works

The skill generates a Python script using verified template functions, then runs it to produce a ZIP with byte-level Go archive/zip compatibility.

Import Result

Complex Workflow Generation

Cross-Border E-Commerce Workflow (Full)

Supported Node Types

start / end / llm / loop / plugin / variable_merge / image_generate / code / http / condition / intent / knowledge


Dify Workflow

Generate .dify.yml / .dify.json files for import into Dify via UI “Import DSL”.

Tracked Dify version: dify-api 1.13.3 · DSL 0.6.0 · source pinned at commit eca0cdc (2026-04-04). Schema rules and node references in skills/dify-workflow/ were last verified against this snapshot — bump it after pulling a newer source/dify/ and re-checking the node entity changes.

Usage

/dify-workflow 创建一个客服工单自动分类和回复工作流

AI Generate Workflow

Complex Workflow Generation

Supported Node Types

start / end / llm / code / http-request / if-else / iteration / knowledge-retrieval / variable-aggregator / template-transform / question-classifier / parameter-extractor / tool / answer


ComfyUI Workflow

Generate .json files (Litegraph format) for drag & drop into ComfyUI.

Usage

/comfyui-workflow 创建一个 Flux 文生图 + WAN2.1 图生视频工作流

AI Generate Workflow → Import ComfyUI → Run

Generated Output

Multi-Workflow Merge

Motion Transfer

Features

  • 34 built-in templates — covers all mainstream models and tasks
  • 360+ node definitions — extracted from ComfyUI source code
  • Auto model download — workflows include native models field for automatic missing model detection

Project Structure

workflow-skill/
├── .claude-plugin/
│   ├── plugin.json
│   └── marketplace.json
├── skills/
│   ├── coze-workflow/
│   │   ├── SKILL.md
│   │   ├── scripts/          # build_coze_zip.py + coze_yaml_builder.py
│   │   ├── examples/
│   │   └── references/
│   ├── dify-workflow/
│   │   ├── SKILL.md
│   │   ├── examples/
│   │   └── references/
│   └── comfyui-workflow/
│       ├── SKILL.md
│       ├── references/
│       └── templates/
├── images/
├── scripts/
└── README.md

Technical Details

Coze.cn ZIP Format

Discovered through byte-level reverse engineering (16 rounds of experiments):

Workflow--draft-/
├── MANIFEST.yml
└── workflow/-draft.yaml

Requirements: Go archive/zip compatible (flags=0x08, vmade=20, time/date=0x0000), 4-space YAML indentation, double-quoted IDs, complete 14-field llmParam.

Dify DSL Format

Standard Dify YAML DSL with version: "0.6.0", node IDs as 13-digit timestamps, {{#nodeId.variableName#}} variable references. Verified against dify-api 1.13.3 (commit eca0cdc, 2026-04-04). When upgrading dify, re-check:

  • api/services/app_dsl_service.pyCURRENT_DSL_VERSION
  • api/services/workflow_service.pyvalidate_graph_structure / validate_features_structure
  • api/tests/fixtures/workflow/*.yml for canonical node/edge shapes
  • graphon.nodes.* entity models (external package, pinned via api/pyproject.toml)

ComfyUI Litegraph Format

Standard Litegraph UI JSON with node definitions extracted from ComfyUI source, auto model download support via models array.

License

MIT

View this README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add lingyichen-ai/workflow-skill