tldraw/write-pr
Reference standards for writing pull request titles and descriptions in the tldraw repository. Use as supporting guidance when another skill or workflow needs PR content standards, not as the user-facing create/update PR workflow.
npx skills add https://github.com/tldraw/tldraw --skill write-pr
Standards for PR titles and descriptions in tldraw/tldraw.
This is the governing rule; everything below serves it. Write the description for a reviewer who knows the codebase architecture but has not read your code or the diff. Their time is the scarce resource. The description's job is to give them the framing they can't get from the code, then get out of the way.
Default to short. A few sentences of framing is the norm, not the exception. Match length to the change: a one-line fix needs a sentence; a new system needs the fuller treatment. A description that looks long and structured is not more valuable — often it's less, because it buries the framing under scaffolding. If a reviewer would need their own AI to interpret yours, it has failed.
Order it coarse to granular. Structure the description as an inverted pyramid, most important first. A reader should be able to stop at any point and leave with a correct, coherent understanding: a skimmer gets the goal and motivation from the opening lines; someone weighing the approach reads into the design and decisions; a close reviewer continues to the specifics. Never make someone read to the end to find out what the PR is for.
Cover the following, roughly in this order — each layer more detailed than the last, and each optional once the change no longer warrants it:
Do not:
Method | Description table that just re-says the signatures, an inventory of every changed file, a term glossary of self-explanatory names.Never invent the *why*. The motivation and trade-offs must come from real intent — the commits, the linked issue, or the author. If you don't know why a change was made or what was considered, ask the user; do not guess. A confident but fabricated rationale is worse than useless: it's misleading, and it's the thing reviewers most need to trust.
Use semantic PR titles (Conventional Commits format):
<type>(<scope>): <description>
feat - New featurefix - Bug fixdocs - Documentation onlyrefactor - Code change that neither fixes a bug nor adds a featureperf - Performance improvementtest - Adding or fixing testschore - Maintenance tasksA noun describing the affected area: fix(editor):, feat(sync):, docs(examples):
feat(editor): add snap threshold configuration optionfix(arrows): correct binding behavior with rotated shapesdocs: update sync documentationrefactor(store): simplify migration systemUse this template:
<description paragraph>
### Change type
- [x] `bugfix` | `improvement` | `feature` | `api` | `other`
### Test plan
1. Step to test...
2. Another step...
- [ ] Unit tests
- [ ] End to end tests
### Release notes
- Brief description of changes for users
Start with: "In order to X, this PR does Y." Follow the reviewer-first rules at the top of this skill.
[x]Gate these on reviewer *need*, not PR size. A large PR is not a reason to add tables — a reviewer who needs shared vocabulary or a usage example to follow the change is. Most large PRs don't clear that bar. When they do, include the relevant sections above the standard ### Change type / ### Test plan / ### Release notes block.
Guardrail: a row only earns its place if it says something the code doesn't. A Method | Description table that restates signatures, or a Concepts row for a self-explanatory name, is diff-duplication — cut it. If in doubt, leave it out.
Pull from this menu, in roughly this order, using only what fits:
Term | Type | Meaning columns. Use this when readers need a shared vocabulary to follow the rest of the description.Method | Description and Prop | Type | Description tables for new public surface.apps/examples/src/examples/, with a one-line description each, so reviewers know where to look for runnable demos.Reference: tldraw/tldraw#8410 is a good worked example of all of these sections together.
These sections come before ### Change type. The standard ### Change type / ### Test plan / ### Release notes / ### API changes / ### Code changes blocks still appear at the bottom in the usual order.
Include when changes affect api-report.md:
### API changes
- Added `Editor.newMethod()` for X
- Breaking! Removed `Editor.oldMethod()`
- Changed `Editor.method()` to accept optional `options` parameter
This table is a deliberate exception to "don't restate the diff": it's a high-level index, not prose pretending to be insight. It lets a reviewer gauge scope at a glance — how much is core code vs tests vs generated vs tooling — and decide where to look. Always include it.
Create a table that includes net LOC changes for each of the following sections. The sum of all rows must match the total PR diff. Omit rows with no changes.
packages/) source, excluding tests and API reports*.test.*, e2e/)api-report.api.md, snapshots)apps/docs/, apps/examples/)apps/dotcom/, apps/mcp-app/, apps/vscode/, etc.), excluding e2e teststemplates/).oxlintrc.json, yarn.lock, etc.)### Code changes
| Section | LOC change |
| --------------- | ---------- |
| Core code | +10 / -2 |
| Tests | +5 / -0 |
| Automated files | +0 / -1 |
| Documentation | +2 / -0 |
| Apps | +3 / -1 |
| Templates | +0 / -0 |
| Config/tooling | +1 / -0 |
Search for and link relevant issues that this PR addresses.
The PR author often writes a personal note at the very top of the description, prefaced with a "person" emoji such as 🅯 or 👨 (or similar). This block is human-written and readers trust it as such.
--- horizontal rule. Preserve everything from the person emoji through (and including) that --- exactly.---, the human note is just the leading paragraph led by the person emoji.--- if present).Take tldraw/write-pr from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.