Skill站外收录 @skilllib/skill-2117939930272416816
release
完成插件版本更新时,同步修改插件元数据与市场目录文件,确保新版本能被正确发现和加载,涵盖版本号管理、文档更新、标签发布及常见问题处理。
软件开发 AI 技能
Skills.MD
# Plugin Release Process
Complete guide for releasing new versions of plugins in the MAG Claude Plugins marketplace.
## Critical Understanding
Claude Code plugin discovery works through **TWO** configuration files that **MUST BOTH BE UPDATED**:
1. **`plugins/{plugin-name}/plugin.json`** - The plugin's own version metadata
2. **`.claude-plugin/marketplace.json`** - The marketplace catalog (what users see when browsing)
**Why both?**
- `plugin.json` - Defines the plugin itself (agents, commands, version)
- `marketplace.json` - The "catalog" that Claude Code reads for plugin discovery
- Users run `/plugin marketplace update` which reads `marketplace.json`
- **If you only update `plugin.json`, users won't see the new version!**
---
## Release Checklist
### Step 1: Update Plugin Files
- [ ] `plugins/{plugin-name}/plugin.json` - Update `version` field
- [ ] `plugins/{plugin-name}/agents/*.md` - Add new agents (if any)
- [ ] `plugins/{plugin-name}/commands/*.md` - Update commands (if any)
- [ ] `plugins/{plugin-name}/skills/*/SKILL.md` - Add new skills (if any)
### Step 2: Update Documentation
- [ ] `CHANGELOG.md` - Add new version entry at the top
- [ ] `RELEASES.md` - Add detailed release notes at the top
- [ ] `CLAUDE.md` - Update ALL version references (6+ locations)
### Step 3: ⚠️ **CRITICAL** - Update Marketplace Catalog
**File:** `.claude-plugin/marketplace.json`
Update TWO fields:
1. **Marketplace metadata version** (line ~10):
```json
"metadata": {
"version": "3.3.0" // ← Update this
}
```
2. **Specific plugin version** (in plugins array):
```json
"plugins": [
{
"name": "frontend",
"version": "3.3.0", // ← Update this (CRITICAL!)
"description": "..." // ← Update if description changed
}
]
```
### Step 4: Commit and Tag
```bash
# Commit all changes
git add -A
git commit -m "feat({plugin}): v{X.Y.Z} - {Feature summary}"
# Create tag (format: plugins/{plugin-name}/v{X.Y.Z})
git tag -a plugins/{plugin}/v{X.Y.Z} -m "..."
# Push
git push origin main
git push origin plugins/{plugin}/v{X.Y.Z}
```
### Step 5: Verify
```bash
/plugin marketplace update mag-claude-plugins
# Should show new version ✅
```
---
## Common Mistakes
### ❌ #1: Forgot to update marketplace.json
**Symptom:** Users still see old version after `/plugin marketplace update`
**Fix:**
```bash
# Update .claude-plugin/marketplace.json
vim .claude-plugin/marketplace.json
# Update plugins[].version field
git add .claude-plugin/marketplace.json
git commit -m "fix(marketplace): Update {plugin} version to v{X.Y.Z}"
git push origin main
```
### ❌ #2: Wrong git tag format
**Wrong:** `frontend-v3.3.0`, `v3.3.0`, `frontend/v3.3.0`
**Correct:** `plugins/frontend/v3.3.0` ✅
### ❌ #3: Inconsistent versions
**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" .`
---
## 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)
---
## Quick Reference
**Minimal checklist:**
1. ✅ Update `plugins/{plugin}/plugin.json` version
2. ✅ Update `.claude-plugin/marketplace.json` plugin version ⚠️ **CRITICAL**
3. ✅ Update `CHANGELOG.md`, `RELEASES.md`, `CLAUDE.md`
4. ✅ Commit: `git commit -m "feat({plugin}): v{X.Y.Z} - {summary}"`
5. ✅ Tag: `git tag -a plugins/{plugin}/v{X.Y.Z} -m "..."`
6. ✅ Push: `git push origin main && git push origin plugins/{plugin}/v{X.Y.Z}`
7. ✅ Verify: `/plugin marketplace update` shows new version
---
## Example Release
```bash
# 1. Update versions
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
# 2. Commit
git add -A
git commit -m "feat(frontend): v3.3.0 - Multi-Model Plan Review"
# 3. Tag
git tag -a plugins/frontend/v3.3.0 -m "Frontend Plugin v3.3.0"
# 4. Push
git push origin main
git push origin plugins/frontend/v3.3.0
# 5. Verify
/plugin marketplace update mag-claude-plugins
# Output: frontend v3.3.0 ✅
```
---
## Troubleshooting
**Q: Users still see old version**
**A:** Check `.claude-plugin/marketplace.json` - version must match `plugin.json`
**Q: Tag already exists**
**A:** `git tag -d {tag}` then `git push origin :{tag}` then recreate
**Q: How to test locally?**
**A:** `/plugin marketplace add /path/to/claude-code`
---
**Related:** [RELEASE_PROCESS.md](../../RELEASE_PROCESS.md) - Full detailed documentation
**Last Updated:** November 13, 2025
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「release」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次