Pr

From tldraw/tldraw · View interactive version

Pr is an AI agent skill from the GitHub repository tldraw/tldraw. Create or update a pull request for the current branch in the tldraw repository. Use when the user invokes pr, asks to create a PR, update an existing PR, push current branch changes for review, or prepare a pull request.

How to use this skill

Skill file

PR

Create or update a pull request for the current branch.

Use ../write-pr/SKILL.md as the standards reference for PR titles, descriptions, release notes, API changes, code changes tables, and human-note preservation.

Workflow

  1. Gather context:
  1. Check for overlapping work so we don't step on a teammate's toes:
  1. Prepare the branch:
  1. Run an initial review pass before asking a human to look. Spin out a few subagents in parallel over the diff (git diff main...HEAD), each with a focused lens, then fold their findings into concrete fixes:
  1. If no PR exists, create one with gh pr create.
  2. If a PR exists, read it with gh pr view --json title,body,labels,number and inspect the changed-file summary with gh pr diff --stat.
  3. Update the title or body with gh pr edit if the existing PR does not match the current diff or the write-pr standards.
  4. Search for related issues and link them in the PR description with Closes #123 or Relates to #123 where appropriate.
  5. Share the PR URL with the user.

Handling problems

Committing automatically runs hooks. Fix formatting, lint, type, or import issues when the fix is mechanical.

If a hook failure requires meaningful product or implementation decisions, stop and ask the user how to proceed.

Never force commit or force push.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.