生产版本发布管理
release
生产发布生命周期管理:SemVer 语义化版本计算、变更日志(changelog)生成,以及向 main 分支提交发布 PR。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- release
- license
- MIT
- metadata
- { "author": "QRCraftly", "version": "3.0" }
- description
- Production release lifecycle: SemVer calculation, changelog generation, and release PRs into main.
03 SKILL.md 正文
Release Skill
Use this skill when preparing, previewing, or executing a release. The full runbook is RELEASING.md; the decision record is ADR 0020.
Non-Negotiable Invariants
mainis the only long-lived branch. Every change, including a release, reaches it through a squash-merged PR that passesCIandPR Title. Never push tomaindirectly.- Every merge to
maindeploys to production through Cloudflare Workers Builds. GitHub Actions never deploys. - Never create tags or edit the
package.jsonversion by hand. The release PR bumps the version; the Release workflow creates the tag when it merges. - Conventional Commits: PR titles are the squashed commit subjects that decide the SemVer bump (
feat:-> minor, others -> patch,!orBREAKING CHANGE:-> major).
Quick Reference
git checkout main && git pull --ff-only origin main
pnpm run release:dry-run # preview version and changelog
pnpm run release:prepare # creates release/vX.Y.Z with the bump commit
git push -u origin release/vX.Y.Z # open a PR into main titled chore(release): vX.Y.Z
Squash-merging the release PR starts .github/workflows/release.yml. It verifies GitHub Release status via gh release view, extracts notes before tagging, creates the annotated tag vX.Y.Z idempotently, publishes the GitHub Release, waits for production to serve /version.json for the new version, and smoke tests production.
Agents
Agents may run release:dry-run and release:prepare and open the release PR. Merging it publishes a release, so get the maintainer's go first.
Rollback
Roll back the deployment in Cloudflare (dashboard or wrangler rollback), then fix forward with a PR. Never revert by pushing to main.
04 同仓库更多 Skills
会话交接至后台智能体
claude-handoff
将当前会话交接给一个全新的后台智能体,由其立即接手继续工作。
QRCraftly PR 合并管理
steward
如何将 QRCraftly 的拉取请求(PR)推进至合并。适用于创建 PR、处理其上的 CI 或评审事件、更新分支,或决定是否合并。
QRCraftly 应用运行测试
run-qrcraftly
构建、运行并驱动 QRCraftly Web 应用(Vike + React on Vite)。适用于以下场景:启动开发服务器或生产预览、对页面截图、在生成器或二维码检查器中逐步点击操作、下载生成的二维码、确认 UI 变更在真实应用中生效、直接调用 src/packages 中的函数,或在本容器中运行单元测试与 Playwright 端到端(e2e)测试。
素材成文写作
writing-shape
写作,发挥:将原始素材逐段塑造成一篇文章。
写作片段素材挖掘
writing-fragments
写作,探索阶段:挖掘原始素材片段,暂不组织结构。
智能体文档编写
writing-for-agents
为智能体编写文档。适用于创建或编辑技能(skill),或修改 AGENTS.md 或 CLAUDE.md。