Generate Collection Skills
generate_collection_skillsBatch-generate skills for every module and plugin in an Ansible collection, while updating MANIFEST.json and AGENTS.md for cross-agent discovery.
Instructions
Batch generate skills for an entire collection.
Generates/updates the collection MANIFEST.json as a byproduct. Updates AGENTS.md in the project root with a managed section listing available collections for cross-agent discovery. Returns {"succeeded": int, "failed": int, "total": int, "manifest": dict, "collection_skill": str}, or {"error": str} on failure.
Module/plugin docs use batched ansible-doc calls. Names missing from a
batch (or a hard batch failure) are counted in failed; partial batch
success still writes skills for resolved names.
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": {
"collection_namespace": "<collection_namespace>"
},
"name": "generate_collection_skills"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| install_to | No | Optional absolute path to install skills 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. | |
| collection_namespace | Yes | Collection namespace (e.g. 'netbox.netbox') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |