Agent Skills API Reference
Overview
The Agent Skills API lists the skill catalog and manages which skills are installed and enabled for the workspace. Skills are stored as rows in the plugins table (catalog rows have no tenant; installed rows are keyed <skill_id>@local).
Base URL: https://api.studiobrain.ai (served by sb-server-worker; the self-hosted core server exposes the same paths on its own origin)
Authentication: Authorization: Bearer <token>
Project header: send X-Project-Id on writes. A read with no project header returns an empty array (the skill tables are not per-project data).
Admin only: install, enable, disable, uninstall and both registry endpoints require an admin role. Reads are open to any authenticated caller.
All list endpoints return a bare JSON array. There is no category, search, featured, limit, offset or enabled_only query handling; filter client-side.
Browse the catalog
List skills
GET /api/agent-skills
Returns catalog skills (rows with no tenant).
[
{
"skill_id": "character_writer",
"name": "Character Writer",
"description": "...",
"category": "entity",
"tags": ["character"],
"definition": {},
"prompt_template": "",
"parameters": {},
"min_tier": "free",
"is_featured": false,
"is_builtin": false,
"usage_count": 0,
"version": null,
"enabled": true,
"created_at": "2026-11-01 10:30:00",
"updated_at": null
}
]curl "https://api.studiobrain.ai/api/agent-skills" \
-H "Authorization: Bearer $TOKEN" -H "X-Project-Id: $PROJECT_ID"Get a skill
GET /api/agent-skills/{skill_id}
Returns one skill in the shape above, or 404 Skill '<id>' not found.
Workspace installations
List installed skills
GET /api/agent-skills/tenant/installed
List enabled skills
GET /api/agent-skills/tenant/enabled
Both return installation records (installed skills, or only enabled ones). Definitions are not merged in; fetch them with GET /api/agent-skills/{skill_id}.
[
{
"tenant_id": "local",
"skill_id": "character_writer",
"enabled": true,
"installed_at": "2026-11-01 10:30:00",
"installed_by": null,
"source": "marketplace",
"source_url": null,
"version": null
}
]Install a skill (admin)
POST /api/agent-skills/tenant/install
| Field | Type | Required | Description |
|---|---|---|---|
skill_id | string | Yes | Skill identifier |
version | string | No | Version to record |
source | string | No | Default marketplace |
source_url | string | No | Source URL |
Installing an already-installed skill re-enables it. Response:
{ "success": true, "skill_id": "character_writer", "version": null, "message": "Skill 'character_writer' installed" }Enable / disable a skill (admin)
POST /api/agent-skills/tenant/{skill_id}/enable
POST /api/agent-skills/tenant/{skill_id}/disable
{ "success": true, "skill_id": "character_writer", "enabled": true }404 Skill '<id>' not installed for tenant if it is not installed.
Uninstall a skill (admin)
DELETE /api/agent-skills/tenant/{skill_id}
Removes the installation row only; the catalog entry is untouched.
{ "success": true, "skill_id": "character_writer", "message": "Skill 'character_writer' uninstalled" }Registry management (admin)
Add or update a catalog skill
POST /api/agent-skills/registry
skill_id and name are required. Other fields stored by the SaaS handler: description, version, category, tags.
{ "success": true, "skill_id": "custom_analyzer", "message": "Skill 'custom_analyzer' added to registry" }Remove a catalog skill
DELETE /api/agent-skills/registry/{skill_id}
Removes the catalog row only, never a workspace installation. 404 if it is not in the registry.
{ "success": true, "skill_id": "custom_analyzer", "message": "Skill 'custom_analyzer' removed from registry" }Not available on the SaaS API
GET /api/agent-skills/{skill_id}/capabilities and POST / DELETE /api/agent-skills/{skill_id}/consent return 501 on api.studiobrain.ai: they need a skill_consents table that the per-project store does not carry. The self-hosted core server still serves them.
Errors
Errors use { "detail": "<message>" }: 400 (missing skill_id / name), 403 (not an admin), 404 (unknown or not installed).