Increment semantic version and create git tag with changelog
Increment semantic version and create git tag with changelog. Use when releasing new versions after commits.
/plugin marketplace add vanman2024/dev-lifecycle-marketplace/plugin install versioning@dev-lifecycle-marketplace[major|minor|patch] [--dry-run] [--force]šØ EXECUTION NOTICE FOR CLAUDE
When you invoke this command via SlashCommand, the system returns THESE INSTRUCTIONS below.
YOU are the executor. This is NOT an autonomous subprocess.
Immediately after SlashCommand returns, start executing Phase 0, then Phase 1, etc.
See @CLAUDE.md section "SlashCommand Execution - YOU Are The Executor" for detailed explanation.
CRITICAL: All generated files must follow security rules:
@docs/security/SECURITY-RULES.md
Key requirements:
your_service_key_here.env files with .gitignore.env.example with placeholders onlyArguments: $ARGUMENTS
Goal: Increment semantic version (major/minor/patch), update version files, generate changelog, and create annotated git tag
Core Principles:
This commands has access to the following skills from the versioning plugin:
To use a skill:
!{skill skill-name}
Use skills when you need:
Skills provide pre-built resources to accelerate your work.
Parse bump type and flags:
Actions:
--dry-run flag (preview only, no changes)--force flag (auto-push without confirmation)Validate prerequisites:
Load current version:
Actions:
MAJOR.MINOR.PATCHDelegate to version-bumper agent:
Actions:
Use Task() to invoke agent:
Task(agent="version-bumper", parameters={
"bump_type": "<major|minor|patch>",
"current_version": "<current_version>",
"dry_run": <true|false>,
"force_push": <true|false>
})
Show results based on agent status:
Actions:
If status is "dry_run_complete":
DRY RUN - No changes made
Would bump: <old_version> ā <new_version>
Changelog Preview:
<changelog>
If status is "pushed":
ā
Version bumped and pushed: <old_version> ā <new_version>
Tag: <tag_name>
Commit: <commit_hash>
Monitor release: gh run list --workflow=version-management.yml
If status is "ready_to_push":
ā
Version bumped: <old_version> ā <new_version>
š Changes:
- VERSION: ā
- pyproject.toml: ā (if exists)
- package.json: ā (if exists)
- Commit: <commit_hash>
- Tag: <tag_name>
š Changelog:
<changelog>
š To complete the release:
1. Push changes and tags:
git push && git push --tags
2. GitHub Actions will:
- Create GitHub release
- Publish to PyPI/npm (if configured)
- Update CHANGELOG.md
3. Monitor release:
gh run list --workflow=version-management.yml
š Rollback (if needed):
/versioning:rollback <new_version>
If status is "error":
Handle failures from agent:
Display error context and suggested fixes for each error type.