tag-release-ansible
Skill0 starsChanged 9 months agoMITView on GitHub
Bump the version in an Ansible Galaxy collection or role, tag the release, and push.
- Commits and pushes
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- action-itemsSkill
- add-spikeSkill
- changelogSkill
- commitSkill
- create-branchSkill
- create-issue-branch-githubSkill
- create-issue-githubSkill
- create-mr-gitlab-gitSkill
- create-pr-github-gitSkill
- create-pr-githubSkill
- decisionSkill
- emailSkill
- fix-issue-github-autoSkill
- fix-issue-githubSkill
- hldSkill
- implement-lldSkill
- jira-ticket-gitSkill
- jira-ticketSkill
- lldSkill
- prSkill
- reconcileSkill
- resolve-conflictsSkill
- resolve-open-questionsSkill
- reviewSkill
- spikeSkill
- standup-gitSkill
- standupSkill
- syncSkill
- tag-release-npmSkill
- tag-releaseSkill
- tldrSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
If galaxy.yml exists, this is an Ansible collection.
- Very specific: line 13
If meta/main.yml exists but no galaxy.yml, this is an Ansible role.
- Distinctive: line 14
If neither exists, tell the user this does not appear to be an Ansible Galaxy project and stop.
- Very specific: line 15
Read the current version from galaxy.yml (field: version) or meta/main.yml (field: version under galaxy_info).
- Very specific: line 16
Run git tag --sort=-version:refname | head -1 to find the most recent tag.
- Distinctive: line 22
Ask the user to confirm before proceeding.
- Very specific: line 25
If CHANGELOG.md exists, regenerate the ## Unreleased section using the same rules as the /changelog command, rename it to ## <new-version>, …
- Very specific: line 26
Commit the version bump: git commit -m "chore(release): <new-version>".
- Very specific: line 27
Create and push the tag: git tag <new-version> && git push && git push origin <new-version>.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Bump the version in an Ansible Galaxy collection or role, tag the release, and push.
Note: For team repos or any repo with a CI/CD pipeline, automated versioning and publishing via a pipeline (e.g. GitHub Actions triggered on merge to main) is strongly preferred over running this command manually. Use this command for solo projects or when no pipeline is set up.
Steps:
- Detect the project type:
- If
galaxy.ymlexists, this is an Ansible collection. - If
meta/main.ymlexists but nogalaxy.yml, this is an Ansible role. - If neither exists, tell the user this does not appear to be an Ansible Galaxy project and stop.
- If
- Read the current version from
galaxy.yml(field:version) ormeta/main.yml(field:versionundergalaxy_info). - Run
git tag --sort=-version:refname | head -1to find the most recent tag. Rungit log <last-tag>..HEAD --onelineto see commits since the last tag. If no tags exist, use all commits. If there are no new commits, tell the user there is nothing to release and stop. - Determine the version bump:
majorif any commit containsBREAKING CHANGEminorif any commit is typefeatpatchfor all other changes
- Show the user the current version, the proposed new version, the bump reason, and the list of commits that will be included.
- Ask the user to confirm before proceeding.
- On confirmation, update the
versionfield ingalaxy.ymlormeta/main.ymlto the new version. - Stage the changed file:
git add galaxy.ymlorgit add meta/main.yml. - If
CHANGELOG.mdexists, regenerate the## Unreleasedsection using the same rules as the/changelogcommand, rename it to## <new-version>, and stageCHANGELOG.mdwithgit add CHANGELOG.md. - Commit the version bump:
git commit -m "chore(release): <new-version>". - Create and push the tag:
git tag <new-version> && git push && git push origin <new-version>. - Confirm the tag was pushed and print the tag name and a reminder to import the new version on Ansible Galaxy if not using an automated import webhook.
$ARGUMENTS
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

