home / skills / tldraw / tldraw / write-release-notes

write-release-notes skill

/.claude/skills/write-release-notes

This skill guides you to craft complete release notes for tldraw SDK, ensuring clear structure, voice, and attribution across releases.

npx playbooks add skill tldraw/tldraw --skill write-release-notes

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.8 KB
---
name: write-release-notes
description: Writing release notes articles for tldraw SDK releases. Use when creating new release documentation, drafting release notes from scratch, or reviewing release note quality. Provides guidance on structure, voice, and content for release files in `apps/docs/content/releases/`.
---

# Write release notes

This skill covers how to write a complete release notes article for a published tldraw SDK release.

## Location

All release files live in `apps/docs/content/releases/`.

| File         | Purpose                                                   |
| ------------ | --------------------------------------------------------- |
| `next.mdx`   | Accumulates changes for the upcoming release              |
| `vX.Y.0.mdx` | Published releases (immutable except for patch additions) |

## Process

### 1. Identify the release

Get the version number and find the GitHub release:

```bash
gh release view v4.3.0
```

This shows the release date, tag, and any release notes from GitHub.

### 2. Find all PRs in the release

List PRs merged between the previous release and this one:

```bash
# Find commits between releases
git log v4.2.0..v4.3.0 --oneline --merges

# Or use gh to list PRs
gh pr list --state merged --base main --search "merged:2024-01-01..2024-02-01"
```

### 3. Fetch PR details

For each PR, get the full details:

```bash
gh pr view <PR_NUMBER> --json title,body,labels,author,baseRefName
```

Look for:

- `### Release notes` section in PR body
- `### API changes` section in PR body
- Labels indicating category (api, bugfix, improvement, etc.)
- Whether "breaking" appears in the PR

**Important:** Only include PRs whose `baseRefName` is `main`. PRs merged into feature branches (e.g. `default-shape-customization`) are not yet released — they will be included when the feature branch itself is merged to main.

### 4. Find patch releases

List any patch releases for this minor version:

```bash
gh release list | grep "v4.3"
```

For each patch release, find its PRs:

```bash
git log v4.3.0..v4.3.1 --oneline --merges
```

### 5. Write the article

Create `apps/docs/content/releases/vX.Y.0.mdx` following the style guide.

1. Write the frontmatter with version, dates, and keywords
2. Write a 1-2 sentence introduction summarizing highlights
3. Create featured sections for major features and breaking changes
4. List API changes, improvements, and bug fixes
5. Add patch release sections if applicable
6. Add GitHub release links

### 6. Verify

Check that:

- All significant PRs are represented
- PR links are correct and formatted properly
- Community contributors are credited
- Breaking changes are marked with 💥
- Sections are in the correct order

## References

- **Style guide**: See `../shared/release-notes-guide.md` for guidance on what a release notes article should contain and how to format it.

Overview

This skill helps you write complete, publication-ready release notes for tldraw SDK releases. It guides you from identifying the release and collecting PRs to drafting the MDX article and verifying completeness. The output is a structured release file placed in apps/docs/content/releases/ that follows the project style and credits contributors.

How this skill works

The skill inspects the GitHub release and collects merged PRs between the previous and current version using git and gh commands. It fetches PR metadata (title, body, labels, author) to extract release-note snippets, API changes, and category labels, then organizes that information into sections: highlights, breaking changes, API changes, improvements, bug fixes, and patch notes. Finally, it produces a ready-to-save vX.Y.0.mdx file with frontmatter, links, and verification checks.

When to use it

  • Preparing release documentation for a new minor or major tldraw SDK release
  • Drafting release notes from scratch when a release tag is created
  • Reviewing or expanding release notes collected in next.mdx before publishing
  • Adding patch release sections after one or more patch tags are published
  • Checking that breaking changes, contributors, and PR links are accurately recorded

Best practices

  • Start by viewing the GitHub release and the tag to confirm dates and commit range
  • List merged PRs between tags and inspect each PR for a 'Release notes' or 'API changes' section
  • Mark breaking changes clearly with an icon or label (e.g., 💥) and put them in a featured section
  • Group items by category (Featured, API changes, Improvements, Bug fixes) and credit community authors
  • Include links to GitHub PRs, and verify formatting, links, and contributor names before merging

Example use cases

  • Creating apps/docs/content/releases/v4.3.0.mdx after tagging v4.3.0
  • Compiling a changelog when multiple patch releases (v4.3.1, v4.3.2) need to be summarized under v4.3
  • Converting notes accumulated in next.mdx into the final published release article
  • Reviewing a draft release article to ensure no significant PRs were omitted and links are correct

FAQ

How do I find all PRs included in a release?

List merged commits between tags with git log vPREV..vCUR --oneline --merges or use gh pr list filtered by merge date.

What should I look for in each PR?

Check for a 'Release notes' or 'API changes' section, labels for category, the author for credit, and any mention of breaking changes.