clawteam-agent-swarm
```markdown
What this skill does
```markdown
---
name: clawteam-agent-swarm
description: Expert skill for using ClawTeam to orchestrate AI agent swarms with one command for full automation of complex tasks
triggers:
- set up ClawTeam agent swarm
- spawn multiple AI agents to work together
- orchestrate agents with ClawTeam
- automate tasks with agent team
- use ClawTeam for multi-agent workflow
- coordinate Claude Code agents in parallel
- run distributed AI research with ClawTeam
- build swarm intelligence pipeline
---
# ClawTeam Agent Swarm Intelligence
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
ClawTeam enables AI agents to self-organize into collaborative swarms. One command launches a leader agent that spawns specialized sub-agents, each with isolated git worktrees and tmux windows, coordinating via CLI to complete complex tasks in parallel — zero human orchestration required.
---
## Installation
```bash
pip install clawteam
```
Requires Python ≥ 3.10 and `tmux` installed on your system.
```bash
# Verify installation
clawteam --version
# Optional: install tmux if missing
# macOS
brew install tmux
# Ubuntu/Debian
sudo apt install tmux
```
---
## Core Concepts
| Concept | What It Is |
|---|---|
| **Team** | Named group of agents sharing a workspace |
| **Leader agent** | Orchestrates the swarm; spawns/monitors workers |
| **Worker agent** | Runs in isolated git worktree + tmux window |
| **Inbox** | File-based or ZeroMQ message passing between agents |
| **Board** | Monitoring dashboard (CLI or web) |
| **Task** | Unit of work with owner, status, and optional blockers |
---
## Quick Start (3 Minutes)
### 1. Create a team
```bash
clawteam team create my-team --description "My first swarm"
```
### 2. Spawn the leader agent (Claude Code example)
```bash
clawteam spawn \
--team my-team \
--agent-name leader \
--agent-cmd "claude" \
--task "You are the team leader. Build a REST API with auth and tests. Use clawteam to spawn workers."
```
### 3. Watch the swarm
```bash
# Tiled tmux view of all agents
clawteam board attach my-team
# Web dashboard
clawteam board serve --port 8080
```
---
## Key CLI Commands
### Team Management
```bash
# Create a team
clawteam team create <team-name> --description "..."
# List teams
clawteam team list
# Remove a team and clean up worktrees
clawteam team destroy <team-name>
# Spawn an entire team from a TOML template
clawteam team spawn-team <team-name> --template templates/engineering.toml
```
### Spawning Agents
```bash
# Spawn a Claude Code worker
clawteam spawn \
--team my-team \
--agent-name worker1 \
--task "Implement the authentication module"
# Spawn a Codex worker
clawteam spawn \
--team my-team \
--agent-name worker2 \
--agent-cmd "codex" \
--task "Write PostgreSQL schema and migrations"
# Spawn with a custom CLI agent
clawteam spawn \
--team my-team \
--agent-name worker3 \
--agent-cmd "my-custom-agent" \
--task "Build React frontend components"
# Kill a specific agent
clawteam kill my-team worker1
```
### Task Management
```bash
# Create a task
clawteam task create my-team \
--title "Build auth module" \
--owner worker1
# Create a task with dependencies
clawteam task create my-team \
--title "Integration tests" \
--owner tester \
--blocked-by T1 --blocked-by T2
# List tasks (filter by owner)
clawteam task list my-team
clawteam task list my-team --owner worker1
# Update task status
clawteam task update my-team T1 --status done
# Show task board
clawteam board show my-team
```
### Inter-Agent Messaging (Inbox)
```bash
# Send a message to another agent
clawteam inbox send my-team leader "Auth complete. All 42 tests passing."
clawteam inbox send my-team worker2 "Schema approved. Start migrations."
# Read your inbox
clawteam inbox read my-team --agent me
# List all messages in team inbox
clawteam inbox list my-team
```
### Monitoring
```bash
# Show board summary
clawteam board show my-team
# Attach to tiled tmux view
clawteam board attach my-team
# Start web UI
clawteam board serve --port 8080
# Show agent logs
clawteam logs my-team worker1
```
---
## TOML Team Templates
Define reusable swarm configurations in TOML:
```toml
# templates/fullstack.toml
[team]
name = "webapp"
description = "Full-stack web application team"
[[agents]]
name = "architect"
task = "Design REST API schema and write OpenAPI spec. Save to docs/api.yaml."
[[agents]]
name = "backend1"
task = "Implement JWT authentication using docs/api.yaml as spec."
blocked_by = ["architect"]
[[agents]]
name = "backend2"
task = "Build PostgreSQL models and migrations using docs/api.yaml as spec."
blocked_by = ["architect"]
[[agents]]
name = "frontend"
task = "Build React frontend consuming the API defined in docs/api.yaml."
blocked_by = ["architect"]
[[agents]]
name = "tester"
task = "Write pytest integration tests covering auth, CRUD, and edge cases."
blocked_by = ["backend1", "backend2", "frontend"]
```
```bash
clawteam team spawn-team webapp --template templates/fullstack.toml
```
---
## Real-World Examples
### Example 1: Autonomous ML Research (8 GPUs)
```bash
# Human gives one prompt to the leader agent:
# "Use 8 GPUs to optimize train.py. Read program.md for instructions."
# The leader agent runs these commands autonomously:
clawteam team create autoresearch --description "LLM training optimization"
# Spawn one worker per GPU with a research direction
clawteam spawn --team autoresearch --agent-name gpu0 \
--task "Explore model depth: vary DEPTH from 10 to 16, record val_bpb to results.tsv"
clawteam spawn --team autoresearch --agent-name gpu1 \
--task "Explore model width: vary ASPECT_RATIO from 80 to 128, record val_bpb to results.tsv"
clawteam spawn --team autoresearch --agent-name gpu2 \
--task "Tune learning rates and optimizer: try AdamW schedules, record to results.tsv"
clawteam spawn --team autoresearch --agent-name gpu3 \
--task "Explore batch sizes from 2^14 to 2^18 with gradient accumulation, record to results.tsv"
# Leader monitors and cross-pollinates every 30 minutes
clawteam board show autoresearch
# After results are in, leader sends best config to new agents
clawteam inbox send autoresearch gpu4 \
"Best config so far: depth=12, batch=2^17, norm-before-RoPE. Start from this baseline."
```
### Example 2: Full-Stack App in Python
```python
# Use ClawTeam programmatically via subprocess in a Python orchestration script
import subprocess
import json
def spawn_agent(team: str, name: str, task: str, agent_cmd: str = "claude") -> None:
subprocess.run([
"clawteam", "spawn",
"--team", team,
"--agent-name", name,
"--agent-cmd", agent_cmd,
"--task", task,
], check=True)
def send_message(team: str, to: str, message: str) -> None:
subprocess.run([
"clawteam", "inbox", "send", team, to, message
], check=True)
def get_board(team: str) -> str:
result = subprocess.run(
["clawteam", "board", "show", team, "--json"],
capture_output=True, text=True, check=True
)
return json.loads(result.stdout)
# Orchestrate a data pipeline team
team = "data-pipeline"
subprocess.run(["clawteam", "team", "create", team], check=True)
spawn_agent(team, "ingester", "Build a CSV ingestion module that reads from ./data/raw/")
spawn_agent(team, "transformer", "Build a pandas transformation pipeline for the ingested data")
spawn_agent(team, "loader", "Build a SQLite loader that writes transformed data to ./data/output.db")
spawn_agent(team, "tester", "Write pytest tests for all three pipeline stages")
# Monitor until done
board = get_board(team)
print(json.dumps(board, indent=2))
```
### Example 3: AI Hedge Fund Swarm
```bash
# Spawn a financial analysis team
clawteam team create hedgefund --description "Market analysis swarm"
clawteam spawn --team hedgefund --agent-name researcher \
--task "Scrape and analyze AAPL, MSFT, NVDA earnings data for Q1 2026. SavRelated in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.