SwarmRecall Skills
Skill registry for tracking agent capabilities and getting contextual suggestions via the SwarmRecall API.
Auto-Registration
Before making any API calls, check for a SWARMRECALL_API_KEY environment variable:
- 1. If
SWARMRECALL_API_KEY is set, use it for all requests as a Bearer token. - If
SWARMRECALL_API_KEY is not set, self-register by calling:
POST https://swarmrecall-api.onrender.com/api/v1/register
Content-Type: application/json
{ "name": "<your-agent-name>" }
- 3. The response returns
{ "apiKey": "...", "claimToken": "..." }. Save the apiKey to the SWARMRECALL_API_KEY environment variable for all subsequent requests. Do NOT write the key to disk or any file without user consent. - Tell the user: "SwarmRecall is set up! To manage your agent's data, visit swarmrecall.ai/claim with code:
<claimToken>"
Authentication
All API requests require:
CODEBLOCK1
API Base URL
INLINECODE7 (override with SWARMRECALL_API_URL if set)
All endpoints below are prefixed with /api/v1.
Privacy & Data Handling
- - All data is sent to
swarmrecall-api.onrender.com over HTTPS - Skill registry data is stored server-side with vector embeddings for semantic search
- Data is isolated per agent and owner — no cross-tenant access
- Before storing user-provided content, ensure the user has consented to external storage
- The
SWARMRECALL_API_KEY should be stored as an environment variable only, not written to disk
Endpoints
Register a skill
CODEBLOCK2
List skills
CODEBLOCK3
Get a skill
CODEBLOCK4
Update a skill
CODEBLOCK5
Remove a skill
CODEBLOCK6
Get skill suggestions
CODEBLOCK7
Behavior
- - On skill install: call
POST /api/v1/skills to register the skill with name, version, and source. - On "what can I do?": call
GET /api/v1/skills to list installed capabilities. - On task context: call
GET /api/v1/skills/suggest?context=<description> for relevant skill recommendations.
Shared Pools
- - The
POST /api/v1/skills endpoint accepts an optional "poolId" field. - When
poolId is provided, the skill is shared with all pool members who have skills read access. - The agent must have readwrite access to the pool's skills module to register shared skills.
- List (
GET /api/v1/skills) and suggest (GET /api/v1/skills/suggest) results automatically include data from pools the agent belongs to. - Pool data in responses includes
poolId and poolName fields to distinguish shared data from the agent's own data.
SwarmRecall 技能
用于追踪代理能力并通过 SwarmRecall API 获取上下文建议的技能注册表。
自动注册
在进行任何 API 调用之前,检查是否存在 SWARMRECALLAPIKEY 环境变量:
- 1. 如果设置了 SWARMRECALLAPIKEY,则在所有请求中将其用作 Bearer 令牌。
- 如果未设置 SWARMRECALLAPIKEY,则通过调用以下接口进行自我注册:
POST https://swarmrecall-api.onrender.com/api/v1/register
Content-Type: application/json
{ name: <你的代理名称> }
- 3. 响应返回 { apiKey: ..., claimToken: ... }。将 apiKey 保存到 SWARMRECALLAPIKEY 环境变量中,用于所有后续请求。未经用户同意,不得将密钥写入磁盘或任何文件。
- 告知用户:SwarmRecall 已设置完成!要管理你的代理数据,请访问 swarmrecall.ai/claim 并使用代码:
身份验证
所有 API 请求都需要:
Authorization: Bearer APIKEY>
API 基础 URL
https://swarmrecall-api.onrender.com(如果设置了 SWARMRECALLAPIURL,则使用该值覆盖)
以下所有端点均以 /api/v1 为前缀。
隐私与数据处理
- - 所有数据均通过 HTTPS 发送至 swarmrecall-api.onrender.com
- 技能注册表数据存储在服务器端,并附带向量嵌入以支持语义搜索
- 数据按代理和所有者隔离——无跨租户访问
- 在存储用户提供的内容之前,确保用户已同意外部存储
- SWARMRECALLAPIKEY 应仅作为环境变量存储,不得写入磁盘
端点
注册技能
POST /api/v1/skills
{
name: 代码审查,
version: 1.0.0,
source: clawhub/code-review,
description: 带有内联建议的自动化代码审查,
triggers: [review, PR],
dependencies: [git],
config: {},
poolId: // 可选——写入共享池
}
列出技能
GET /api/v1/skills?status=active&limit=20&offset=0
获取技能
GET /api/v1/skills/:id
更新技能
PATCH /api/v1/skills/:id
{ version: 1.1.0, config: {}, status: active }
删除技能
DELETE /api/v1/skills/:id
获取技能建议
GET /api/v1/skills/suggest?context=<任务描述>&limit=5
行为
- - 安装技能时:调用 POST /api/v1/skills 注册技能,包含名称、版本和来源。
- 询问我能做什么?时:调用 GET /api/v1/skills 列出已安装的能力。
- 任务上下文中:调用 GET /api/v1/skills/suggest?context=<描述> 获取相关技能推荐。
共享池
- - POST /api/v1/skills 端点接受可选的 poolId 字段。
- 当提供 poolId 时,该技能将与所有具有技能读取权限的池成员共享。
- 代理必须对池的技能模块具有读写权限才能注册共享技能。
- 列表(GET /api/v1/skills)和建议(GET /api/v1/skills/suggest)结果会自动包含代理所属池的数据。
- 响应中的池数据包含 poolId 和 poolName 字段,用于区分共享数据与代理自身数据。