generate_role_skill
Generate a role-specific Ansible skill package, writing SKILL.md and playbook.yml to disk for AI agents. Returns the skill content or an error.
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.
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). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |