semver-advisor
Installation
SKILL.md
Semantic Version and Commit Message Advisor
Advisory only. Never create commits, modify the git index, create or push tags.
Workflow
- Get baseline version:
git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*" 2>/dev/null || echo "v0.0.0" - Collect all unmerged changes (avoid double-counting):
git diff HEAD --stat— staged + unstaged working-tree changesgit log origin/main..HEAD --oneline— branch commits not yet in maingit diff origin/main...HEAD --stat— combined diff from merge base
- Group changed files by functional area.
- Classify each group — see CLASSIFICATION.md.
- Select the highest-impact classification:
major > minor > patch > none. - Calculate candidate version (see table below).
- Generate one conventional commit message for the dominant change.
- Flag mixed-purpose changes that should be split into separate commits.