Generate Plugin Skill
generate_plugin_skillGenerates a SKILL.md skill package for one Ansible plugin using its name and type, writes it to disk, and returns the content or an error.
Instructions
Generate a skill package for one plugin.
Writes SKILL.md to disk (no scripts/ or assets/). 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": {
"plugin_name": "<plugin_name>",
"plugin_type": "<plugin_type>"
},
"name": "generate_plugin_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). | |
| plugin_name | Yes | Fully-qualified plugin name (e.g. 'netbox.netbox.nb_lookup') | |
| plugin_type | Yes | Plugin type (lookup, filter, test, connection, become, strategy, callback, inventory, cache, cliconf, httpapi, netconf, shell, or vars) | |
| collection_handle | No | Session handle returned by ensure_collection. Omit on local stdio; required on remote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |