Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

swarm-coordination群体协调

Agent Skill

swarm-coordination 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

824

周安装

33

GitHub Stars

74

下载量

267
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dralgorhythm/claude-agentic-framework --skill swarm-coordination

简介

定义多智能体协作协议,确保代码库内并行开发的一致性与冲突规避。

  • 采用 Beads 作为任务跟踪源,通过文件锁与会话隔离实现资源协调。
  • 适用于团队协作式开发场景,强调状态持久化与交接规范性。
  • 安装需指定仓库路径,使用前应了解钩子机制对文件访问的影响。
  • swarm-coordination 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Swarm Coordination

Protocols and patterns for consistent, conflict-free multi-agent development. Follow these guidelines when working alongside other Claude Code agents in the same codebase.

Core Principles

  1. Beads as Source of Truth: All work items tracked via bd commands
  2. File Locking: Hooks automatically manage file locks - respect them
  3. Session Isolation: Each agent has a unique session ID for tracking
  4. Clean Handoffs: Always leave state that another agent can continue

File-Based Output

Workers write results to scratchpad/<task-id>.md, not direct context. Only durable artifacts (ADRs, plans, PRDs) go to artifacts/. Orchestrator creates output targets before launching workers; workers write to assigned files; orchestrator reads and synthesizes.

Workflows

Starting Work

  • Check Beads: Run bd ready to find unblocked issues
  • Claim Work: Update issue status: bd update <id> --status in_progress
  • Check Conflicts: Review .claude/hooks/.file-tracker.log for recent edits
  • Coordinate: If another agent is active, coordinate via Beads comments

During Work

  • Atomic Changes: Make small, complete changes that don't leave broken state
  • Frequent Commits: Commit often to reduce merge conflicts
  • Update Progress: Add comments to Beads issues for visibility
  • Respect Locks: If a file is locked, wait or work on something else

Completing Work

  • Run Tests: Verify changes don't break existing functionality
  • Close Issue: bd close <id> --reason "Completed: <description>"
  • Sync Beads: bd sync to share updates with other agents
  • Clean State: Commit all changes, leave no uncommitted work

Conflict Prevention

File Lock Protocol

Hooks automatically acquire/release locks. If you encounter a lock:

# Check who holds the lock
cat .claude/hooks/.locks/<filename>.lock

# Lock automatically expires after 60 seconds
# If urgent, coordinate via Beads or wait

Merge Conflict Strategy

  1. Pull frequently: Keep your branch up to date
  2. Small PRs: Easier to merge than large changes
  3. Coordinate: Use Beads to claim files/features before editing
  4. Resolve quickly: Address conflicts immediately when detected

Communication Patterns

Handoff Message

When ending a session with incomplete work:

# Create handoff for next agent
echo '{"message": "Continue implementing auth middleware. Tests passing but needs error handling in src/auth.ts:45"}' > .claude/hooks/.state/handoff.json

Issue Comments (via Beads)

# Add context for other agents
bd comment <issue-id> "Implemented base class. Needs: validation, tests, docs"

Multi-Agent Patterns

Queen-Worker Pattern

For complex tasks, one agent orchestrates while others execute:

  1. Queen: Plans, decomposes, assigns via Beads
  2. Workers: Claim issues, implement, report completion
  3. Sync Point: All workers sync before final integration

Parallel Streams

For independent features:

  1. Create separate Beads issues for each stream
  2. Each agent claims one stream
  3. Avoid editing same files across streams
  4. Merge streams at defined integration points

State Files

FilePurpose
.claude/hooks/.state/session_*.jsonActive agent sessions
.claude/hooks/.state/handoff.jsonHandoff messages between sessions
.claude/hooks/.locks/*.lockFile edit locks
.claude/hooks/.file-tracker.logRecent file modifications

Best Practices

  1. Check Before Edit: Always verify no active locks on target files
  2. Complete Units: Finish logical units of work before switching
  3. Document Intent: Use Beads issues to declare what you're working on
  4. Test Locally: Run tests before pushing to catch issues early
  5. Sync Often: Keep Beads and git in sync with other agents

Emergency Procedures

Deadlock Detection

If agents are waiting on each other:

# Check active sessions
ls -la .claude/hooks/.state/session_*.json

# Check active locks
ls -la .claude/hooks/.locks/

# Force release stale locks (use with caution)
find .claude/hooks/.locks -mmin +5 -delete

Recovery from Conflict

  1. Save current work to a new branch
  2. Sync with main: git fetch && git rebase origin/main
  3. Resolve conflicts file by file
  4. Update Beads: bd sync
  5. Continue work

Integration with Beads

# View all open work
bd list --status open

# Get ready (unblocked) items
bd ready --sort hybrid

# Claim an issue
bd update <id> --status in_progress --assignee claude

# Add dependency
bd dep add <blocking-id> <blocked-id> --type blocks

# Complete work
bd close <id> --reason "Implemented feature X"

# Sync state
bd sync

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.16%
按下载量换算105

Claude

29.34%
按下载量换算78

Cursor

19.09%
按下载量换算51

Gemini CLI

8.45%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills