Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

update-release-notes更新发行说明

Agent Skill

update-release-notes 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,513

周安装

65

GitHub Stars

46,715

下载量

530
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:update-release-notes(更新发行说明)
来源仓库:https://github.com/tldraw/tldraw
仓库路径:skills/update-release-notes
安装命令:
npx skills add https://github.com/tldraw/tldraw --skill update-release-notes
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tldraw/tldraw --skill update-release-notes

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用。
  • 建议确认权限范围和维护状态,避免触发不必要的联网或文件操作。
  • update-release-notes 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Update release notes

This skill handles the operational tasks of maintaining release notes in the tldraw/tldraw repo: adding new PR entries to next.mdx and archiving releases when a new version is published.

This skill runs from the tldraw-internal repo but operates on a local clone of tldraw/tldraw.

Setup

Before starting, clone the tldraw repo:

git clone https://github.com/tldraw/tldraw.git /tmp/tldraw

All scripts take the repo path as their first argument. All file edits happen in this clone. At the end, commit and push from the clone.

Release cycle

The SDK releases every four weeks. One week before launch, the SDK is frozen and a production branch is cut from main. During release week, only hotfixes are cherry-picked to production.

The release notes in next.mdx must ultimately reflect what ships on the production branch. However, during the ~3 development weeks before the freeze, we build up release notes from main so they're not empty. The status script detects which phase we're in based on the date of the last minor release:

  • Development weeks (source: "main", <3 weeks since last minor release): PRs are gathered from main since the last release tag. These are preliminary — some may not ship if they're reverted or if production cherry-picks differ.
  • Freeze week (source: "production", 3+ weeks since last minor release): PRs are gathered from the production branch using git cherry against the previous release branch. Only PRs that landed before the freeze or were hotfixed onto production are included. Entries accumulated from main that aren't on production will be pruned.

Process

1. Check status

Run the status script to determine versions and diff branch:

.claude/skills/update-release-notes/scripts/get-changelog-status.sh /tmp/tldraw

This returns:

  • source - either "main" (development weeks) or "production" (release week)
  • diff_branch (e.g., v4.3.x) - the branch to diff against (used when source is "production")
  • last_tag (e.g., v4.4.0) - the last release tag (used when source is "main")
  • latest_release - the most recent published release
  • Whether archival is needed

2. Handle archival (if needed)

If a new release was published since last_version in next.mdx:

  1. Copy next.mdx content to vX.Y.0.mdx (e.g., v4.3.0.mdx)
  2. Update the frontmatter in the new file:

- Set title to the version - Update dates - Add the GitHub release link after frontmatter

  1. Add the new version to the releases index at apps/docs/content/getting-started/releases.mdx:

- Add a line at the top of the appropriate ## v{major}.x section - Format: - [vX.Y](/releases/vX.Y.0) - Brief description - The description should be a short summary of the release highlights from the intro paragraph (3-5 key features, comma-separated) - If a new major version section is needed, create it above the previous one

  1. Reset next.mdx:

- Update last_version field to the new release - Clear the content sections - Keep the file structure for accumulating new changes

3. Find new PRs

The approach depends on the source field from step 1.

If source is "production" (release week):

Get PR numbers on the production branch since the previous release:

.claude/skills/update-release-notes/scripts/get-new-prs.sh /tmp/tldraw <diff_branch>

This uses git cherry (same approach as extract-draft-changelog.tsx) to compare patches between origin/production and origin/<diff_branch>. Unlike git log, git cherry correctly handles cherry-picked hotfix commits by comparing patch content rather than commit hashes.

If source is "main" (development weeks):

Get PR numbers on main since the last release tag:

.claude/skills/update-release-notes/scripts/get-new-prs-from-main.sh /tmp/tldraw <last_tag>

This uses git cherry to compare patches between origin/main and the release tag, excluding commits that were cherry-picked to production and already shipped in the release.

Both scripts output:

  • stdout: PR numbers (one per line) extracted from commit messages
  • stderr: Commits without PR numbers (typically hotfixes or direct commits)

4. Resolve hotfix commits

Check stderr from step 3 for any [HOTFIX] commits without PR numbers. For each SDK-relevant one (skip dotcom-only), find the corresponding PR:

gh pr list -R tldraw/tldraw --state merged --search "<hotfix title keywords>" --json number,title --jq '.[]'

Also check sdk-hotfix-please labeled PRs, but verify they actually landed on production — this label is also used for patch releases on the previous release branch (e.g., v4.3.x):

gh pr list -R tldraw/tldraw --label "sdk-hotfix-please" --state merged --limit 20 --json number,title,mergedAt

Add any matched PR numbers to the production PR list from step 3.

5. Fetch PR details

Batch fetch all PR information:

.claude/skills/update-release-notes/scripts/fetch-pr-batch.sh <pr1> <pr2> ...

6. Remove stale entries

Compare the full PR list (from steps 3 + 4) against the PR numbers already referenced in next.mdx. Remove any entries from next.mdx whose PRs are not in the current set.

  • When source is "production": This prunes entries that were accumulated from main during development but didn't make it to production. These are PRs that landed on main after the production branch was cut and will not ship in this release.
  • When source is "main": This removes entries for PRs that were reverted or otherwise no longer on main. Pruning is less aggressive since the full set isn't finalized until production is cut.

When removing an entry, also check whether it was referenced in a featured "What's new" section and remove that section too. Update the intro paragraph if it mentions a removed feature.

7. Add new entries

For each PR not already in next.mdx:

  1. Check PR labels and body against the style guide's categorization rules
  2. Skip PRs that should be omitted (see style guide)
  3. Skip PRs that fix bugs introduced in the same release cycle (i.e., bugs caused by other PRs already in next.mdx that were not in the previous release)
  4. If a PR is a revert, also remove the original reverted PR's entry from next.mdx if present
  5. Add entries to the appropriate section
  6. Promote significant changes to featured sections when warranted

8. Verify

Check that:

  • Every PR referenced in next.mdx is in the current PR set (from main or production depending on source)
  • PR links are correct
  • Community contributors are credited
  • Sections are in the correct order
  • Breaking changes are marked with 💥
  • Deprecations are marked with 🔜

Note: When source is "main", the entries are preliminary. Some may be pruned later when the production branch is cut and the source switches to "production".

9. Push changes

After editing next.mdx (and any archive files), commit and push from the tldraw clone:

cd /tmp/tldraw
BRANCH="update-release-notes-$(date -u +%Y%m%d-%H%M)"
git checkout -b "$BRANCH"
git add apps/docs/content/releases/
git commit -m "docs: update release notes"
git push -u origin "$BRANCH"

Then create the PR following the standards in @.claude/skills/write-pr/SKILL.md:

  • Title: docs(releases): update release notes
  • Change type: other
  • Test plan: Remove the numbered list (no manual testing steps). Untick both unit tests and end to end tests.
  • Release notes: Omit this section (internal docs work with no user-facing impact)
  • Description paragraph: Start with "In order to..." and mention the source (main or production) and what was updated (new entries added, stale entries pruned, archival performed, etc.)
  • Include a Code changes table with a Documentation row

The last_version field

The next.mdx frontmatter includes a last_version field that tracks the most recent published release. This determines which PRs are "new" and need to be added.

SDK release workflow

During an SDK release, this skill is run twice to get the docs site into its post-release state:

  1. First run — update next.mdx with all PRs that will ship in the release (source is "production" during freeze week). This ensures the release notes are complete before publishing.
  2. Publish the release to NPM — this happens outside of this skill.
  3. Second run — now that the release is published, the status script will detect needs_archive: true. This run:

- Archives next.mdx to a versioned file (e.g., v4.5.0.mdx) - Adds the new version to the releases index (releases.mdx) - Resets next.mdx with the new last_version - Finds PRs that landed on main during the freeze (since the release tag) and adds them to the fresh next.mdx

After the second run, the docs site reflects the published release and next.mdx already has a head start on the next cycle's changes.

References

  • Style guide: See shared/release-notes-guide.md for guidance on what a release notes article should contain and how to format it.
  • Writing guide: See shared/writing-guide.md for voice and style conventions.
  • Scripts: See scripts/ for automation helpers

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.23%
按下载量换算203

Claude

30.61%
按下载量换算162

Cursor

18.8%
按下载量换算100

Gemini CLI

10.13%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills