Release and changeset best practices

From weapp-vite/weapp-vite · View interactive version

Release and changeset best practices is an AI agent skill from the GitHub repository weapp-vite/weapp-vite. 面向 weapp-vite monorepo 的 repoctl release、pnpm change intent 与 issue 交付工作流。适用于 `weapp-vite`、`wevu`、`@weapp-vite/react`、mpcore、模板、公开 skills 或 AI 合约变更,判断 change intent、`create-weapp-vite` 联动、跨平台验证,以及从 issue worktree 到中文 PR/CI 的交付闭环。

How to use this skill

Skill file

release-and-changeset-best-practices

用途

统一 pnpm change intent、提交、版本联动和 repoctl 发布前检查,避免漏掉用户可见改动和脚手架联动。

何时使用

不适用场景

本 skill 聚焦仓库交付流程,包括 repoctl release 判定、pnpm change-intent 治理和 issue 修复闭环。

核心流程

  1. 先判断改动是否用户可见;源码 bug fix、功能新增、行为变化、模板行为变化默认要通过 pnpm change 补 change intent。
  2. 下列改动不要轻易归类为“纯内部维护”:
  1. 若 release 涉及 weapp-vite、wevu 或 templates/*,默认联动补 create-weapp-vite bump。
  2. .changeset/*.md 是 pnpm change-intent 存储格式,不代表使用 Changesets CLI;summary 用中文,描述用户感知结果,不写成内部重构流水账。
  3. 若任务来自 GitHub issue:
  1. 交付遵循 Conventional Commits;默认 commit-only,issue 修复走 PR 流程。
  1. 发布前优先跑仓库脚本:

Skills 改动判定

约束

输出

应用本 skill 时,输出必须包含:

完成标记

参考资料

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.