Bump version, update release notes, tag, and push a new release
Automates version bumping, tagging, and publishing of new releases.
/plugin marketplace add ariaxhan/kernel-plugin/plugin install kernel@kernel-marketplaceCreate a new versioned release of KERNEL.
main branchgh) installed for release creationgit branch --show-current
git status --short
If not on main → Error: "Must be on main branch to release. Merge your changes first." If uncommitted changes → Error: "Working tree not clean. Commit or stash changes first."
Read version from .claude-plugin/plugin.json:
cat .claude-plugin/plugin.json | grep '"version"'
Parse current version (e.g., 1.2.0 → major=1, minor=2, patch=0).
Prompt user:
Prompt user for a brief description of what's new in this release. Use this for the commit message and release notes.
Update BOTH version locations:
.claude-plugin/plugin.jsonkernel/.claude-plugin/plugin.jsonReplace the old version string with the new version.
Ask if user wants to prepend release notes. If yes, add section at top:
# KERNEL vX.Y.Z
**Release Date**: [current date]
## What's New
- [User-provided summary items]
---
[Previous content below]
git add -A
git commit -m "$(cat <<'EOF'
Bump version to X.Y.Z
New in this release:
- [summary items]
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
git tag vX.Y.Z
git push origin main
git push origin vX.Y.Z
Ask if user wants to create a GitHub release:
gh release create vX.Y.Z --title "KERNEL vX.Y.Z" --notes "[release summary]"
Display:
Both files must stay in sync:
| File | Purpose |
|---|---|
.claude-plugin/plugin.json | Root plugin manifest |
kernel/.claude-plugin/plugin.json | Distributed plugin manifest |
Current version: 1.2.0
Bump type: minor
New version: 1.3.0
Summary: Added /release command for automated versioning
✓ Updated .claude-plugin/plugin.json
✓ Updated kernel/.claude-plugin/plugin.json
✓ Committed: "Bump version to 1.3.0"
✓ Tagged: v1.3.0
✓ Pushed to origin
✓ Created GitHub release
Release v1.3.0 complete!
/releasePrepare a new release by updating changelog, version, and documentation
/releaseSafely prepare project for public GitHub release by sanitizing files, checking documentation, and validating configuration.