← ClaudeAtlas

update-collectionlisted

Update an existing Ansible collection. Triggered by /update-collection. Supports updating galaxy.yml metadata, adding roles or plugins, bumping version, and updating CHANGELOG. Shows a unified diff per file before writing and waits for explicit user confirmation.
3A2DEV/ansible-designer · ★ 5 · Data & Documents · score 63
Install: claude install-skill 3A2DEV/ansible-designer
# update-collection Update an existing Ansible collection. Always shows a diff and waits for confirmation before writing. --- ## Required Inputs 1. **collection identification** — `namespace.name` or path (resolved from discovery) 2. **change_description** — What to change (e.g., "bump version to 1.1.0", "add a new filter plugin", "update the description in galaxy.yml") --- ## Behavior ### Step 1 — Discovery Locate the collection via discovery (`references/discovery.md`). ### Step 2 — Load Target Files Read only the files relevant to the requested change. ### Step 3 — Apply Change Apply the requested change: - Preserve all existing fields and structure - Use templates from `references/collection.md` for new files - All new module/plugin code follows the complete skeleton format from `references/plugins.md` - Keep test and usage guidance aligned with `references/testing.md` ### Step 4 — Show Unified Diff (per file) For each modified or created file, show the diff: ``` --- collections/ansible_collections/myorg/infra/galaxy.yml (original) +++ collections/ansible_collections/myorg/infra/galaxy.yml (proposed) @@ -3,7 +3,7 @@ namespace: myorg name: infra -version: 1.0.0 +version: 1.1.0 readme: README.md ``` Then ask: **"Apply these changes? (yes/no)"** ### Step 5 — Write on Confirmation - If **yes**: write all modified/created files. - If **no**: ask what to change and loop back. ### Step 6 — Final Output Show updated file tree: ```bash find <collection_path> -type