Automatically handles semantic version updates across plugin.json and marketplace catalog when user mentions version bump, update version, or release. ensures version consistency in claude-code-plugins repository.
Limited to specific tools
Additional assets for this skill
This skill is limited to using the following tools:
assets/README.mdreferences/README.mdscripts/README.mddescription: Automatically handles semantic version updates across plugin.json and marketplace catalog when user mentions version bump, update version, or release. ensures version consistency in claude-code-plugins repository. allowed-tools:
Automatically manages semantic version updates for Claude Code plugins, ensuring consistency across plugin.json, marketplace catalog, and git tags - optimized for claude-code-plugins repository workflow.
Format: MAJOR.MINOR.PATCH (e.g., 2.1.3)
Rules:
Examples:
1.0.0 → 1.0.1 (bug fix)1.0.0 → 1.1.0 (new feature)1.0.0 → 2.0.0 (breaking change)When activated, I will:
Identify Current Version
# Read plugin version
current=$(jq -r '.version' .claude-plugin/plugin.json)
echo "Current version: $current"
Determine Bump Type
Calculate New Version
# Example for patch bump: 1.2.3 → 1.2.4
IFS='.' read -r major minor patch <<< "$current"
new_version="$major.$minor.$((patch + 1))"
Update Files
.claude-plugin/plugin.json.claude-plugin/marketplace.extended.jsonmarketplace.jsonValidate Consistency
Create Git Tag (Optional)
git tag -a "v$new_version" -m "Release v$new_version"
// .claude-plugin/plugin.json
{
"name": "plugin-name",
"version": "1.2.4", // ← Update here
...
}
// .claude-plugin/marketplace.extended.json
{
"plugins": [
{
"name": "plugin-name",
"version": "1.2.4", // ← Update here
...
}
]
}
npm run sync-marketplace
# Regenerates marketplace.json with new version
When to use:
Example: 1.2.3 → 1.2.4
When to use:
Example: 1.2.3 → 1.3.0
When to use:
Example: 1.2.3 → 2.0.0
Before bumping:
After bumping:
If CHANGELOG.md exists, I update it:
# Changelog
## [1.2.4] - 2025-10-16
### Fixed
- Bug fix description
- Another fix
## [1.2.3] - 2025-10-15
...
# Update version files
git add .claude-plugin/plugin.json
git add .claude-plugin/marketplace.extended.json
git add .claude-plugin/marketplace.json
git add CHANGELOG.md # if exists
# Commit version bump
git commit -m "chore: Bump plugin-name to v1.2.4"
# Create annotated tag
git tag -a "plugin-name-v1.2.4" -m "Release plugin-name v1.2.4"
# Or for monorepo
git tag -a "v1.2.4" -m "Release v1.2.4"
# Push tag
git push origin plugin-name-v1.2.4
For repository-wide version bump:
# Bump marketplace version
jq '.metadata.version = "1.0.40"' .claude-plugin/marketplace.extended.json
# Update all plugins (if needed)
for plugin in plugins/*/; do
# Update plugin.json
# Update marketplace entry
done
I verify:
# Plugin version
plugin_v=$(jq -r '.version' plugins/category/plugin-name/.claude-plugin/plugin.json)
# Marketplace version
market_v=$(jq -r '.plugins[] | select(.name == "plugin-name") | .version' .claude-plugin/marketplace.extended.json)
# Should match
if [ "$plugin_v" != "$market_v" ]; then
echo "❌ Version mismatch!"
echo "Plugin: $plugin_v"
echo "Marketplace: $market_v"
fi
Complete release process:
Determine Bump Type
Update Version
Update Changelog
Commit Changes
git add .
git commit -m "chore: Release v1.2.4"
Create Tag
git tag -a "v1.2.4" -m "Release v1.2.4"
Push
git push origin main
git push origin v1.2.4
Validate
🔢 VERSION BUMP REPORT
Plugin: plugin-name
Old Version: 1.2.3
New Version: 1.2.4
Bump Type: PATCH
✅ UPDATES COMPLETED:
1. Updated .claude-plugin/plugin.json → v1.2.4
2. Updated marketplace.extended.json → v1.2.4
3. Synced marketplace.json → v1.2.4
4. Updated CHANGELOG.md
📊 CONSISTENCY CHECK:
✅ All files have version 1.2.4
✅ No version conflicts
✅ Semantic versioning valid
📝 CHANGELOG ENTRY:
## [1.2.4] - 2025-10-16
### Fixed
- Bug fix description
🎯 NEXT STEPS:
1. Review changes: git diff
2. Commit: git add . && git commit -m "chore: Bump to v1.2.4"
3. Tag: git tag -a "v1.2.4" -m "Release v1.2.4"
4. Push: git push origin main && git push origin v1.2.4
✨ Ready to release!
For claude-code-plugins repo:
User says: "Bump the security-scanner plugin to patch version"
I automatically:
User says: "Release version 2.0.0 of plugin-name"
I automatically:
User says: "Increment version for new feature"
I automatically: