Generate Skill
generate_skillCreates a skill package for one Ansible module, writing SKILL.md, scripts, and a playbook to disk for reusable agent guidance and examples.
Instructions
Generate a skill package for one module.
Writes SKILL.md + scripts + playbook to disk. Returns the SKILL.md content as str, or {"error": str} on failure.
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": {
"module_name": "<module_name>"
},
"name": "generate_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install_to | No | Optional absolute path to install the skill to. Defaults to the project skills/ directory (via ANSIBLE_KNOW_SKILLS_DIR, or ANSIBLE_KNOW_PROJECT_DIR/CLAUDE_PROJECT_DIR/cwd + /skills). | |
| module_name | Yes | Fully-qualified module name (e.g. 'ansible.builtin.copy') | |
| collection_handle | No | Session handle returned by ensure_collection. Omit on local stdio; required on remote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |