guwidoe

Lobster

AI 智慧體v1.0.1
作者:guwidoe更新於 2026-05-17共 2 個版本 · 最新版本釋出於 2026-01-29lobster@clawhub_guwidoe/lobster
任務自動化工作流編排工具呼叫#Json

據 AlphaMoat 統計,截至 2026-09,Lobster 累計下載 4,899 次、獲 3 個星標,在全部 5,078 個 AI 技能中排名第 1,905 位,在「AI 智慧體」分類(969 個)中排名第 356 位。

累計安裝
159
累計下載
4899
星標
3
全站排名
#1,905
全站前 38% · 「AI 智慧體」前 37%
平台累計安裝累計下載星標評論
ClawHub ↗159489922
SkillHub ↗15747263—

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

這個技能是做什麼的

可編排多步驟自動化、監控、型別化 JSON 處理和批次操作,並在產生副作用前暫停等待審核。寬泛的 shell 執行可能影響當前工作區;應限制憑據範圍和狀態目錄,並在執行前審閱工作流。 需要 Node.js 與實際本機路徑下審核固定的 Lobster;審核僅在已設定位置暫停,須核實每個副作用步驟均有關卡。設定專案專用 LOBSTER_STATE_DIR,CLAWD_URL/CLAWD_TOKEN 僅選用 Clawdbot 分支需用,保護 token 與恢復狀態。

資料釋出於 2026-10-27

可以用來做什麼

  • 執行帶審核的多步驟流程
  • 按型別化流程處理資料

什麼時候用

  • 需要確定性步驟並要求副作用前審核時

示例提示詞

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

先擬定工作流並標出需審核的環節,不要執行。
使用專案專屬狀態目錄,並說明會儲存哪些資料。

月度資料趨勢

累計下載4899
3781438249822026-05 · 累計下載 38642026-06 · 累計下載 40742026-07 · 累計下載 44932026-08 · 累計下載 47402026-09 · 累計下載 489926-0526-09
星標3
2332026-05 · 星標 22026-06 · 星標 22026-07 · 星標 32026-08 · 星標 32026-09 · 星標 326-0526-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094899—3
2026-084740+5.5%3
2026-074493+10.3%3
2026-064074+5.4%2
2026-053864—2

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

4.0 KB · ClawHub v1.0.1
---
name: lobster
description: >
  Lobster workflow runtime for deterministic pipelines with approval gates.
  Use when: (1) Running multi-step automations that need human approval before side effects,
  (2) Monitoring PRs/issues for changes, (3) Processing data through typed JSON pipelines,
  (4) Email triage or batch operations, (5) Any workflow that should halt and ask before acting.
  Lobster saves tokens by running deterministic pipelines instead of re-planning each step.
---
展開全部(共 141 行)
# Lobster

> **Contribute:** Source code & PRs welcome at [github.com/guwidoe/lobster-skill](https://github.com/guwidoe/lobster-skill)

Workflow runtime for AI agents — typed pipelines with approval gates.

## CLI Location

```bash
# Set alias (adjust path to your install location)
LOBSTER="node /home/molt/clawd/tools/lobster/bin/lobster.js"

# Or install globally: npm install -g @clawdbot/lobster
# Then use: lobster '<pipeline>'
```

## Quick Reference

```bash
# Run pipeline (human mode - pretty output)
$LOBSTER '<pipeline>'

# Run pipeline (tool mode - JSON envelope for integration)
$LOBSTER run --mode tool '<pipeline>'

# Run workflow file
$LOBSTER run path/to/workflow.lobster

# Resume after approval
$LOBSTER resume --token "<token>" --approve yes|no

# List commands/workflows
$LOBSTER commands.list
$LOBSTER workflows.list
```

## Core Commands

| Command | Purpose |
|---------|---------|
| `exec --json --shell "cmd"` | Run shell, parse stdout as JSON |
| `where 'field=value'` | Filter objects |
| `pick field1,field2` | Project fields |
| `head --n 5` | Take first N items |
| `sort --key field --desc` | Sort items |
| `groupBy --key field` | Group by key |
| `dedupe --key field` | Remove duplicates |
| `map --wrap key` | Transform items |
| `template --text "{{field}}"` | Render templates |
| `approve --prompt "ok?"` | **Halt for approval** |
| `diff.last --key "mykey"` | Compare to last run (stateful) |
| `state.get key` / `state.set key` | Read/write persistent state |
| `json` / `table` | Render output |

## Built-in Workflows

```bash
# Monitor PR for changes (stateful - remembers last state)
$LOBSTER "workflows.run --name github.pr.monitor --args-json '{\"repo\":\"owner/repo\",\"pr\":123}'"

# Monitor PR and emit message only on change
$LOBSTER "workflows.run --name github.pr.monitor.notify --args-json '{\"repo\":\"owner/repo\",\"pr\":123}'"
```

## Approval Flow (Tool Mode)

When a pipeline hits `approve`, it returns:

```json
{
  "status": "needs_approval",
  "requiresApproval": {
    "prompt": "Send 3 emails?",
    "items": [...],
    "resumeToken": "eyJ..."
  }
}
```

To continue:
```bash
$LOBSTER resume --token "eyJ..." --approve yes
```

## Example Pipelines

```bash
# List recent PRs, filter merged, show as table
$LOBSTER 'exec --json --shell "gh pr list --repo owner/repo --json number,title,state --limit 20" | where "state=MERGED" | table'

# Get data, require approval, then process
$LOBSTER run --mode tool 'exec --json --shell "echo [{\"id\":1},{\"id\":2}]" | approve --prompt "Process these?" | pick id | json'

# Diff against last run (only emit on change)
$LOBSTER 'exec --json --shell "gh pr view 123 --repo o/r --json state,title" | diff.last --key "pr:o/r#123" | json'
```

## Workflow Files (.lobster)

YAML/JSON files with steps, conditions, and approval gates:

```yaml
name: pr-review-reminder
steps:
  - id: fetch
    command: gh pr list --repo ${repo} --json number,title,reviewDecision
  - id: filter
    command: jq '[.[] | select(.reviewDecision == "")]'
    stdin: $fetch.stdout
  - id: notify
    command: echo "PRs needing review:" && cat
    stdin: $filter.stdout
    approval: required
```

Run: `$LOBSTER run workflow.lobster --args-json '{"repo":"owner/repo"}'`

## Clawdbot Integration

Lobster can call Clawdbot tools via `clawd.invoke`:

```bash
$LOBSTER 'clawd.invoke --tool message --action send --args-json "{\"target\":\"123\",\"message\":\"hello\"}"'
```

Requires `CLAWD_URL` and `CLAWD_TOKEN` environment variables.

## State Directory

Lobster stores state in `~/.lobster/state/` by default. Override with `LOBSTER_STATE_DIR`.

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。