用途:为 Claude Code 插件提供自动化的语义化版本升级与发布流程,确保各配置清单中的版本号一致,并完成从版本递增到发布通知的全流程。\n\n主要能力:判断改动属于 PATCH、MINOR 还是 MAJOR;识别需要更新版本号的八个配置文件(package.json、plugin/package.json、.claude-plugin/marketplace.json、.claude-plugin/plugin.json、plugin/.claude-plugin/plugin.json、.codex-plugin/plugin.json、plugin/.codex-plugin/plugin.json、openclaw/openclaw.plugin.json);构建同步、提交、打标签、推送;创建 GitHub release;重新生成 CHANGELOG.md 并推送;运行 Discord 通知;最终校验工作区干净。\n\n使用方式:先规划并撰写 release notes;用 git grep 校验版本覆盖;更新所有版本路径但不改 CHANGELOG.md;用 npm run build-and-sync 构建同步;执行 git add -A 与 git commit;创建并推送标签与主分支;再由人工执行 npm publish 并确认发布成功;随后用 gh release create 建发布,运行 npm run changelog:generate 重新生成日志并推送,最后执行 Discord 通知并检查 git status。\n\n限制:npm 发布必须由人工完成,代理不得运行 npm publish 或 np、npm run release:* 等会触发发布的命令;不得直接修改 CHANGELOG.md;发布验证必须使用 build-and-sync 而非普通 build;Discord 通知需在 ~/Scripts/claude-mem/ 下运行以读取 .env。
claude-code-plugin-release
智能体与模型
更新于 10-16 07:20