swarmclaw
关于
This skill teaches agents how to use the SwarmClaw platform's core capabilities, including its six primitive tools, persistent memory, and delegation system. Use it when an agent is running on SwarmClaw and needs to understand the runtime's orchestration features. It covers local data handling, credential management, and the skill system for multi-agent workflows.
快速安装
Claude Code
推荐npx skills add swarmclawai/swarmclaw -a claude-code/plugin add https://github.com/swarmclawai/swarmclawgit clone https://github.com/swarmclawai/swarmclaw.git ~/.claude/skills/swarmclaw在 Claude Code 中复制并粘贴此命令以安装该技能
技能文档
SwarmClaw Platform
SwarmClaw is an AI agent runtime and multi-agent orchestration platform. It gives agents a uniform set of tools, persistent memory, connector integrations, and the ability to delegate work to other agents.
Website: https://swarmclaw.ai
Docs: https://swarmclaw.ai/docs
GitHub: https://github.com/swarmclawai/swarmclaw
npm: npm install -g swarmclaw
The 6 Primitive Tools
Every agent has access to these core tools. They cover the full range of agent capabilities.
| Tool | Purpose | When to Use |
|---|---|---|
| files | Read, write, edit, list, search files | Any file operation on the workspace filesystem |
| execute | Run bash scripts (sandboxed or host) | Shell commands, curl, data processing, package management |
| memory | Store and retrieve persistent knowledge | Facts, preferences, decisions that should survive across sessions |
| platform | Tasks, communication, delegation, projects | Coordinating with humans and other agents |
| browser | Control a headless browser | Interactive web pages, JavaScript-rendered content |
| skills | Discover and load skill documentation | Learning how to use tools, APIs, or workflows |
Tool Selection Guide
| Task | Tool |
|---|---|
| Edit a source file | files (edit action) |
| Run tests | execute |
| Call a REST API (JSON) | execute (curl) |
| Scrape a dynamic web page | browser |
| Remember a user preference | memory |
| Ask the user a question | platform (communicate.ask_human) |
| Send a Slack message | platform (communicate.send_message) |
| Hand off work to another agent | platform (communicate.delegate) |
| Find out how a tool works | skills (read action) |
Credentials
Credentials are configured per agent in the SwarmClaw UI. They are:
- Injected as environment variables into
executetool runs (e.g.,$OPENAI_API_KEY,$GITHUB_TOKEN) - Automatically redacted from all tool output -- secrets never appear in chat history
- Named by convention:
<PROVIDER>_API_KEYor custom names set in the credential config
You never need to ask the user for API keys directly. If a credential is configured, it's available as an env var. If it's not configured, tell the user which credential to add in the agent settings.
The Skill System
Skills are markdown files that teach agents how to use tools, APIs, and workflows. They are documentation, not executable code.
Loading Skills
{ "tool": "skills", "action": "list" }
{ "tool": "skills", "action": "read", "name": "tools/files" }
{ "tool": "skills", "action": "search", "query": "github pr" }
Skill Locations
skills/-- built-in skills shipped with SwarmClawdata/skills/-- user-created skills added at runtime
When to Load Skills
- Before using a tool you're unfamiliar with
- When a task involves an API or workflow you haven't used before
- When the user asks you to do something and you're unsure of the best approach
Agent Capabilities
Memory
Agents have persistent memory across sessions:
- Working memory (session-scoped): scratch notes, intermediate results
- Durable memory (cross-session): user preferences, project facts, decisions
- Memories are automatically surfaced in context when relevant
- Store important learnings proactively -- don't wait to be asked
Dreaming
Agents with dreaming enabled automatically consolidate memories during idle periods. You can also trigger a dream manually:
Check dream status
{ "tool": "memory", "action": "list", "category": "dream_reflection" }
Manual dream trigger
Use the platform API to trigger a dream cycle:
{ "tool": "execute", "command": "curl -s -X POST http://localhost:3456/api/memory/dream -H 'Content-Type: application/json' -d '{\"agentId\":\"YOUR_AGENT_ID\"}'" }
Dream cycles produce dream_reflection and consolidated_insight memories that help maintain a clean, coherent memory store over time.
Delegation
Agents can delegate work to other agents:
- delegate: route a task to a specific agent and wait for the result
- spawn: create a subagent that runs independently (fire-and-forget or session-based)
- Use
agents.listto discover available agents and their specializations
Connectors
Agents can communicate through external platforms:
- Discord, Slack, Telegram, and custom webhooks
- Messages sent via
platformtool withcommunicate.send_message - Inbound messages from connectors trigger agent sessions automatically
MCP Servers
Agents can also use tools served by external Model Context Protocol servers:
- Register MCP servers under MCP Servers in the UI (stdio / sse / streamable-http transports supported).
- Quick-setup presets include SwarmVault (local-first knowledge vault) and SwarmDock (agent marketplace — browse tasks, bid, submit work, earn USDC). The SwarmDock preset is pre-filled for the hosted endpoint at
https://swarmdock-api.onrender.com/mcpand just needs the Bearer header (generate a key and register an agent atswarmdock.ai/mcp/connect). Seedocs/mcp-servers.mdfor the full workflow. - Once attached to an agent, MCP tools appear alongside the built-in tools at execution time.
Workspace Conventions
- The workspace root is the agent's working directory
- File paths in tool calls are relative to the workspace root
/workspace/...paths are resolved to the workspace root automatically- The
$WORKSPACEenv var points to the workspace root in execute tool runs
Best Practices
-
Load skills before unfamiliar operations. A 30-second skill read prevents minutes of trial and error.
-
Use the right tool for the job. Don't use
executewithecho > file.txtwhenfileswrite action is cleaner. Don't usebrowserwhencurlinexecutesuffices. -
Store important context in memory. If you learn something that would help in future sessions (user preference, project convention, API quirk), store it immediately.
-
Ask rather than guess. When genuinely uncertain about user intent, use
communicate.ask_human. A brief clarification is better than wasted work on the wrong approach. -
Delegate when appropriate. If another agent is better suited for a subtask, delegate. Check
agents.listto know what's available. -
Be explicit about what you're doing. When running commands, editing files, or making decisions, explain your reasoning. Transparency builds trust.
-
Respect file access boundaries. Stay within the workspace unless the agent has machine-scope access. Never write to system directories.
-
Handle errors gracefully. When a tool call fails, read the error message, diagnose the issue, and retry with a corrected approach. Don't repeat the same failing call.
GitHub 仓库
相关推荐技能
content-collections
元Content Collections 是一个 TypeScript 优先的构建工具,可将本地 Markdown/MDX 文件转换为类型安全的数据集合。它专为构建博客、文档站和内容密集型 Vite+React 应用而设计,提供基于 Zod 的自动模式验证。该工具涵盖从 Vite 插件配置、MDX 编译到生产环境部署的完整工作流。
polymarket
元这个Claude Skill为开发者提供完整的Polymarket预测市场开发支持,涵盖API调用、交易执行和市场数据分析。关键特性包括实时WebSocket数据流,可监控实时交易、订单和市场动态。开发者可用它构建预测市场应用、实施交易策略并集成实时市场预测功能。
creating-opencode-plugins
元该Skill帮助开发者创建OpenCode插件,用于接入命令、文件、LSP等25+种事件。它提供了插件结构、事件API规范和JavaScript/TypeScript实现模式,适合需要拦截操作、扩展功能或自定义事件处理的场景。开发者可通过它快速构建响应式模块来增强OpenCode AI助手的能力。
sglang
元SGLang是一个专为LLM设计的高性能推理框架,特别适用于需要结构化输出的场景。它通过RadixAttention前缀缓存技术,在处理JSON、正则表达式、工具调用等具有重复前缀的复杂工作流时,能实现极速生成。如果你正在构建智能体或多轮对话系统,并追求远超vLLM的推理性能,SGLang是理想选择。
