release
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePlugin Release Process
MAG Claude Plugins插件发布流程
Complete guide for releasing new versions of plugins in the MAG Claude Plugins marketplace.
本文是MAG Claude Plugins市场中插件新版本发布的完整指南。
Critical Understanding
关键说明
Claude Code plugin discovery works through TWO configuration files that MUST BOTH BE UPDATED:
- - The plugin's own version metadata
plugins/{plugin-name}/plugin.json - - The marketplace catalog (what users see when browsing)
.claude-plugin/marketplace.json
Why both?
- - Defines the plugin itself (agents, commands, version)
plugin.json - - The "catalog" that Claude Code reads for plugin discovery
marketplace.json - Users run which reads
/plugin marketplace updatemarketplace.json - If you only update , users won't see the new version!
plugin.json
Claude Code插件的发现机制依赖于两个必须同时更新的配置文件:
- - 插件自身的版本元数据
plugins/{plugin-name}/plugin.json - - 市场目录(用户浏览时看到的内容)
.claude-plugin/marketplace.json
为什么必须同时更新?
- - 定义插件本身(包括Agent、命令、版本)
plugin.json - - Claude Code用于插件发现的"目录"
marketplace.json - 用户执行时会读取
/plugin marketplace updatemarketplace.json - 如果只更新,用户将无法看到新版本!
plugin.json
Release Checklist
发布检查清单
Step 1: Update Plugin Files
步骤1:更新插件文件
- - Update
plugins/{plugin-name}/plugin.jsonfieldversion - - Add new agents (if any)
plugins/{plugin-name}/agents/*.md - - Update commands (if any)
plugins/{plugin-name}/commands/*.md - - Add new skills (if any)
plugins/{plugin-name}/skills/*/SKILL.md
- - 更新
plugins/{plugin-name}/plugin.json字段version - - 添加新的Agent(如有)
plugins/{plugin-name}/agents/*.md - - 更新命令(如有)
plugins/{plugin-name}/commands/*.md - - 添加新技能(如有)
plugins/{plugin-name}/skills/*/SKILL.md
Step 2: Update Documentation
步骤2:更新文档
- - Add new version entry at the top
CHANGELOG.md - - Add detailed release notes at the top
RELEASES.md - - Update ALL version references (6+ locations)
CLAUDE.md
- - 在顶部添加新版本条目
CHANGELOG.md - - 在顶部添加详细的发布说明
RELEASES.md - - 更新所有版本引用(共6处以上)
CLAUDE.md
Step 3: ⚠️ CRITICAL - Update Marketplace Catalog
步骤3:⚠️ 关键 - 更新市场目录
File:
.claude-plugin/marketplace.jsonUpdate TWO fields:
-
Marketplace metadata version (line ~10):json
"metadata": { "version": "3.3.0" // ← Update this } -
Specific plugin version (in plugins array):json
"plugins": [ { "name": "frontend", "version": "3.3.0", // ← Update this (CRITICAL!) "description": "..." // ← Update if description changed } ]
文件:
.claude-plugin/marketplace.json更新两个字段:
-
市场元数据版本(约第10行):json
"metadata": { "version": "3.3.0" // ← Update this } -
特定插件版本(在plugins数组中):json
"plugins": [ { "name": "frontend", "version": "3.3.0", // ← Update this (CRITICAL!) "description": "..." // ← Update if description changed } ]
Step 4: Commit and Tag
步骤4:提交并创建标签
bash
undefinedbash
undefinedCommit all changes
提交所有更改
git add -A
git commit -m "feat({plugin}): v{X.Y.Z} - {Feature summary}"
git add -A
git commit -m "feat({plugin}): v{X.Y.Z} - {Feature summary}"
Create tag (format: plugins/{plugin-name}/v{X.Y.Z})
创建标签(格式:plugins/{plugin-name}/v{X.Y.Z})
git tag -a plugins/{plugin}/v{X.Y.Z} -m "..."
git tag -a plugins/{plugin}/v{X.Y.Z} -m "..."
Push
推送
git push origin main
git push origin plugins/{plugin}/v{X.Y.Z}
undefinedgit push origin main
git push origin plugins/{plugin}/v{X.Y.Z}
undefinedStep 5: Verify
步骤5:验证
bash
/plugin marketplace update mag-claude-pluginsbash
/plugin marketplace update mag-claude-pluginsShould show new version ✅
应显示新版本 ✅
---
---Common Mistakes
常见错误
❌ #1: Forgot to update marketplace.json
❌ 错误1:忘记更新marketplace.json
Symptom: Users still see old version after
/plugin marketplace updateFix:
bash
undefined症状: 用户执行后仍看到旧版本
/plugin marketplace update修复方法:
bash
undefinedUpdate .claude-plugin/marketplace.json
更新 .claude-plugin/marketplace.json
vim .claude-plugin/marketplace.json
vim .claude-plugin/marketplace.json
Update plugins[].version field
更新plugins[].version字段
git add .claude-plugin/marketplace.json
git commit -m "fix(marketplace): Update {plugin} version to v{X.Y.Z}"
git push origin main
undefinedgit add .claude-plugin/marketplace.json
git commit -m "fix(marketplace): Update {plugin} version to v{X.Y.Z}"
git push origin main
undefined❌ #2: Wrong git tag format
❌ 错误2:Git标签格式错误
Wrong: , ,
Correct: ✅
frontend-v3.3.0v3.3.0frontend/v3.3.0plugins/frontend/v3.3.0错误格式: , ,
正确格式: ✅
frontend-v3.3.0v3.3.0frontend/v3.3.0plugins/frontend/v3.3.0❌ #3: Inconsistent versions
❌ 错误3:版本不一致
Problem: plugin.json says v3.3.0 but marketplace.json says v3.2.0
Prevention: Use checklist, search for old version:
grep -r "3.2.0" .问题: plugin.json显示v3.3.0但marketplace.json显示v3.2.0
预防方法: 使用检查清单,搜索旧版本:
grep -r "3.2.0" .Version Numbering
版本编号规则
MAJOR (X.0.0): Breaking changes (removed agents, changed behavior)
MINOR (x.Y.0): New features (new agents/commands, backward compatible)
PATCH (x.y.Z): Bug fixes (no new features, backward compatible)
MAJOR(X.0.0): 破坏性变更(移除Agent、更改行为)
MINOR(x.Y.0): 新功能(新增Agent/命令,向后兼容)
PATCH(x.y.Z): Bug修复(无新功能,向后兼容)
Quick Reference
快速参考
Minimal checklist:
- ✅ Update version
plugins/{plugin}/plugin.json - ✅ Update plugin version ⚠️ CRITICAL
.claude-plugin/marketplace.json - ✅ Update ,
CHANGELOG.md,RELEASES.mdCLAUDE.md - ✅ Commit:
git commit -m "feat({plugin}): v{X.Y.Z} - {summary}" - ✅ Tag:
git tag -a plugins/{plugin}/v{X.Y.Z} -m "..." - ✅ Push:
git push origin main && git push origin plugins/{plugin}/v{X.Y.Z} - ✅ Verify: shows new version
/plugin marketplace update
最小检查清单:
- ✅ 更新版本
plugins/{plugin}/plugin.json - ✅ 更新中的插件版本 ⚠️ 关键
.claude-plugin/marketplace.json - ✅ 更新、
CHANGELOG.md、RELEASES.mdCLAUDE.md - ✅ 提交:
git commit -m "feat({plugin}): v{X.Y.Z} - {summary}" - ✅ 创建标签:
git tag -a plugins/{plugin}/v{X.Y.Z} -m "..." - ✅ 推送:
git push origin main && git push origin plugins/{plugin}/v{X.Y.Z} - ✅ 验证:显示新版本
/plugin marketplace update
Example Release
发布示例
bash
undefinedbash
undefined1. Update versions
1. 更新版本
vim plugins/frontend/plugin.json # version: "3.3.0"
vim .claude-plugin/marketplace.json # plugins[0].version: "3.3.0" ← DON'T FORGET!
vim CHANGELOG.md RELEASES.md CLAUDE.md
vim plugins/frontend/plugin.json # version: "3.3.0"
vim .claude-plugin/marketplace.json # plugins[0].version: "3.3.0" ← 别忘记!
vim CHANGELOG.md RELEASES.md CLAUDE.md
2. Commit
2. 提交
git add -A
git commit -m "feat(frontend): v3.3.0 - Multi-Model Plan Review"
git add -A
git commit -m "feat(frontend): v3.3.0 - Multi-Model Plan Review"
3. Tag
3. 创建标签
git tag -a plugins/frontend/v3.3.0 -m "Frontend Plugin v3.3.0"
git tag -a plugins/frontend/v3.3.0 -m "Frontend Plugin v3.3.0"
4. Push
4. 推送
git push origin main
git push origin plugins/frontend/v3.3.0
git push origin main
git push origin plugins/frontend/v3.3.0
5. Verify
5. 验证
/plugin marketplace update mag-claude-plugins
/plugin marketplace update mag-claude-plugins
Output: frontend v3.3.0 ✅
输出:frontend v3.3.0 ✅
---
---Troubleshooting
故障排除
Q: Users still see old version
A: Check - version must match
.claude-plugin/marketplace.jsonplugin.jsonQ: Tag already exists
A: then then recreate
git tag -d {tag}git push origin :{tag}Q: How to test locally?
A:
/plugin marketplace add /path/to/claude-codeRelated: RELEASE_PROCESS.md - Full detailed documentation
Last Updated: November 13, 2025
问:用户仍看到旧版本
答: 检查 - 版本必须与一致
.claude-plugin/marketplace.jsonplugin.json问:标签已存在
答: 执行,然后,之后重新创建标签
git tag -d {tag}git push origin :{tag}问:如何本地测试?
答: 执行
/plugin marketplace add /path/to/claude-code相关文档: RELEASE_PROCESS.md - 完整详细文档
最后更新: 2025年11月13日