# TOOLS.md - Local Notes Skills define _how_ tools work. This file is for _your_ specifics — the stuff that's unique to your setup. ## What Goes Here Things like: - Camera names and locations - SSH hosts and aliases - Preferred voices for TTS - Speaker/room names - Device nicknames - Anything environment-specific ## Examples ```markdown ### Cameras - living-room → Main area, 180° wide angle - front-door → Entrance, motion-triggered ### SSH - home-server → 192.168.1.100, user: admin ### TTS - Preferred voice. Preferred: "Nova" (warm, slightly British) ``` ## ClawTeam Templates Available templates in `~/.clawteam/templates/`: ### dev-team.toml - **leader** — Tech Lead / Orchestrator - **fullstack-dev** — Versatile backend+frontend developer - **frontend-dev** — UI components, state, responsive, accessibility - **backend-dev** — APIs, databases, auth, security - **uxui-dev** — Design system, visual polish, micro-interactions - **qc-lead** — Quality gate manager, coordinates reviews - **code-reviewer** — Architecture, logic, TDD, security review - **qa-engineer** — Test coverage, edge cases, regression tests - **devops-engineer** — CI/CD, Docker, deployment, monitoring ### qc-team.toml - **qc-lead** — QC Lead, quality gate - **code-reviewer** — Code quality review - **test-engineer** — Test validation - **acceptance-auditor** — Final acceptance audit ### Template Usage ```bash # Use template when spawning team (clawteam handles template loading) clawteam team spawn-team -d "" -n leader # Then create tasks matching template.tasks clawteam task create "" -o # Spawn workers matching template.agents clawteam spawn subprocess openclaw --team --agent-name --task "..." ``` ## ClawTeam Multi-Agent Orchestration > **Important:** ClawTeam CLI command is `clawteam`. ALWAYS specify `tmux openclaw` or `subprocess openclaw` as backend+agent — default `claude` is not available. > Official repo: https://github.com/HKUDS/ClawTeam ### ⚠️ CRITICAL: Spawn Syntax ``` clawteam spawn tmux openclaw --team --agent-name --task "" ``` **NOT** `clawteam spawn --team ...` (defaults to `claude` → will fail) **NOT** `clawteam spawn tmux claude` (we don't have claude CLI) ### Team Setup ```bash # Create team (you become the leader — set env vars first) export CLAWTEAM_AGENT_ID="leader-001" export CLAWTEAM_AGENT_NAME="leader" export CLAWTEAM_AGENT_TYPE="leader" clawteam team spawn-team -d "" -n leader # View team status clawteam status clawteam board show clawteam board attach # tiled tmux view ``` ### Task Management ```bash # Create tasks (with owner, dependencies, priority) clawteam task create "" -o clawteam task create "" -o --blocked-by clawteam task create "Hotfix" -o --priority high # Update status clawteam task update --status pending clawteam task update --status in_progress clawteam task update --status completed clawteam task update --status blocked # List/filter tasks clawteam task list --status pending clawteam task list --owner clawteam task list --priority high # Wait for all sub-agents to finish clawteam task wait clawteam task wait --timeout 300 --poll-interval 10 ``` ### Spawn Workers (OpenClaw Specific) ```bash # ✅ CORRECT — always use tmux openclaw clawteam spawn tmux openclaw --team --agent-name --task "" # ✅ With non-default provider/model via profile clawteam spawn tmux --profile --team --agent-name --task "" # ❌ WRONG — defaults to claude clawteam spawn --team --agent-name --task "" clawteam spawn tmux claude --team --agent-name --task "" ``` ### Communication (Inbox) ```bash # Send message to agent clawteam inbox send "" # Broadcast to all clawteam inbox broadcast "" # Receive (destructive — consumes message) clawteam inbox receive --agent # Peek (non-destructive) clawteam inbox peek --agent # Watch for new messages clawteam inbox watch --agent ``` ### Profiles & Presets ```bash # List built-in provider templates clawteam preset list clawteam preset show # Generate reusable profile from preset clawteam preset generate-profile --name # Or use interactive TUI clawteam profile wizard # Test a profile before using in team clawteam profile test # Fix broken profile on fresh machine clawteam profile doctor claude ``` ### Git Context & Conflict Checks ```bash clawteam context log clawteam context diff clawteam context files clawteam context conflicts clawteam context inject --agent ``` ### Workspace Management ```bash clawteam workspace list clawteam workspace merge ``` ### Snapshots & Recovery ```bash clawteam team snapshot --tag clawteam team snapshots clawteam team restore --snapshot ``` ### Worker Loop Protocol Workers should NOT exit after completing their initial task. Expected loop: ```bash # 1. Check tasks clawteam task list --owner # 2. Check inbox for new instructions clawteam inbox receive --agent # 3. If idle, notify leader clawteam lifecycle idle ``` ### Cleanup ```bash clawteam team cleanup # kill workers, cleanup worktrees clawteam lifecycle request-shutdown ``` ### JSON Output ```bash clawteam --json team discover clawteam --json board show clawteam --json task list --status pending ``` Requires: - `pip install clawteam` - Python 3.10+ - `tmux` installed - OpenClaw CLI available on PATH (`openclaw`) - Git repo for worktree isolation - Data directory: `~/.clawteam/` ### ✅ Confirmed Working Commands ```bash # Create team clawteam team spawn-team -d "" -n # Create task (gets task ID back) clawteam task create "" -o # Output: OK Task created: # Spawn worker with task description clawteam spawn tmux openclaw --team --agent-name --agent-type coder \ --task "Do X. After done: clawteam task update --status completed" # Or with subprocess (faster, no tmux monitor) clawteam spawn subprocess openclaw --team --agent-name --task "..." # View board clawteam board show # Mark task done clawteam task update --status completed ### ⚠️ Flags That DON'T Exist on clawteam spawn - `--model` (model is set by OpenClaw config, not clawteam) - `--timeout` (no timeout flag on spawn) - `-m` (conflicts with clawteam's own options)