Iván

Workflow

AI 智能体v1.0.0
作者:Iván更新于 2026-05-17workflow@clawhub_ivangdavila/workflow
工作流编排

据 AlphaMoat 统计,截至 2026-10,Workflow 累计下载 6,053 次、获 5 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 4,765 位,在「AI 智能体」分类(1,632 个)中排名第 644 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
6,053
星标
5
全站下载量排名
#4,765
全站前 44% · 「AI 智能体」前 40%
平台累计下载星标评论
ClawHub ↗5,4174-
SkillHub ↗6,0535—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档覆盖节点间数据传递、触发器、持久状态、日志以及重试与回滚。运行脚本可能执行命令或影响外部系统;无人值守前应审查连接权限、明确副作用,并确认幂等与回滚措施。 来源列出 jq、yq、curl、uuidgen 和 flock;应确认工具可用并保护凭据。

资料发布于 2026-10-29

可以用来做什么

  • 搭建多节点自动化流程
  • 复用连接和处理组件
  • 管理检查点、日志与失败恢复

什么时候用

  • 需要把重复任务组织为工作流时
  • 启动自动运行前核对权限、外部连接、重试策略和回滚方式

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

说明工作流系统的主要组成,并指出自动运行前需要检查的风险。

月度数据趋势

累计下载6,053
1,7834,0766,3692026-03 · 累计下载 2,0992026-05 · 累计下载 3,7912026-07 · 累计下载 4,7062026-08 · 累计下载 5,0422026-09 · 累计下载 5,3292026-10 · 累计下载 6,05326-0326-0926-10
星标5
3452026-03 · 星标 32026-05 · 星标 42026-07 · 星标 52026-08 · 星标 52026-09 · 星标 52026-10 · 星标 526-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。 该技能有同名的其他版本,调整前的数据归属当前下载量最大的这一个。

月份累计下载环比星标
2026-106,053—5
2026-095,329—5
2026-085,042+7.1%5
2026-074,706—5
2026-053,791—4
2026-032,099—3

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.7 KB · ClawHub v1.0.0
---
name: Workflow
slug: workflow
version: 1.0.0
description: Build automated pipelines with reusable components, data flow between nodes, and state management.
metadata: {"clawdbot":{"emoji":"⚡","requires":{"bins":["jq","yq","curl","uuidgen","flock"]},"os":["linux","darwin"]}}
---

## Architecture
展开全部(共 97 行)
Workflows live in `workflows/` with components and flows:

```
workflows/
├── index.md                 # Inventory with tags
├── components/
│   ├── connections/         # Auth configs
│   ├── nodes/               # Reusable operations
│   └── triggers/            # Event sources
└── flows/{name}/
    ├── flow.md              # Definition
    ├── config.yaml          # Parameters
    ├── run.sh               # Executable
    ├── state/               # Persistent between runs
    └── logs/
```

## Quick Reference

| Topic | File |
|-------|------|
| Directory layout, naming, formats | `structure.md` |
| Data passing between nodes | `data-flow.md` |
| Cursor, seen set, checkpoint | `state.md` |
| Retry, rollback, idempotency | `errors.md` |
| Connections, nodes, triggers | `components.md` |
| Create, test, update, archive | `lifecycle.md` |

## Requirements

- **jq** — JSON processing
- **yq** — YAML config parsing
- **curl** — HTTP requests
- **flock** — Lock files to prevent concurrent runs
- Secrets in macOS Keychain (`security find-generic-password`)

## Data Storage

- **Location:** `workflows/` in workspace root
- **State:** `flows/{name}/state/` — cursor.json, seen.json, checkpoint.json
- **Logs:** `flows/{name}/logs/` — JSONL per run
- **Data:** `flows/{name}/data/` — intermediate files between nodes

## Core Rules

### 1. Data Flow Pattern
Each node writes output to `data/{NN}-{name}.json`. Next node reads it.
```bash
curl ... > data/01-fetch.json
jq '...' data/01-fetch.json > data/02-filter.json
```
Breaking this pattern = nodes can't communicate.

### 2. Error Declaration
Every node in flow.md MUST declare:
- **On error:** retry(N) | fail | continue | alert
- **On empty:** skip | continue | fail

Undefined behavior = unpredictable workflow.

### 3. Lock Files
Prevent concurrent runs:
```bash
LOCKFILE="/tmp/workflow-${NAME}.lock"
exec 200>"$LOCKFILE"
flock -n 200 || exit 0
```

### 4. State Files
| File | Purpose |
|------|---------|
| cursor.json | "Where did I leave off?" |
| seen.json | "What have I processed?" |
| checkpoint.json | "Multi-step recovery" |

### 5. Component Reuse
Before creating new connections/nodes/triggers:
```bash
ls workflows/components/connections/
ls workflows/components/nodes/
```
Use existing. Update "Workflows Using This" when adding.

---

**Related:** For LLM-driven multi-phase processes, see the `cycle` skill.

「AI 智能体」分类下的热门技能

Iván 的其他技能

相关榜单

看看同类产品的完整排名:

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。