promote_session_to_skill
Promotes a completed agent session into a named, versioned skill stored in the registry with a quality score; destructive-scope skills require operator approval before use.
Instructions
Promote a completed agent session to a named, versioned Skill.
The skill is stored in the registry with a quality score derived
from the session's step success ratio.
Safety rule: if ``safety_scope`` is ``DESTRUCTIVE``, the skill is
created with ``approved=False`` and cannot be used until an operator
calls ``approve_skill`` (requires SYSTEM_ADMIN scope).
Args:
session_id: ID of the session to promote (8-char prefix or full UUID).
name: Short human name for the skill (e.g. "blue_wash_look").
description: One-line purpose statement.
body: Markdown playbook — steps, caveats, example inputs.
safety_scope: "SAFE_READ" | "SAFE_WRITE" | "DESTRUCTIVE" (default SAFE_WRITE).
applicable_context: Free-text retrieval hint (e.g. "color wash cue storage").
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": {
"session_id": "<session_id>",
"name": "<name>",
"description": "<description>",
"body": "<body>"
},
"name": "promote_session_to_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | ||
| name | Yes | ||
| session_id | Yes | ||
| description | Yes | ||
| safety_scope | No | SAFE_WRITE | |
| applicable_context | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |