Skip to content

Commit 4414a19

Browse files
committed
docs: clarify plugin version bump conventions with semver guidelines
Add semver level guidance (patch/minor/major) and once-per-branch rule to avoid redundant bumps while ensuring the bump level matches the scope of accumulated changes. Assisted-by: Claude:claude-opus-4-6
1 parent fbd4bea commit 4414a19

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

CLAUDE.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,15 @@ structure.
4444

4545
- Use kebab-case for all names
4646
- Use `${CLAUDE_PLUGIN_ROOT}` for portable paths in hooks/MCP configs
47-
- When editing plugin files (other than README.md or CLAUDE.md), bump the version in that plugin's `.claude-plugin/plugin.json`
47+
- When editing plugin files (other than README.md or CLAUDE.md), bump the version in
48+
that plugin's `.claude-plugin/plugin.json` following semver:
49+
- **patch**: bug fixes, typo corrections, minor wording changes
50+
- **minor**: new skills, commands, hooks, agents, or backward-compatible behavior changes
51+
- **major**: breaking changes (renamed/removed skills, changed hook behavior, restructured plugin)
52+
- Only bump once per PR branch. Before bumping, check `git diff main -- <plugin>/.claude-plugin/plugin.json`
53+
to see if the version was already bumped. Skip if it was, unless the accumulated
54+
changes now warrant a higher semver level (e.g., patch already bumped but a new
55+
skill was added — upgrade to minor)
4856
- Use plugin-dev skills: `/plugin-dev:create-plugin`, `/plugin-dev:skill-reviewer`, `/plugin-dev:plugin-validator`
4957

5058
## Documentation

0 commit comments

Comments
 (0)