一键导入
write-release-description
Create or update the description of a draft release with the GitHub CLI. Use when preparing release notes for an existing draft release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create or update the description of a draft release with the GitHub CLI. Use when preparing release notes for an existing draft release.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | write-release-description |
| description | Create or update the description of a draft release with the GitHub CLI. Use when preparing release notes for an existing draft release. |
Update an existing GitHub draft release for one Zimic package and version.
Use gh from the repository root. The expected tag is <package>@<version>, for example @zimic/http@1.3.14.
Read release-format.md before drafting the body.
Required:
@zimic/http.1.3.14.Optional:
Build the target tag as <package>@<version>.
Fetch the target release:
gh release view '<tag>' --repo zimicjs/zimic --json tagName,name,body,isDraft,isPrerelease
Stop if the release does not exist or isDraft is not true.
Determine the comparison base:
Use the user-provided previous version when present.
Otherwise, list the most recent published release for the same package:
gh release list --repo zimicjs/zimic --json tagName,name,isDraft,isPrerelease,publishedAt \
| jq -r --arg prefix '<package>@' 'map(select(.isDraft == false and .isPrerelease == false and (.tagName | startswith($prefix)))) | sort_by(.publishedAt) | last'
Gather candidate release-branch commits from <previous-tag>...<release-branch>, where <release-branch> is
<package>@<major> such as @zimic/http@1, then map those commits to pull requests. Always use the squash or merge
commits that are actually present in the release branch and map to their PRs, instead of using the commits from the
PR branches.
Gather candidate pull requests:
http, fetch, interceptor, or ws.packages/zimic-http.Show the likely PR list grouped as:
Ask the user to confirm the PR list and mention that they may add or remove PRs.
Draft the final release body from the confirmed PRs and the static format reference.
Show a concise preview summary plus the exact markdown body. Ask the user to confirm before editing GitHub.
Write the body to a temporary local markdown file, such as ./tmp/zimic-release-notes-<package-name>-<version>.md.
Update the draft without publishing:
gh release edit '<tag>' --repo zimicjs/zimic --notes-file './tmp/zimic-release-notes-<package-name>-<version>.md'
Fetch the release again and confirm the body was updated while still draft.
Prefer inclusion only when there is concrete evidence the PR affects the requested package. For package-scoped releases, do not include unrelated changes from other packages.
Evaluate package scope, conventional-commit scopes, changed files, and shared/root impact from the release-branch squash/merge commits or the tag comparison.
Treat shared/root changes as package-related when they affect consumers of the package or the package build/test/runtime environment. Dependency PRs commonly apply to many packages and may appear in multiple package releases.
Keep the release PR itself in Full Changelog if it is present in the draft or compare range, matching existing Zimic
releases.