Token导航 LogoToken导航

Agent Skill · 开发

swarm-layer(群体层)

swarm-layer 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

swarm-layer 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 3,990。

总安装 9,408周安装 436GitHub Stars 1下载 3,296核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
0.5.2

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:swarm-layer(群体层)
来源仓库:https://github.com/xucheng/swarm-layer
安装命令:
openclaw skills install swarm-layer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install swarm-layer

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

swarm-layer 提供规范驱动的工作流编排与自动驾驶控制平面。支持会话持久化与手动回退机制,保障多代理协作稳定性。适用于 OpenClaw 生态内复杂任务分解与资源调度管理。安装前请确认是否具备进程监控与日志收集系统接入权限。建议配置告警阈值以防止异常任务占用过多计算资源。

swarm-layer 属于开发类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install swarm-layer;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

swarm-layer 怎么安装?

在终端执行 openclaw skills install swarm-layer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

swarm-layer 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

swarm-layer 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

swarm-layer 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

swarm-layer 用的人多吗?

公开数据是累计安装 9,408 次,近一周安装 436 次,下载 3,296 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

swarm-layer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
swarm-layer

群体层 · 本页

9,4081需要联网MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
swarm-layer
description
OpenClaw Swarm Layer: spec-driven workflow orchestration with ACP-first execution, supervised autopilot control plane, manual fallback, persistent sessions, review gates, automatic retry, parallel dispatch, reject-retry workflows, ACP concurrency protection, harness patterns, cross-session continuity, and operator reporting. Covers setup, operation, diagnosis, and reporting.

OpenClaw Swarm Layer

Turn workflow specifications into executable task graphs. Dispatch tasks through manual fallback or ACP automation. Supervise execution through an optional autopilot control plane. Track execution via persistent sessions with reuse and thread binding. Gate completion with review approval. Auto-retry on failure. Generate reports to local disk and Obsidian.

Current release baseline: openclaw-swarm-layer@0.5.2, validated on OpenClaw 2026.4.26 with manual review/report smoke and live ACP session smoke.

What It Does

  • Spec-driven planning — Write a Markdown spec with goals and phased tasks → generates a dependency-ordered task graph
  • Multi-runner execution — Manual (operator-driven safe fallback) and ACP (default-capable automation path)
  • Session management — Persistent sessions with binding-key reuse, thread-bound follow-up, and steering messages
  • Review gates — Tasks require explicit approve/reject; structured quality rubrics for weighted multi-dimension scoring
  • Sprint contracts — Negotiated verifiable acceptance criteria per task with automated evaluator injection (GAN-inspired pattern)
  • Cross-session continuity — Progress summary synthesis, bootstrap startup sequence, harness assumption tracking
  • Protective guardrails — Task field immutability guard, session budget control (duration + retries)
  • Automatic retry — Configurable per-task retry policy with dead letter tracking for exhausted tasks
  • Concurrency protection — ACP session concurrency limits with queued task scheduling (FIFO)
  • Reject-retry workflow — Review rejections return tasks to ready for re-run; configurable retry limits
  • Parallel dispatch — --parallel N and --all-ready batch dispatch with concurrency-aware slot management
  • Autopilot control plane — Supervised status/start/pause/resume/stop/tick flows with lease-backed decisions and degraded-mode holds
  • Operator reports — Status snapshots, run logs, review logs, spec archives, completion summaries → local + Obsidian sync

What It Does NOT Do

  • Not a distributed multi-node orchestrator — single machine, single project
  • Not a CI/CD pipeline — no git push, PR creation, or deployment automation
  • Not an autonomous PR factory — operator stays in the loop for review decisions

Install

Three installation paths:

ClawHub (skill only):

openclaw skills install swarm-layer

ClawHub package (full plugin):

openclaw plugins install clawhub:openclaw-swarm-layer

npm (full plugin):

npm install openclaw-swarm-layer
openclaw plugins install -l node_modules/openclaw-swarm-layer

GitHub (source):

git clone https://github.com/xucheng/openclaw-swarm-layer.git
cd openclaw-swarm-layer && npm install && npm run build
openclaw plugins install -l /path/to/openclaw-swarm-layer

After install, verify: openclaw plugins info openclaw-swarm-layer should show Status: loaded.

End-to-End Example

# 1. Initialize
openclaw swarm init --project /tmp/my-project

# 2. Write a spec
cat > /tmp/my-project/SPEC.md << 'EOF'
# Feature Build
## Goals
- Implement and test the new feature
## Phases
### Implement
- Write the core logic
### Test
- Run unit tests
EOF

# 3. Plan
openclaw swarm plan --project /tmp/my-project --spec /tmp/my-project/SPEC.md
# → specId: feature-build, taskCount: 2

# 4. Execute first task
openclaw swarm run --project /tmp/my-project --runner acp
# → action: dispatched, runId: implement-task-1-run-...

# 5. Poll until complete
openclaw swarm session status --project /tmp/my-project --run <runId>
# → status: completed

# 6. Approve
openclaw swarm review --project /tmp/my-project --task <taskId> --approve
# → status: done

# 7. Execute next task, repeat steps 4-6

# 8. View report
openclaw swarm report --project /tmp/my-project

Links

  • GitHub: https://github.com/xucheng/openclaw-swarm-layer
  • npm: https://www.npmjs.com/package/openclaw-swarm-layer
  • Docs: https://github.com/xucheng/openclaw-swarm-layer/tree/main/docs
  • Issues: https://github.com/xucheng/openclaw-swarm-layer/issues
  • ClawHub: https://clawhub.ai/skills/swarm-layer

Module Router

Determine which module to use based on what the user needs:

User IntentModuleKey Commands
Install, configure, initializeSetupplugins install, doctor, init
Plan, execute, review, session opsOperateplan, run, review, session *
Supervised automation controlOperateautopilot status/start/pause/resume/stop/tick
Something broken, stuck, or failingDiagnosedoctor, session status/cancel/cleanup
Check progress, read reportsReportstatus, report, session list/inspect

When unsure, start with openclaw swarm status --project . to assess the situation.


Setup

When to Use

First-time install, ACP configuration, project initialization, or config troubleshooting.

Flow

1. Prerequisites

node --version     # >= 22
openclaw --version # >= 2026.3.22

The 0.5.2 release was smoke-tested on OpenClaw 2026.4.26.

2. Install Plugin

openclaw plugins install clawhub:openclaw-swarm-layer   # Published package
openclaw plugins install -l /path/to/openclaw-swarm-layer
openclaw plugins info openclaw-swarm-layer   # Should show Status: loaded

3. Configure ACP Public Path

{
  "plugins": { "entries": { "openclaw-swarm-layer": { "config": {
    "defaultRunner": "auto",
    "acp": {
      "enabled": true,
      "defaultAgentId": "codex",
      "allowedAgents": ["codex"],
      "defaultMode": "run"
    }
  }}}}
}

4. Verify

openclaw swarm doctor --json
# severity should be "healthy" or "warning", not "blocked"

5. Initialize Project

openclaw swarm init --project .

6. Optional: Obsidian Sync + Journal

{
  "obsidianRoot": "/path/to/vault/reports",
  "journal": {
    "enableRunLog": true,
    "enableReviewLog": true,
    "enableSpecArchive": true,
    "enableCompletionSummary": true
  }
}

Setup Troubleshooting

  • Plugin not loading → openclaw plugins info openclaw-swarm-layer
  • ACP unavailable → openclaw swarm doctor --json, confirm public ACP export readiness and runner resolution
  • Legacy bridge config warning → remove bridge.acpFallbackEnabled after confirming ACP public path is ready

Operate

When to Use

Plan and execute workflows, manage sessions, complete review cycles.

Core Loop

Write Spec → Plan → Status → Run → Poll Session → Review → Repeat

Write a Spec

# My Workflow
## Goals
- What to achieve
## Phases
### Phase 1
- Task A
- Task B

Plan → Run → Review

openclaw swarm plan --project . --spec SPEC.md      # Import and generate tasks
openclaw swarm status --project .                     # See what's ready
openclaw swarm run --project . --dry-run              # Preview
openclaw swarm run --project . --runner acp           # Execute (acp/manual)
openclaw swarm run --project . --parallel 3           # Dispatch up to 3 ready tasks
openclaw swarm run --project . --all-ready             # Fill all available concurrency slots
openclaw swarm session status --project . --run <id>  # Poll until complete
openclaw swarm review --project . --task <id> --approve
openclaw swarm review --project . --task <id> --reject --retry-now  # Reject and force retry

Autopilot Control Plane

openclaw swarm autopilot status --project .           # Health + last decision
openclaw swarm autopilot start --project .            # Start supervised loop
openclaw swarm autopilot pause --project . --reason "operator review"
openclaw swarm autopilot resume --project .
openclaw swarm autopilot tick --project . --dry-run   # Inspect next actions without mutating state
openclaw swarm autopilot stop --project . --mode graceful

Use autopilot when you want the workflow to keep progressing under policy control instead of manually calling run, session status, and recovery commands one by one.

Runner Selection

RunnerUse When
manualSafe explicit fallback when ACP automation is unavailable or not desired
acpDefault-capable automation path through the public ACP control-plane

Session Operations

session list --project .                                    # List all
session inspect --project . --session <id>                  # Details
session follow-up --project . --session <id> --task <desc>  # Inject task
session steer --project . --session <id> --message <text>   # Redirect
session cancel --project . --run <id>                       # Abort
session cleanup --project . --stale-minutes 60              # Clean orphans

Session Policies

PolicyBehavior
noneNew session each run (default)
create_persistentCreates reusable persistent session
reuse_if_availableReuse idle persistent session if match found
require_existingFail if no matching session exists

Harness Enhancement (GAN-Inspired Patterns)

Enable advanced harness features for long-running agent orchestration:

{
  "enforceTaskImmutability": true,
  "bootstrap": { "enabled": true },
  "evaluator": { "enabled": true, "autoInjectAfter": ["coding"] }
}

Sprint Contracts — Add Acceptance Criteria to your spec. plan auto-generates a SprintContract with verifiable criteria attached to coding tasks.

Evaluator Injection — When evaluator.enabled, each coding task gets an auto-injected -eval task that validates the contract. Dependency chains adjust automatically:

coding-task → coding-task-eval → next-task

Quality Rubrics — Replace binary approve/reject with 4-dimension weighted scoring:

  • functionality (0.3) / correctness (0.3) / design (0.2) / craft (0.2)
  • Weighted total >= 6.0 → approve; < 6.0 → reject

Cross-Session Progress — progress.json auto-updated after each run and review. Bootstrap sequence loads progress on startup: verify env → load progress → select task → verify baseline.

Task Immutability — When enforceTaskImmutability is enabled, agents cannot mutate task definitions (title, deps, runner, etc.). Only status, review.status, and contract.criteria[].passes are mutable.

Session Budget — Set runner.budget.maxDurationSeconds and runner.budget.maxRetries per task. Exceeded budgets annotate [BUDGET EXCEEDED] on run records.

Assumption Tracking — WorkflowState.assumptions tracks model capability, environment, tooling, and workflow structure assumptions with validation lifecycle.

Conversational Patterns

User SaysDo This
"start a new workflow"Help write spec → plan → status
"run the next task"status → dry-run → run
"what's happening?"status → session status for running tasks
"approve everything"List review queue → approve each
"enable harness mode"Add evaluator + immutability + bootstrap config
"something is stuck"→ Diagnose module

Diagnose

When to Use

Tasks stuck, ACP readiness failures, sessions not updating, dead letters, orphans.

Diagnostic Flow

1. openclaw swarm doctor --json      → Check ACP readiness and bridge-exit health
2. openclaw swarm status --project . → Find abnormal tasks/sessions
3. Investigate specific issue (see below)

Doctor Severity

SeverityMeaningAction
healthyAll goodNone
warningWorks but riskyAddress warnings when convenient
blockedCannot executeFollow remediation immediately

Issue Resolution

Legacy bridge compatibility warning:

  • doctor --json → check warnings / remediation
  • Common: remove stale bridge.acpFallbackEnabled, or clean up old versionAllow/openclawRoot metadata

Stuck running task:

swarm session status --project . --run <runId>   # Check if session died
swarm session cancel --project . --run <runId>   # Force cancel if hung

Dead letter task (retries exhausted):

  • swarm status → find dead_letter tasks
  • Fix root cause → manually reset task to ready

Orphaned sessions (stale active):

swarm session cleanup --project . --stale-minutes 60

Version drift (after OpenClaw upgrade):

swarm doctor --json
# Remove stale bridge metadata if present → rerun doctor → verify runner resolution

Report

When to Use

Check progress, generate reports, understand session inventory.

Quick Check

openclaw swarm status --project .  # Structured summary
openclaw swarm report --project .  # Full Markdown report

Report Sections

SectionContent
AttentionItems needing action: review / blocked / running / dead_letter
TasksAll tasks with current status
Review QueueTasks awaiting approve/reject
HighlightsNotable terminal events (completed/failed/cancelled)
Recommended ActionsWhat to do next
Recent RunsLast 5 runs
SessionsLast 5 sessions with state
Session Reuse CandidatesWhich tasks can reuse which sessions

Report Files

FileTriggerMode
swarm-report.mdEvery operationOverwrite
run-log.mdswarm runAppend
review-log.mdswarm reviewAppend
specs/<specId>.mdswarm planCreate once
completion-summary.mdAll tasks doneOverwrite

Local: <project>/.openclaw/swarm/reports/ (always) Obsidian: <obsidianRoot>/<project>/ (optional async mirror)

Conversational Patterns

User SaysDo This
"what's the status?"status → summarize counts + attention
"show me the report"report → read and present key sections
"what needs attention?"status → focus on attention array
"how are sessions?"status → show session counts + recent

Tools Reference

For AI tool calling. All tools accept --json for structured output.

ToolParametersPurpose
swarm_statusprojectWorkflow status with attention items
swarm_task_planproject, specImport spec, generate task graph
swarm_runproject, task?, dryRun?, parallel?, allReady?Dispatch runnable tasks (single or batch)
swarm_review_gateproject, task, approve?, reject?, note?Approve/reject review (reject returns to ready by default)
swarm_session_statusproject, runPoll session status
swarm_session_cancelproject, run, reason?Cancel session
swarm_session_closeproject, run, reason?Close session

平台分布

OpenClaw

93.15%
按下载量换算3,070

安全审计

VirusTotal

未展示

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills