| name | bump |
| description | This skill should be used when the user asks to "bump version", "bump new version", "release new version", "update version", "create a release", or any task involving incrementing the crux-hive plugin version, updating the changelog, and creating a release PR. |
Version Bump Workflow
Automate the full version bump workflow for crux-hive: determine the appropriate semver increment from commit history, update version files, generate a CHANGELOG entry, and create a pull request.
Workflow
Step 1: Determine Version Increment
- Read the current version from
plugins/crux-hive/package.json.
- Find the last bump commit with:
git log --oneline --grep="chore: bump crux-hive" -1
- List commits since the last bump:
git log <last-bump-commit>..HEAD --oneline --no-merges -- plugins/crux-hive/
- Determine the semver increment based on conventional commit prefixes:
- patch: only
fix: and chore: commits
- minor: at least one
feat: commit
- major: any commit containing
BREAKING CHANGE or !: in the message
- If uncertain, ask the user to choose between patch, minor, or major.
Step 2: Update Version Files
Update the "version" field in both files to the new version:
plugins/crux-hive/package.json
plugins/crux-hive/.claude-plugin/plugin.json
Then run bun install at the repository root to update bun.lock.
Step 3: Update CHANGELOG
- Read
CHANGELOG.md to understand the existing format.
- Collect commits since the last bump commit (from Step 1).
- Group commits under Keep a Changelog sections:
### Added for feat: commits
### Changed for refactor: commits
### Fixed for fix: commits
### Docs for docs: commits (project-specific extension)
- Omit
chore: commits (version bumps, dependency updates)
- If all commits are
chore:, note this to the user and skip the CHANGELOG update
- Insert the new version entry with date in
YYYY-MM-DD format directly above the previous version entry.
- Format each entry as:
- <commit message> ([#<PR>](https://github.com/yellowblue1/crux/pull/<PR>))
Step 4: Commit, Push, and Create PR
- Ensure starting from
main: git checkout main && git pull
- Create a new branch:
git checkout -b chore/bump-crux-hive-<version>
- Stage modified files:
package.json, plugin.json, bun.lock, CHANGELOG.md
- Commit with message:
chore: bump crux-hive version to <version>
- Push and create a PR with title:
chore: bump crux-hive version to <version>