Add plugin-maintenance plugin with bump-version command#14
Conversation
Introduces a new plugin with a single /plugin-maintenance:bump-version command that finds modified plugin.json files via git diff, increments the patch version in each, and prints a summary for review before committing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Ran this plugin on f2aad03, which didn't have plugin version bumped yet. Command correctly detected missing version increment and corrected it:
|
There was a problem hiding this comment.
Pull request overview
Adds a new plugin-maintenance Claude Code plugin to this repository’s marketplace, introducing a /plugin-maintenance:bump-version command intended to bump patch versions in plugin manifests for review.
Changes:
- Added
plugins/plugin-maintenance/.claude-plugin/plugin.jsonplugin manifest registering thebump-versioncommand. - Added
plugins/plugin-maintenance/commands/bump-version.mdcommand instructions for identifying modified plugin manifests and bumping patch versions. - Registered the new plugin in
.claude-plugin/marketplace.jsonunder thetoolingcategory at version1.0.0.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| plugins/plugin-maintenance/commands/bump-version.md | Defines the /plugin-maintenance:bump-version command workflow for bumping patch versions and printing a summary. |
| plugins/plugin-maintenance/.claude-plugin/plugin.json | Declares the new plugin-maintenance plugin and its command entrypoint. |
| .claude-plugin/marketplace.json | Adds plugin-maintenance to the repository marketplace plugin list. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| Run: | ||
|
|
||
| ```bash | ||
| git diff --name-only HEAD |
| git diff --name-only --cached | ||
| ``` | ||
|
|
||
| Collect all unique paths from both outputs that match the pattern `plugins/*/plugin.json` or `plugins/*/.claude-plugin/plugin.json`. |
- Replace `git diff HEAD` + `--cached` pair with a single `git diff --name-only HEAD`, which already covers both staged and unstaged changes - Drop the `plugins/*/plugin.json` pattern; all manifests in this repo live at `plugins/*/.claude-plugin/plugin.json` Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| ```bash | ||
| git diff --name-only HEAD | ||
| ``` | ||
|
|
||
| Collect all paths from the output that match the pattern `plugins/*/.claude-plugin/plugin.json`. |
Summary
plugins/plugin-maintenance/with a.claude-plugin/plugin.jsonmanifest and acommands/bump-version.mdcommand/plugin-maintenance:bump-versioncommand finds allplugin.jsonfiles modified (staged or unstaged) underplugins/, increments the patch version, and prints a summary before committing.claude-plugin/marketplace.jsonat version1.0.0under categorytoolingTest plan
bash tests/local/validate-skills.sh— all checks pass (no skills to validate in this plugin, existing praxis skills unaffected)/plugin-maintenance:bump-versionand confirm the version is incremented and a summary is printed🤖 Generated with Claude Code