optimize_skill
Automatically improve an existing skill: runs an optimization loop to lift it against its outcome.
Pack-returner: response is {skill_md, references, skill_id, max_iterations}. The agent runs the optimization loop locally
with the user, drives Researcher / Editor / Runner subagents over
a locked scenario set, and persists the winner via
save_skill(source='optimization') only after explicit user
approval. Requires edit access on the skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skill_id | Yes | The skill to act on, identified by its UUID, slug, or name. | |
| max_iterations | No | Optimization loop budget (1 to 1000). Defaults to 20 when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||