Imported from alfreddagenais/alfred-agent-devkit (
.cursor/skills/bump-version/SKILL.md). Install upstream withnpx skills add alfreddagenais/alfred-agent-devkit --skill bump-version. Copyright stays with the author.
Bump Version
Keep the app release version in sync. This is not a dependency upgrade. Run from project root.
Read CLAUDE.md and .cursor/PROJECT_CONTEXT.md for extra sync paths.
SemVer policy
| Kind | Example | When |
|---|---|---|
| patch | 1.3.2 → 1.3.3 |
Bug fix, polish, small UX tweak, docs-only shippable fix |
| minor | 1.3.2 → 1.4.0 |
New user-facing feature or notable surface |
| major | 1.3.2 → 2.0.0 |
Only when the user explicitly requests it |
Do not bump for lint-only, rename-only, or unfinished WIP.
Source of truth
composer.json"version"if that file exists and has a string version- Else root
package.json"version"
Write the new version to every sync target that exists. See reference.md.
Dependency updates belong to package-updater.
Commands
Prefer the host script:
./scripts/bump-version.sh patch
./scripts/bump-version.sh minor
./scripts/bump-version.sh major # user-explicit only
./scripts/bump-version.sh set 1.4.0
./scripts/bump-version.sh --dry-run patch
If ./scripts/bump-version.sh is missing, follow the fallback in reference.md (or copy the starter from this skill’s scripts/bump-version.sh).
Agent workflow
A) User invokes /bump-version or asks to bump
- Confirm kind:
patch|minor|major| exactset x.y.z(ask if unclear) - For major, require an explicit confirmation in this turn
- Run the script (or fallback)
- Report old → new version and synced files
- After minor or major (or
setthat changes major.minor), remind/write-changelogif that command is installed - Do not commit unless asked
B) End of shippable work (proactive)
After a meaningful, shippable change set:
- Ask once: Bump version? →
patch/minor/skip(never auto-major) - If they pick patch or minor, run the script
- Skip the prompt for trivial edits, spikes, or when a bump already happened in this turn
Do not
- Silently bump unless the user already named the kind (
/bump-version patch, …) - Edit only one manifest and leave the others stale
- Change
composer.json"version"without refreshingcomposer.lock - Treat
npm/yarn/composer requireas an app release bump