iblai-api-agent-skill
Manage an agent's skills via the API: browse the org's skill catalog, toggle
which skills an agent has assigned, and manage the catalog itself (create / edit
/ delete reusable skills). Use when giving an agent reusable skill instructions.
Auth & conventions
- Base URL:
https://api.iblai.app
- Header:
Authorization: Api-Token $IBLAI_API_KEY on every request.
- Path vars:
{org} = $IBLAI_ORG, {username} = $IBLAI_USERNAME,
{mentor} = the agent's unique id (e.g. d17dc729-60fd-4363-81a0-f67d9318b03e).
- Not connected yet? Run
/iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.
Reads
- GET
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/claw-config/ — gate (skills require a sandbox).
- GET
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/agent-skills/ — platform skill catalog.
- GET
https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/skills/ — skills assigned to this agent.
Writes
Assignment (toggle)
Catalog CRUD
- POST
…/orgs/{org}/agent-skills/ — create a catalog skill:{
"name": "string (required)",
"slug": "string (required)",
"description": "string",
"version": "string",
"instruction": "string",
"metadata": "object",
"enabled": "boolean"
}
- PATCH
…/orgs/{org}/agent-skills/{id}/ — update the catalog skill (partial).
- DELETE
…/orgs/{org}/agent-skills/{id}/ — delete the catalog skill (no body). Destructive — confirm with the user first.
- POST
…/orgs/{org}/agent-skill-resources/ — attach a resource/file to a catalog skill: { "skill": id, "file_type": "string", "filename": "string", "content": "string" }.
- POST
…/orgs/{org}/agent-skill-assignments/ — assign a catalog skill to an agent (org-level twin of the mentors/-nested skills/ assignment above): { "agent": id, "skill": id, "enabled": bool }.
Example
Create a catalog skill, then assign it to the agent:
# Create the skill in the org catalog
curl -X POST \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/agent-skills/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Cite Sources",
"slug": "cite-sources",
"description": "Always cite sources inline.",
"instruction": "When answering, cite each claim with a source.",
"enabled": true
}'
# Assign it to the agent (use the returned skill uuid)
curl -X POST \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/mentors/$MENTOR/skills/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "skill": "8f1c…uuid", "enabled": true }'
Notes
- Skills require a connected sandbox — the feature is gated via the
claw-config/ endpoint above. If it returns 404 the agent has no sandbox
wired up; connect one first via /iblai-api-agent-sandbox.
- The catalog (
agent-skills/) is org-scoped and shared across agents; the
assignment list (mentors/{mentor}/skills/) is per-agent. Editing a catalog
skill affects every agent it is assigned to.
- Toggling
enabled on an assignment keeps the skill assigned but inactive;
use DELETE to remove the assignment entirely.
1---2name: iblai-api-agent-skill3description: Manage an ibl.ai agent's skills via the platform API — browse the org skill catalog, assign/unassign skills to an agent, and create/edit/delete catalog skills. Requires a connected sandbox. Use when giving an agent reusable skill instructions.4---56# iblai-api-agent-skill78Manage an agent's skills via the API: browse the org's skill catalog, toggle9which skills an agent has assigned, and manage the catalog itself (create / edit10/ delete reusable skills). Use when giving an agent reusable skill instructions.1112## Auth & conventions1314- **Base URL:** `https://api.iblai.app`15- **Header:** `Authorization: Api-Token $IBLAI_API_KEY` on every request.16- **Path vars:** `{org}` = `$IBLAI_ORG`, `{username}` = `$IBLAI_USERNAME`,17 `{mentor}` = the agent's unique id (e.g. `d17dc729-60fd-4363-81a0-f67d9318b03e`).18- Not connected yet? Run **`/iblai-api-login`** first to populate `IBLAI_ORG`,19 `IBLAI_USERNAME`, and `IBLAI_API_KEY`.2021## Reads2223- **GET** `https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/claw-config/` — gate (skills require a sandbox).24- **GET** `https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/agent-skills/` — platform skill catalog.25- **GET** `https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/skills/` — skills assigned to this agent.2627## Writes2829### Assignment (toggle)3031- **POST** `…/mentors/{mentor}/skills/` — assign a skill to the agent:32 ```json33 {34 "skill": "uuid (required)",35 "enabled": "boolean"36 }37 ```38- **PATCH** `…/mentors/{mentor}/skills/{assignmentId}/` — enable / disable an assignment:39 ```json40 {41 "enabled": "boolean"42 }43 ```44- **DELETE** `…/mentors/{mentor}/skills/{assignmentId}/` — unassign the skill (no body).4546### Catalog CRUD4748- **POST** `…/orgs/{org}/agent-skills/` — create a catalog skill:49 ```json50 {51 "name": "string (required)",52 "slug": "string (required)",53 "description": "string",54 "version": "string",55 "instruction": "string",56 "metadata": "object",57 "enabled": "boolean"58 }59 ```60- **PATCH** `…/orgs/{org}/agent-skills/{id}/` — update the catalog skill (partial).61- **DELETE** `…/orgs/{org}/agent-skills/{id}/` — delete the catalog skill (no body). Destructive — confirm with the user first.62- **POST** `…/orgs/{org}/agent-skill-resources/` — attach a resource/file to a catalog skill: `{ "skill": id, "file_type": "string", "filename": "string", "content": "string" }`.63- **POST** `…/orgs/{org}/agent-skill-assignments/` — assign a catalog skill to an agent (org-level twin of the `mentors/`-nested `skills/` assignment above): `{ "agent": id, "skill": id, "enabled": bool }`.6465## Example6667Create a catalog skill, then assign it to the agent:6869```bash70# Create the skill in the org catalog71curl -X POST \72 "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/agent-skills/" \73 -H "Authorization: Api-Token $IBLAI_API_KEY" \74 -H "Content-Type: application/json" \75 -d '{76 "name": "Cite Sources",77 "slug": "cite-sources",78 "description": "Always cite sources inline.",79 "instruction": "When answering, cite each claim with a source.",80 "enabled": true81 }'8283# Assign it to the agent (use the returned skill uuid)84curl -X POST \85 "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/mentors/$MENTOR/skills/" \86 -H "Authorization: Api-Token $IBLAI_API_KEY" \87 -H "Content-Type: application/json" \88 -d '{ "skill": "8f1c…uuid", "enabled": true }'89```9091## Notes9293- Skills require a **connected sandbox** — the feature is gated via the94 `claw-config/` endpoint above. If it returns `404` the agent has no sandbox95 wired up; connect one first via **`/iblai-api-agent-sandbox`**.96- The catalog (`agent-skills/`) is org-scoped and shared across agents; the97 assignment list (`mentors/{mentor}/skills/`) is per-agent. Editing a catalog98 skill affects every agent it is assigned to.99- Toggling `enabled` on an assignment keeps the skill assigned but inactive;100 use DELETE to remove the assignment entirely.