push-github-tag
Installation
SKILL.md
Push GitHub Tag
Create one new patch release tag from the current repository state.
Determine the version
- Confirm the current directory is a Git repository with a configured
originremote. - Fetch tags from
originbefore deciding the next version. - Consider only stable tags that exactly match
vMAJOR.MINOR.PATCH, such asv1.2.3. Ignore prerelease, build-metadata, and non-semantic tags. - Use semantic-version ordering (not lexical ordering) to select the latest matching tag. Increment only its patch component. For example,
v0.0.0becomesv0.0.1, andv1.9.9becomesv1.9.10. - If no stable semantic-version tag exists, propose
v0.0.1and state that this is the initial version assumption.
Safety checks
- Verify the proposed tag does not already exist locally or on
origin. - Report the latest tag, proposed tag, target commit (
HEAD), and working-tree status. - Do not create a tag from a dirty worktree unless the user explicitly directs it after seeing the status.
- Never delete, force-update, or overwrite a tag.