skills
Manage versioned agent instruction bundles: list, create, update, version, archive, and attach on-demand resources for tenant or platform agents.
Instructions
Manage agent skills (versioned instruction bundles with progressive disclosure — catalog in-prompt, bodies via the read_skill tool). action: list (all skills; filter with agent_kind/business_id) | get (skill + versions + latest version's resources; needs skill_id) | create (needs slug, display_name, description, agent_kind, content; optional business_id for a tenant skill, always_on) | update (metadata patch; needs skill_id — also archive/unarchive by passing status="archived"|"active"|"draft" and/or is_active; setting status="archived" forces is_active=False alongside it, mirroring the portal's "Archive skill" button (admin/skill_handlers.py::skill_archive), which always writes both columns together since core/skills.py's live resolver requires BOTH is_active=True AND status="active" to serve a skill) | create_version (needs skill_id, content; optional notes) | list_resources (skill_id [+ version_id]) — the version's bundled files (filename, content_type, size; no bodies) | add_resource (skill_id, filename, content [+ version_id, content_type]) — attach a file the agent can read on demand; same 64 KB cap and replace-by-filename behaviour as the portal | delete_resource (skill_id, resource_id, confirm=true).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "skills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Config branch: which `environment` rows of the AI config DB to read/write. staging = the editable working set (default); prod = what production serves. | staging |
| slug | No | Skill slug (lowercase, hyphens). | |
| notes | No | create_version: notes for the new version. | |
| action | Yes | Operation to run: list | get | create | update | create_version | list_resources | add_resource | delete_resource. The tool description lists what each action needs. | |
| status | No | active | draft | archived (archived also sets is_active=false). | |
| confirm | No | false (default) = dry run: report what WOULD change and change nothing. true = execute. | |
| content | No | Skill body (create/create_version) or resource file text (add_resource). | |
| filename | No | add_resource: file name (re-adding the same name on the same version replaces it). | |
| skill_id | No | agent_skills UUID (skills action=list). | |
| always_on | No | Inject the skill every turn instead of on demand. | |
| is_active | No | Active flag (archive forces false). | |
| agent_kind | No | Agent kind the skill serves (list: filter). | |
| version_id | No | Resource actions: the skill version the file belongs to ('' = the newest version). | |
| business_id | No | Tenant skill: owning business ('' = platform). | |
| description | No | One-line catalog description of the skill. | |
| resource_id | No | delete_resource: the agent_skill_resources row. | |
| content_type | No | add_resource: MIME type (default text/markdown). | |
| display_name | No | Skill name shown in the catalog. | |
| linked_data_source_ids | No | KB sources the skill links to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |