Generate Role Skill
generate_role_skillGenerate a role-specific skill package with SKILL.md and assets/playbook.yml written to disk, returning the SKILL.md content or an error on failure.
Instructions
Generate a skill package for one role.
Writes SKILL.md + assets/playbook.yml to disk (no scripts/). 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": {
"role_name": "<role_name>"
},
"name": "generate_role_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_name | Yes | Fully-qualified role name (e.g. 'fedora.linux_system_roles.timesync') | |
| 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). | |
| collection_handle | No | Session handle returned by ensure_collection. Omit on local stdio; required on remote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |