prepare-release 是什么?
Prepare a new release by collecting commits, generating bilingual release notes, updating version files, and creating a release branch. Use when asked to prepare/create a release, bump version, or run /prepare-release.
以上为来源原文,中文用途说明尚待整理。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
prepare-release,然后告诉 Agent 你的任务和实际输入,让它先核对触发条件。
展开并复制给 Codex 的安装指令
安装并检查 prepare-release
请在 Codex 的当前工作环境中安装并检查 prepare-release 这个 Skill。
项目身份:cherryhq/cherry-studio / prepare-release
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/prepare-release/SKILL.md
已定位的源文件:.agents/skills/prepare-release/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 prepare-release
请在 Claude Code 的当前工作环境中安装并检查 prepare-release 这个 Skill。
项目身份:cherryhq/cherry-studio / prepare-release
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/prepare-release/SKILL.md
已定位的源文件:.agents/skills/prepare-release/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 prepare-release
请在 Cursor Agent 的当前工作环境中安装并检查 prepare-release 这个 Skill。
项目身份:cherryhq/cherry-studio / prepare-release
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/prepare-release/SKILL.md
已定位的源文件:.agents/skills/prepare-release/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 prepare-release
请在 当前 Agent 的当前工作环境中安装并检查 prepare-release 这个 Skill。
项目身份:cherryhq/cherry-studio / prepare-release
来源:https://github.com/cherryhq/cherry-studio/blob/253bd3d400e40a9cb9afdd7a4f97ecd5bc5f9d63/.agents/skills/prepare-release/SKILL.md
已定位的源文件:.agents/skills/prepare-release/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-22T03:34:45.756Z
- 中文使用说明
- 尚待整理,保留英文来源内容
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 已保留来源记录;当前完整用法未逐项人工复核
展开 SKILL.md 原文、章节与历史收录资料
.agents/skills/prepare-release/SKILL.md · 抓取时间 2026-11-22T03:34:45.756Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Prepare a new release by collecting commits, generating bilingual release notes, updating version files, and creating a release branch. Use when asked to prepare/create a release, bump version, or run `/prepare-release`.
查看源文件章节 / Source sections
- 原文:Prepare Release
- 原文:Arguments
- 工作流程 / Workflow
- 原文:Step 1: Determine Version
- 原文:Step 2: Collect Commits
- 原文:Step 3: Generate Bilingual Release Notes
- 原文:Step 4: Update Files
- 原文:Step 5: Present for Review
- 原文:Step 6: Create Release Branch
- 原文:CI Trigger Chain
- 原文:Constraints
原文:Prepare Release
Automate the Cherry Studio release workflow: collect changes → generate bilingual release notes → update files → create release branch → trigger CI/CD.
原文:Arguments
Parse the version intent from the user's message. Accept any of these forms: - Bump type keyword: `patch`, `minor`, `major` - Exact version: strict `x.y.z` or `x.y.z-<prerelease>` without build metadata (e.g. `1.8.0`, `1.8.0-beta.1`, `1.8.0-rc.1`) - Natural language: "prepare a beta release", "bump to 1.8.0-rc.2", etc. Defaults to `patch` if no version is specified. Always echo the resolved target version back to the user before proceeding with any file edits. - `--dry-run`: Preview only, do not create a release branch.
原文:Step 1: Determine Version
1. For an interactive local run, fetch `origin/main` and all tags, then verify that the checkout is a clean `main` at exactly `origin/main`: ```bash git fetch origin refs/heads/main:refs/remotes/origin/main --tags test "$(git branch --show-current)" = main test -z "$(git status --porcelain)" test "$(git rev-parse HEAD)" = "$(git rev-parse origin/main)" ``` Stop before editing files if any check fails. This prevents a standalone run from creating a release branch from an arbitrary or stale checkout. In GitHub Actions, use the workflow's frozen dispatch SHA and leave checkout validation to the workflow. Do not fetch or compare the later `origin/main` head. 2. Read the current version from `package.json`. Use it for version increments even if that release has since been withdrawn; never reuse the withdrawn version. 3. Select the latest published, non-draft GitHub Release whose tag is strict `v<semver>` as the release-note baseline. Non-semver preview releases and drafts are never a baseline: ```bash gh release list --limit 1000 --json isDraft,publishedAt,tagName --jq '[.[] | select(.isDraft == false and (.tagName | test("^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$")))] | sort_by(.publishedAt) | last | .tagName // empty' ``` Stop if no published baseline exists or its Git tag is missing (`git rev-parse --verify refs/tags/{baseline-tag}`). Compare its version with the current package version using `semver`: if main is behind, stop and require the latest Post Release metadata PR to be merged. If main is ahead, allow preparation using the published baseline for release notes and the package version for version increments. For example, after withdrawing 2.1.1, main at 2.1.1 with a published baseline of 2.1.0 prepares 2.1.2 and includes changes since 2.1.0. In GitHub Actions, use the workflow-provided baseline tag and collection base without repeating these checks. 4. Compute the new version based on the argument: - `patch` / `minor` / `major`: bump from the current version. - An exact version must match `^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\.[0-9A-Za
本段为节选,完整内容见源文件。
原文:Step 2: Collect Commits
1. Determine the release-note collection base from the published baseline selected in Step 1, not from the package version: - If the baseline tag is an ancestor of `HEAD`, use the tag. - Otherwise, use the latest commit whose full message contains the exact marker `release-metadata-boundary: <baseline-tag>`. This machine marker is added to the Post Release pull request body and survives the required squash merge. - For metadata pull requests created before the machine marker existed, accept a subject exactly equal to `chore(release): sync <baseline-tag> metadata` or that subject followed only by GitHub's squash suffix ` (#<PR-number>)`. - Stop with an error if the tag is not an ancestor and its metadata sync commit is missing; otherwise already-released hotfixes could be included again. 2. List all commits since that base: ```bash git log <collection-base>..HEAD --format="%H %s" --no-merges ``` 3. For each commit, get the full body: ```bash git log <hash> -1 --format="%B" ``` 4. Extract the content inside `` ```release-note `` code blocks from each commit body. 5. Extract the conventional commit type from the title (`feat`, `fix`, `refactor`, `perf`, `docs`, etc.). 6. **Skip** these commits as standalone release-note candidates, but still inspect their effects when reconciling candidates with the final code in Step 3: - Titles starting with `🤖 Daily Auto I18N` - Titles starting with `Merge` - Titles starting with `chore(deps)` - Titles starting with `chore: release` - Titles starting with `chore(release)` - Commits where the release-note block says `NONE`
原文:Step 3: Generate Bilingual Release Notes
Generate release notes in **both English and Chinese** from the final user-visible changes relative to the published baseline. Commit titles and `release-note` blocks are candidate descriptions, not proof that a change will ship. **Reconcile net changes before drafting:** 1. Inspect `git diff --name-status <baseline-tag> <release-head>`, then read the relevant patches and code at both endpoints. `<release-head>` is the source `HEAD` before release preparation (the frozen dispatch SHA in CI). Compare the two endpoint trees, not a three-dot merge-base diff. The collection base is only for discovering commits; when it differs from the published tag, also inspect user-visible differences missing from that commit range. 2. Group candidates by user-visible behavior and trace related patches in chronological order, including commits excluded in Step 2. Detect explicit reverts, manual undoing, replacements, partial reversals, and reintroductions from the code; do not rely on commit wording or matching hashes alone. 3. Omit a change introduced and fully undone during this cycle, including fixes that only addressed that temporary change. For partial reversals, replacements, or reintroductions, describe only the final outcome that differs from the published baseline, once per distinct user-visible change. 4. If a reversal removes or changes behavior that already existed in the published baseline, describe the resulting user-visible removal or restoration. Do not discard all revert commits indiscriminately. An implementation rewrite that preserves the same user-visible behavior does not by itself justify a release-note entry. 5. Verify each proposed item against the endpoint diff and final code, and ensure the English and Chinese versions describe the same outcome. If the claimed effect cannot be substantiated, omit it and report the uncertainty in the preparation summary rather than inventing a release-note claim. **Recommended format:** ``` <!--LANG:en--> Cherry Studio {version} - {Brief English Title} ✨ New Features - [Component] Description 🐛 Bug Fixes - [Component] Description 💄 Improvements - [Component] Description ⚡ Performance - [Component] Description
本段为节选,完整内容见源文件。
原文:Step 4: Update Files
1. **`package.json`**: Update the `"version"` field to the new version. 2. **`electron-builder.yml`**: Replace the content under `releaseInfo.releaseNotes: |` with the generated notes. Preserve the 4-space YAML indentation for the block scalar content. 3. **`resources/cherry-studio/release-history.json`**: Never edit by hand; the notes must match `electron-builder.yml` byte for byte. Run `node scripts/release/sync-release-history.js --target-version {version}`, which prepends (or replaces) the entry for a stable release and leaves the file untouched for a prerelease. In GitHub Actions, the workflow runs this itself after the Claude step. 4. **Validate source metadata**: For an interactive local run, run `node scripts/release/validate-prepared-release.js --target-version {version}` before generating the product manifest, and stop if it rejects the changed paths, version ordering, bilingual sections, or stable history. In GitHub Actions, leave validation to the workflow step that runs after Claude. 5. **Built-in knowledge**: For an interactive local run, run `pnpm build:builtin-knowledge` after validation. This refreshes `resources/builtin-agents/cherry-assistant/product-manifest.json` with the new package version. Never edit the generated manifest by hand. In GitHub Actions, do not run the generator: the workflow runs the same validator first, then runs the trusted generator itself.
文件 SHA256:69ae7086204bfdb8a7370c8b9386244e47cb43d92b75b45c81d4a1a174123745
仓库许可证记录:AGPL-3.0;repository-license-recorded-scope-unverified,查看来源。
Prepare a new release by collecting commits, generating bilingual release notes, updating version files, and creating a release branch. Use when asked to prepare/create a release, bump version, or run `/prepare-release`.
历史收录数据
| 来源仓库 | cherryhq/cherry-studio |
|---|---|
| Skill源路径 | .agents/skills/prepare-release/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
