用途:该技能用于自动化 oh-my-codex 项目的发布流程,按既定清单依次执行版本升级、测试、提交、打标签、推送、发布到 npm 与创建 GitHub Release。
主要能力与用法:通过命令 /release <version> 调用,版本参数可为具体版本号(如 2.4.0),也可为语义化版本关键字 patch、minor。
发布步骤:1) 版本升级,需同步更新 package.json 的 version 字段、src/installer/index.ts 的 VERSION 常量、src/tests/installer.test.ts 的期望版本、.codex-plugin/plugin.json 的 version 字段,以及 README.md 的标题与版本徽章;2) 运行 npm run test:run,要求全部 231+ 测试通过后再继续;3) 提交版本变更:git add -A 后 git commit -m "chore: Bump version to <version>";4) 创建并推送标签:git tag v<version>、git push origin main、git push origin v<version>;5) 发布 npm:npm publish --access public;6) 创建 GitHub Release:gh release create v<version> --title "v<version> - <title>" --notes "<release notes>";7) 校验 npm 包页面与 GitHub Releases 页面。
语义化版本约定:patch 用于缺陷修复与小幅改进,minor 用于向后兼容的新功能,major 用于破坏性变更。
限制与注意事项:发布前必须运行测试;需编写总结变更的发布说明;插件市场会从 GitHub Release 自动同步。适用场景为 oh-my-codex 维护者执行正式发版。