/git-and-pr:releasefrom git-and-pr
Semantic-version release: extends pr with version bump, tag, GitHub release. Trigger phrases: 'cut a release', 'publish a release', 'tag a version'.
Ships in git-and-pr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extends /pr with semantic versioning, git tags, and optional GitHub release creation. Invoke with /release.
Use /release when a feature branch is ready to merge AND the resulting main branch state should be tagged as a versioned release. Typically used after fix: or feat: work is complete.
feat:, fix:, etc.)git push -u origin <branch-name>gh pr create --fillWait for PR approval, or if running in autonomous mode, check status:
gh pr status
gh pr merge --squash --auto
Then pull latest main:
git checkout main
git pull origin main
Inspect commits since last tag to determine bump type:
# Get last tag
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
# List commits since last tag
git log ${LAST_TAG}..HEAD --oneline --pretty=format:"%s"
Apply bump rules (highest priority wins):
| Commit pattern | Bump type | Example: 1.2.3 → |
|---|---|---|
BREAKING CHANGE: in body | major | 2.0.0 |
Subject starts with feat: | minor | 1.3.0 |
Subject starts with fix:, perf:, refactor: | patch | 1.2.4 |
docs:, chore:, test:, ci: only | patch | 1.2.4 |
Parse current version from LAST_TAG, increment the appropriate component, reset lower components to 0.
if [ -f package.json ]; then
# Use npm version to bump (also creates a local commit if run in repo)
npm version <major|minor|patch> --no-git-tag-version
git add package.json
git commit -m "chore: bump version to vX.Y.Z"
git push origin main
fi
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
gh release create vX.Y.Z \
--generate-notes \
--title "Release vX.Y.Z"
--generate-notes auto-populates the release body from commit messages since the last tag.
To skip GitHub release creation, run /release --no-gh-release.
After completion, print a summary:
Release vX.Y.Z complete
- Tag: vX.Y.Z (pushed to origin)
- package.json: updated (or "not present")
- GitHub release: <URL> (or "skipped")
git status is clean before taggingvMAJOR.MINOR.PATCH (semver with v prefix)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/address-pr-feedbackSystematic 5-phase workflow for handling PR review comments. Fetches review threads via gh api (not gh pr view), triages by priority, executes fixes via sub-agent, posts inline GitHub replies, and commits. Invoke when asked to "address PR feedback", "respond to review comments", or "handle PR review"./cleanup-worktreesSafely scans all git worktrees, checks merge status and PR state, categorizes them (Merged/PR Closed/Remote Deleted/Active), presents a report, and deletes with user approval. Never deletes the current worktree. Invoke when asked to "clean up worktrees", "remove merged worktrees", or "prune worktrees"./pin-actionsPin GitHub Actions from mutable tags (e.g., @v4) to immutable commit SHAs to prevent supply chain attacks. Use when editing .github/workflows files, hardening CI security, looking up action SHAs, pinning actions to specific commits, or replacing "uses: owner/repo@tag" references with SHA-pinned equivalents.
/refineIterative visual/UI refinement mode. Make one change at a time, describe it, wait for feedback. Use when tuning visual effects, layouts, or styling. Invoke with /refine./shipFull ship lifecycle — lint, test, branch, commit, push, PR, CI check. Use when work is complete and ready to land. Pass --merge to also merge after CI passes. Pass --no-test to skip tests.npx claudepluginhub arosenkranz/agent-config --plugin git-and-pr