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 位。

列表預設按累計下載量排序,也可按星標排序;詳情頁排名按累計下載量計算。

累計下載
6053
星標
5
全站下載量排名
#4,765
全站前 44% · 「AI 智慧體」前 40%
平台累計下載星標評論
ClawHub ↗54174-
SkillHub ↗60535—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

文件覆蓋節點間資料傳遞、觸發器、持久狀態、日誌以及重試與回滾。執行指令碼可能執行命令或影響外部系統;無人值守前應審查連線許可權、明確副作用,並確認冪等與回滾措施。 來源列出 jq、yq、curl、uuidgen 和 flock;應確認工具可用並保護憑據。

資料釋出於 2026-10-29

可以用來做什麼

  • 搭建多節點自動化流程
  • 複用連線和處理元件
  • 管理檢查點、日誌與失敗恢復

什麼時候用

  • 需要把重複任務組織為工作流時
  • 啟動自動執行前核對許可權、外部連線、重試策略和回滾方式

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

說明工作流系統的主要組成,並指出自動執行前需要檢查的風險。

月度資料趨勢

累計下載6053
1783407663692026-03 · 累計下載 20992026-05 · 累計下載 37912026-07 · 累計下載 47062026-08 · 累計下載 50422026-09 · 累計下載 53292026-10 · 累計下載 605326-0326-0926-10
星標5
3452026-03 · 星標 32026-05 · 星標 42026-07 · 星標 52026-08 · 星標 52026-09 · 星標 52026-10 · 星標 526-0326-0926-10

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。 該技能有同名的其他版本,調整前的資料歸屬當前下載量最大的這一個。

月份累計下載環比星標
2026-106053—5
2026-095329—5
2026-085042+7.1%5
2026-074706—5
2026-053791—4
2026-032099—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),按月更新。口徑說明見資料方法。