swarmclaw
Manage your SwarmClaw agent fleet, create and assign tasks, check agent and session status, trigger workflows, and orchestrate multi-agent work from chat. Use when asked to dispatch work to other agents, check what agents are doing, run diagnostics, or coordinate across a SwarmClaw dashboard instance.
What this skill does
## Overview SwarmClaw is a self-hosted AI agent orchestration dashboard. This skill gives you CLI access to manage agents, tasks, sessions, schedules, and memory across a SwarmClaw instance. Install the CLI: ```bash npm i -g @swarmclawai/swarmclaw ``` Authentication uses `SWARMCLAW_ACCESS_KEY` (preferred) or CLI key flags. Default URL is `http://localhost:3456`; override with `SWARMCLAW_URL`, `--url` (legacy commands), or `--base-url` (API-mapped commands). Use machine-readable output when parsing command results: - `--raw` for legacy commands - `--json` for API-mapped commands ## Setup 1. Install: `npm i -g @swarmclawai/swarmclaw` 2. Set env var: `export SWARMCLAW_ACCESS_KEY=<your-key>` (shown in terminal on first run) 3. Full docs: https://swarmclaw.ai/docs — CLI reference: https://github.com/swarmclawai/swarmclaw ## Multi-Gateway Fleet Management SwarmClaw can connect to multiple OpenClaw gateways at the same time. Each SwarmClaw agent can target a different gateway, including one local and several remote instances. This skill’s commands operate through the SwarmClaw control plane, so your agent/task/session actions apply across the fleet view. Use it when you need status and task coordination across more than one OpenClaw instance. ## Commands Agents: - `swarmclaw agents list` — list all agents with IDs, names, providers, status ```bash swarmclaw agents list --raw ``` - `swarmclaw agents get <agentId>` — get full details for a specific agent ```bash swarmclaw agents get <agentId> --raw ``` Tasks: - `swarmclaw tasks create --title "..." --description "..." --agent-id <agentId>` — create and assign a task ```bash swarmclaw tasks create --title "Analyse competitor pricing" --description "Research and compare competitor pricing strategies, identify gaps and opportunities" --agent-id <agentId> --raw ``` - `swarmclaw tasks list` — list all tasks with status ```bash swarmclaw tasks list --raw ``` Sessions: - `swarmclaw sessions list` — list active sessions ```bash swarmclaw sessions list --raw ``` - `swarmclaw sessions chat <id> --message "..."` — send a message to an existing session ```bash swarmclaw sessions chat <id> --message "Give me a status update" --raw ``` Memory: - `swarmclaw memory maintenance` — run memory maintenance analysis ```bash swarmclaw memory maintenance --raw ``` Diagnostics: - `swarmclaw setup doctor` — run system diagnostics and report issues ```bash swarmclaw setup doctor --raw ``` Version: - `swarmclaw version check` — check current version and update status ```bash swarmclaw version check --raw ``` ## Rules 1. Always verify an agent ID exists by running `agents list` before creating tasks for it. 2. Never pass the access key as a CLI argument in visible output — rely on the `SWARMCLAW_ACCESS_KEY` env var. 3. If the SwarmClaw instance is unreachable, run `swarmclaw setup doctor` and report the findings before retrying. 4. When the user says "dispatch work", "get X agent to do Y", or "assign this to", use `tasks create` to assign the work to the appropriate agent. 5. When the user asks "what's running", "agent status", or "what are my agents doing", combine output from `agents list` and `sessions list` to give a full picture. 6. For complex multi-step orchestration, create individual tasks rather than chaining commands. 7. Use `--raw`/`--json` output modes when you need to parse command output for further processing. 8. Do not run commands that modify or delete agents without explicit user confirmation. ## Examples Dispatch work to another agent: User says: "Get my research agent to analyse competitor pricing" ```bash swarmclaw agents list --raw swarmclaw tasks create --title "Analyse competitor pricing" --description "Research and compare competitor pricing strategies, identify gaps and opportunities" --agent-id <research-agent-id> --raw ``` Then confirm the task was created and the agent will pick it up. Check fleet status: User says: "What are all my agents doing right now?" ```bash swarmclaw agents list --raw swarmclaw sessions list --raw ``` Then summarize which agents are idle, which have active sessions, and any tasks in progress. Run diagnostics: User says: "Something seems wrong with SwarmClaw" ```bash swarmclaw setup doctor --raw ``` Then report issues found and suggest fixes based on the doctor output. Check agents across gateways: User says: "What's happening across all my OpenClaw instances?" ```bash swarmclaw agents list --raw ``` Then use the output to identify agents across multiple gateways with their connection status, and summarize which gateways are healthy and which agents are active on each.
Related 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.