Token导航 LogoToken导航

Agent Skill · AI 工具

swarm-protocol(群协议)

swarm-protocol 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

swarm-protocol 是AI 工具类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证为 MIT,第三方扫描已通过,按安装量在AI 工具类的 2,536 个 Skill 里排第 2,463。

总安装 196周安装 8GitHub Stars 1下载 63核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/co8/cc-plugins --skill swarm-protocol

这个 Skill 是做什么的

AI 工具类 Skill 用来扩展助手本身的能力,例如接模型、接检索、接外部服务。

用于处理 GitHub 仓库、Issue 和 Pull Request 信息。适合围绕代码变更或协作事项进行整理。可结合来源仓库和原始 README 核验具体用法。安装命令:npx skills add https://github.com/co8/cc-plugins --skill swarm-protocol。

安装前建议确认权限范围和是否会触发命令执行。

来源仓库内路径:skills/swarm-protocol

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/co8/cc-plugins --skill swarm-protocol;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

swarm-protocol 怎么安装?

在终端执行 npx skills add https://github.com/co8/cc-plugins --skill swarm-protocol。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

swarm-protocol 支持哪些 AI 工具?

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

swarm-protocol 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

swarm-protocol 是免费的吗?

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

swarm-protocol 用的人多吗?

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

swarm-protocol 安全吗?

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

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

AI 工具类 Skill 对比

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

执行计划 · Codex、Claude

1,515,336173,110只读MIT通过
verification-before-completion

完成前的验证 · Codex、Claude

1,319,472173,121权限未标注MIT通过
subagent-driven-development

子 Agent 驱动开发 · Codex、Claude

1,312,416173,138只读MIT通过
copy-editing

复制编辑 · Codex、Claude

1,209,57625,632只读MIT通过
paywall-upgrade-cro

付费专区升级 cro · Codex、Claude

1,030,17625,617只读MIT通过
swarm-protocol

群协议 · 本页

1961可写文件MIT通过

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

SKILL.md 原文

Swarm Protocol v2

Turn complex projects into parallel agent swarms. One command to go from idea to merged PR.

Orchestrates specialized subagents across planning, implementation, and review phases with worktree isolation for conflict-free parallelization, progressive status tracking for real-time monitoring, and a 5-agent parallel review team that catches bugs, silent failures, type design issues, stale comments, and unnecessary complexity — all before you merge.

Why Swarm Protocol?

  • One command — /swarm-protocol <name> creates docs, branches, worktree, and starts planning
  • Specialized agents — Each role maps to the right subagent type (architect, explorer, reviewer, etc.)
  • Maximum parallelism — Agents run concurrently with worktree isolation to prevent file conflicts
  • 5-agent review team — Code reviewer, silent failure hunter, type analyzer, comment checker, code simplifier — all in parallel
  • Real-time monitoring — swarm-status.json with progressive auto-updates for ScopeTUI integration
  • Smart resumption — Pick up where you left off with --resume, retry single agents with --agent=N.M
  • Plan conversion — Already have a plan? Convert it directly with --from-plan=<name>

Commands

CommandPurpose
/swarm-protocol <project-name>Initialize new project with full planning phase
/swarm-protocolContinue existing project, convert a plan, or start new
/swarm-protocol --from-plan=<name>Convert a specific plan file to swarm project
/swarm-protocol --review-onlyRun only the Review Team phase on current changes

/swarm-protocol (No Arguments)

Smart detection: Check branch (feature/<name>) → docs/projects/ → ~/.claude/plans/ → prompt user.

Detection priority:

  1. Current branch feature/<name> → match project in docs/projects/<name>/
  2. List recent projects by modified date with status from CHANGELOG.md
  3. List plans from ~/.claude/plans/ available for conversion
  4. Offer new project with random name suggestions

Project names: Random from Barcelona region pool (rubi, sitges, mura, tiana, etc.)

Plan conversion: Parse plan → auto-populate PROJECT_PLAN.md, IMPLEMENTATION_PLAN.md, AGENT_SWARM_SPEC.md → review before execution.


/swarm-protocol <project-name>

Initialize and execute a multi-agent development project.

Phase 0: Project Setup

  1. Create docs/projects/<name>/ with: PROJECT_PLAN.md, IMPLEMENTATION_PLAN.md, AGENT_SWARM_SPEC.md, CODE_REVIEW.md, CHANGELOG.md
  2. Create worktree: git worktree add../<repo>-<name> -b feature/<name>
  3. Supabase preview (if DB changes): supabase branches create <name>

swarm-status.json — Progressive Auto-Update System (MANDATORY)

CRITICAL: swarm-status.json MUST be created at Phase 0 and updated automatically at every action. The ScopeTUI Swarm Monitor (scopetui --swarm) depends on this file being accurate. Stale status = broken monitoring.

Location: docs/projects/<name>/swarm-status.json inside the worktree (not master).

Full schema + progressive update protocol: See references/swarm-status-schema.md.

The Anti-Lag Rule

Update BEFORE and AFTER every Agent dispatch — never batch updates.

BEFORE dispatching agent → set agent "running" + write file
AFTER agent returns      → set agent "completed"/"failed" + write file
BEFORE phase transition  → advance currentPhaseId + write file
Quick Update Helper
# Atomic status update via jq (define once, use throughout)
swarm_update() {
  local file="$1" agent_id="$2" new_status="$3" now
  now=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
  jq --arg aid "$agent_id" --arg st "$new_status" --arg now "$now" '
    (.phases[].agents[] | select(.id == $aid)) |= (
      .status = $st |
      if $st == "running" then .startedAt = $now
      elif $st == "completed" then .completedAt = $now
      else . end
    ) | .updatedAt = $now
  ' "$file" > "${file}.tmp" && mv "${file}.tmp" "$file"
}

# Usage: swarm_update docs/projects/<name>/swarm-status.json "2.1" "running"
Orchestrator Owns Status

The main session (orchestrator) writes all status updates. Subagents NEVER touch swarm-status.json. This prevents race conditions and ensures consistent state.

Minimum viable format (TUI validates only phases array):
{
  "project": "<name>",
  "branch": "feature/<name>",
  "currentPhaseId": "<active-phase-id>",
  "phases": [
    {
      "id": "1", "name": "Setup", "status": "completed",
      "agents": [{ "id": "1.1", "name": "Types", "status": "completed", "subagentType": "general-purpose" }]
    }
  ],
  "updatedAt": "<ISO 8601>"
}

Phase 1: Planning (Sequential — use feature-dev:code-architect)

Generate all planning documents before implementation. See references/templates.md for document templates.

Dispatch: Use Agent tool with subagent_type: "feature-dev:code-architect" for architecture design, and subagent_type: "feature-dev:code-explorer" for codebase analysis.

Planning sequence:

  1. Explore — Dispatch feature-dev:code-explorer agent to analyze existing codebase patterns, trace execution paths, map dependencies
  2. Architect — Dispatch feature-dev:code-architect agent to design implementation blueprint based on exploration results
  3. PROJECT_PLAN.md → Goals, success criteria, dependencies, risks
  4. IMPLEMENTATION_PLAN.md → Architecture, file changes, migrations, API endpoints
  5. AGENT_SWARM_SPEC.md → Phase breakdown, agent definitions with subagent_type assignments, parallelization strategy

Phase 2-N: Execution

FULL EXECUTION, MAXIMUM PARALLELIZATION

Agent dispatch: Use the Agent tool for all agent invocations. See references/agent-dispatch.md for the centralized dispatch protocol mapping roles → subagent_types.

Worktree isolation: For parallel agents that touch overlapping directories, use isolation: "worktree" on the Agent tool call. This gives each agent an isolated repo copy, eliminating file conflicts and enabling more aggressive parallelization.

Parallelization rules:

  • Agents within a phase run parallel when no file conflicts exist (or use worktree isolation)
  • Phases with dependencies wait for blockers to complete
  • Launch all independent agents in a single message with multiple Agent tool calls
  • Use run_in_background: true for agents whose results aren't needed immediately

Progress display: See references/templates.md for colored box format, ANSI codes, and ASCII art variants.

Status symbols: ● (green/complete), ◐ (yellow/in-progress), ○ (dim gray/pending)

Milestone commits (after each phase):

git add -A
git commit -m "feat(<project>): complete phase N - <description>

- Agent N.1: <summary>
- Agent N.2: <summary>

Co-Authored-By: Claude Code <noreply@anthropic.com>"

Quality gates (invoke after relevant phases):

  • After UI phases → invoke react-doctor skill if React project
  • After implementation → invoke smart-test skill for intelligent test selection
  • After test writing → invoke full-test-coverage skill to verify pyramid coverage

Phase Review & Repair: Review Team + Repair

Review Team: Dispatch a parallel team of specialized reviewers instead of a single review pass. This is the core improvement — each reviewer is a specialized subagent that catches different classes of issues.

In swarm-status.json, this is a single phase with id "review-repair" and name "Review Team & Repair", containing review agents + repair agent.

Review Team (Parallel — launch ALL in a single message)
AgentSubagent TypeFocus
R.1 Code Reviewerfeature-dev:code-reviewerBugs, logic errors, security, conventions
R.2 Silent Failure Hunterpr-review-toolkit:silent-failure-hunterInadequate error handling, swallowed errors, bad fallbacks
R.3 Type Design Analyzerpr-review-toolkit:type-design-analyzerType encapsulation, invariant expression, design quality
R.4 Comment Analyzerpr-review-toolkit:comment-analyzerComment accuracy, stale docs, misleading descriptions
R.5 Code Simplifierpr-review-toolkit:code-simplifierUnnecessary complexity, redundant code, clarity improvements

Dispatch all 5 in parallel:

Agent(subagent_type="feature-dev:code-reviewer", prompt="Review all changes in <diff>...")
Agent(subagent_type="pr-review-toolkit:silent-failure-hunter", prompt="Analyze error handling in <diff>...")
Agent(subagent_type="pr-review-toolkit:type-design-analyzer", prompt="Review types introduced in <diff>...")
Agent(subagent_type="pr-review-toolkit:comment-analyzer", prompt="Check comment accuracy in <diff>...")
Agent(subagent_type="pr-review-toolkit:code-simplifier", prompt="Simplify recently modified code in <diff>...")

After all reviewers complete: Consolidate findings into CODE_REVIEW.md with issues categorized by severity (High/Medium/Low), source reviewer, and recommendations.

Repair (Sequential — after Review Team completes)

Repair steps:

  1. High-severity issues: Fix all critical bugs, security vulnerabilities, and breaking issues
  2. Medium-severity issues: Resolve performance problems, missing validation, incomplete error handling
  3. Low-severity issues: Fix code style violations, naming inconsistencies, minor improvements
  4. Recommendations (Immediate): Implement all "Before Merge" recommendations from CODE_REVIEW.md
  5. Simplifications: Apply code-simplifier suggestions — reduce complexity while preserving functionality
  6. Suggestions & nits: Apply code suggestions, improve readability, clean up dead code
  7. Enhancements: Add small enhancements identified during review (better types, missing edge cases, improved UX)
  8. Update CODE_REVIEW.md — mark all resolved issues with resolution details
  9. Commit all repair changes

Repair rules:

  • Work through issues by severity: High → Medium → Low → Recommendations → Simplifications → Nits → Enhancements
  • Each fix must not introduce new issues
  • Update the Resolution column in CODE_REVIEW.md for every addressed item
  • If a fix requires significant refactoring, document the trade-off and proceed

Phase Verify: Final Verification

Validate that all repairs are correct and the project is ready for merge.

Verification steps:

  1. npm run test && npm run typecheck && npm run lint
  2. Dispatch feature-dev:code-reviewer on repair diff to confirm no regressions introduced
  3. Verify all CODE_REVIEW.md issues marked as resolved
  4. Update project CLAUDE.md
  5. If Supabase preview used: Execute database deployment workflow (see below)
  6. Final commit with verification summary

Options

FlagPurpose
--skip-worktreeUse current branch instead of creating worktree
--skip-previewSkip Supabase preview branch creation
--phases=1,2Run only specific phases
--dry-runGenerate plans only, no execution
--from-phase=NResume from specific phase
--agent=N.MRun single agent only
--from-plan=<name>Convert a specific plan file to project (e.g., --from-plan=scalable-forging-lovelace)
--resumeAuto-detect last incomplete agent and resume from there
--max-agents=NLimit concurrent parallel agents (default: 4)
--graphOutput agent dependency graph in Mermaid format
--review-onlyRun only the Review Team phase on current changes (no planning/execution)
--isolateForce worktree isolation for all parallel agents

Supabase Database Deployment

If project uses Supabase preview branches, see references/supabase-deployment.md for the full deployment workflow including migration validation loops, advisor checks, and production deployment steps.

Quick ref: supabase db push --linked → fix errors → run advisors → consolidate → deploy to production.


Agent Dispatch Protocol

CRITICAL: Always use the correct subagent_type when dispatching agents. See references/agent-dispatch.md for the complete mapping.

Quick reference:

Agent RoleSubagent TypeWhen to Use
Codebase explorationExploreUnderstanding existing code, finding patterns
Architecture designfeature-dev:code-architectPlanning implementation, designing components
Deep codebase analysisfeature-dev:code-explorerTracing execution paths, mapping dependencies
Code reviewfeature-dev:code-reviewerReviewing for bugs, security, conventions
Silent failure huntingpr-review-toolkit:silent-failure-hunterFinding swallowed errors, bad fallbacks
Type design reviewpr-review-toolkit:type-design-analyzerReviewing type encapsulation, invariants
Comment reviewpr-review-toolkit:comment-analyzerChecking comment accuracy, staleness
Code simplificationpr-review-toolkit:code-simplifierReducing complexity, improving clarity
Test coverage analysispr-review-toolkit:pr-test-analyzerReviewing test completeness
General implementationgeneral-purposeDefault for coding agents
PlanningPlanDesigning implementation strategies

Dispatch rules:

  1. Single message, multiple agents: Launch all independent agents in ONE message with multiple Agent tool calls
  2. Background when possible: Use run_in_background: true for agents whose output isn't needed to proceed
  3. Worktree isolation: Use isolation: "worktree" when parallel agents may touch overlapping files
  4. Resume capability: Store agent IDs to resume failed/interrupted agents via the resume parameter

Agent Design Principles

Parallelization: Safe when different files/dirs, independent features, tests for completed work. Sequential for dependency chains (Schema→Types→API), base→composite components, core→integration. Use isolation: "worktree" to unlock parallelism when agents share directories.

Agent scope: Single responsibility, own specific files (no overlap), define completion criteria, include validation.

Communication: IMPLEMENTATION_PLAN.md + type definitions (shared context), file system (deliverables), CHANGELOG.md (progress).

Agent Failure Protocol

FailureAction
Timeout (>15min)Log to CHANGELOG, mark blocked, continue non-dependent, prompt user
ErrorLog, retry once, if fails pause and prompt, block dependents
File ConflictHalt agents, alert user, request resolution

Recovery: /swarm-protocol --resume (auto-resume) | /swarm-protocol-protocol --agent=2.3 --retry | /swarm-protocol-protocol --skip-agent=2.3


Project Archival

After merge: move docs to docs/archive/, remove worktree, delete feature branch, clean Supabase preview if used.

mv docs/projects/<name> docs/archive/<name>
git worktree remove ../<repo>-<name>
git branch -d feature/<name>
supabase branches delete <name>  # if applicable

Best Practices

Plan thoroughly → Use specialized subagent types → Keep agents focused → Define interfaces first → Launch parallel agents in single messages → Commit per phase → Review with full team → Repair all issues → Verify before merge → Document decisions in CODE_REVIEW.md

Reference Files

FileLoad When
references/agent-dispatch.mdAlways (subagent type mapping)
references/templates.mdAlways (document templates)
references/agent-patterns.mdAlways (agent configurations)
references/supabase-deployment.mdDB migrations present
references/progress-art.mdDisplay customization

平台分布

OpenCode

39.36%
按下载量换算25

github-copilot

26.97%
按下载量换算17

Claude Code

18.15%
按下载量换算11

Gemini CLI

6.51%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills