flow-step-development
仓库创建 2024年12月9日最近提交 6 小时前SkillHot 收录 5 小时前
▸ 精选理由
适合实现有分支路由的业务流程步骤与工作器逻辑。
这个 Skill 做什么
添加具有成功/失败/跳过分支的流程步骤,覆盖配置、执行与注册全生命周期。
添加能根据结果走不同分支(success/error/skip)的流程步骤,包含 flow-config、worker handler、builder viewer 和步骤注册的全生命周期。需要基于步骤结果路由到下一个节点时用,适合复杂流程编排。重点是按状态路由并有 beforeStep 钩子,保证每步返回的 status 决定下一步走向。
▸ 展开 SKILL.md 英文原文
Add new flow steps with state-based routing (success/error/skip). Covers the full lifecycle: flow-config schema, worker handler, builder viewer, and step registration. Use when creating any step that branches to a different node based on its outcome.
524
Stars
116
Forks
21
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/flow-step-development/SKILL.md或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ChatbotXIO/ChatbotX/main/.agents/skills/flow-step-development/SKILL.md"SKILL.MD 节选查看完整文件 ↗
# Flow Step Development
## Architecture Overview
A **step** is the unit of work inside a flow node. Steps execute sequentially within a node. After each step, the worker checks the result status and may route to a different node.
```
Node
├── beforeStep (optional)
└── steps[]
├── Step A → returns { status: "success" } → routes to connected node via state.id
├── Step B → returns { status: "error" } → routes to connected node via state.id
└── Step C → returns { status: "wait" } → pauses execution, resumes later
```
## State Design
States live **on the step**, not on the node. Each state has:
| Field | Purpose |
|-------|---------|
| `id` | React Flow **Handle ID** — uvia SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有