Install
mkdir -p .claude/skills/pr-tldraw && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18024" && unzip -o skill.zip -d .claude/skills/pr-tldraw && rm skill.zipInstalls to .claude/skills/pr-tldraw
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
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.Key capabilities
- →Gather context about the current branch, working tree, and existing pull requests
- →Check for overlapping work with other open PRs to avoid duplication
- →Prepare the branch by committing relevant changes and pushing to the remote
- →Run an initial review pass over the diff to identify and fix issues
- →Create a new pull request using `gh pr create` if none exists
- →Update an existing pull request's title or body using `gh pr edit`
How it works
The skill gathers git context, checks for overlapping PRs, prepares the branch, and performs an initial review pass over the diff to fix issues. It then creates or updates a pull request following specified standards and shares the PR URL.
Inputs & outputs
When to use pr
- →Create new pull request
- →Update existing PR for review
- →Push branch changes for PR
About this skill
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
- Gather context:
- Current branch:
git branch --show-current - Working tree:
git status --short - Existing PR:
gh pr view --json number,title,url 2>/dev/null - Recent branch commits:
git log main..HEAD --oneline 2>/dev/null || git log -3 --oneline
- Current branch:
- Check for overlapping work so we don't step on a teammate's toes:
- List open PRs touching the same area:
gh pr list --state open --json number,title,url,author,headRefName,updatedAt, and search for related work:gh pr list --search "<keywords>" --state open. - Compare their changed files against ours (
gh pr diff <number> --stat) to judge real overlap, not just a shared filename. - If someone already has a PR open for this: prefer building on their work over racing it. Offer to base our branch on theirs, contribute a review or a follow-up commit, or hand our changes over. Only open a competing PR when the approaches genuinely diverge, and when we do, link to theirs and explain how ours differs so the choice is easy for reviewers.
- Surface what you found to the user before proceeding when there's meaningful overlap.
- List open PRs touching the same area:
- Prepare the branch:
- If on
main, create a new branch with a descriptive name. - Commit relevant changes, excluding secrets and explicitly private content.
- Push the branch to the remote. Never force push.
- If on
- 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:- Does the change actually solve the stated problem, end to end, rather than papering over a symptom?
- Does it leave the codebase better than we found it — clearer names, no dead or duplicated code, no drive-by regressions?
- Any weird abstractions, premature generality, or unnecessary code that a reviewer would flag? Prefer the smaller, more direct version.
- Fix what's clearly worth fixing so the human review starts from a strong diff. If a finding needs a product or design call, raise it with the user instead of guessing.
- Commit and push any fixes from this pass so the remote branch matches before the PR is created, updated, or shared. Never force push.
- If no PR exists, create one with
gh pr create. - If a PR exists, read it with
gh pr view --json title,body,labels,numberand inspect the changed-file summary withgh pr diff --stat. - Update the title or body with
gh pr editif the existing PR does not match the current diff or thewrite-prstandards. - Search for related issues and link them in the PR description with
Closes #123orRelates to #123where appropriate. - 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
- Follow
../write-pr/SKILL.mdfor all PR content standards. - Do not include AI attribution in commit messages, PR titles, or PR descriptions.
- Do not add yourself or an AI tool as a co-author.
When not to use it
- →When force pushing to the remote branch
- →When including AI attribution in commit messages, PR titles, or descriptions
- →When adding yourself or an AI tool as a co-author
Limitations
- →Do not include AI attribution in commit messages, PR titles, or PR descriptions
- →Do not add yourself or an AI tool as a co-author
- →Never force commit or force push
How it compares
This workflow systematically prepares and reviews a pull request, including checking for overlapping work and performing an initial self-review, which is more thorough and collaborative than simply pushing changes and creating a PR.
Compared to similar skills
pr side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pr (this skill) | 0 | 19d | No flags | Intermediate |
| github-workflow-automation | 11 | 2mo | Review | Advanced |
| testing-workflow | 16 | 9mo | Review | Intermediate |
| github-actions-templates | 7 | 3mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by tldraw
View all by tldraw →You might also like
github-workflow-automation
ruvnet
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
testing-workflow
amo-tech-ai
Comprehensive testing workflow for E2E, integration, and unit tests. Use when testing applications layer-by-layer, validating user journeys, or running test suites.
github-actions-templates
wshobson
Create production-ready GitHub Actions workflows for automated testing, building, and deploying applications. Use when setting up CI/CD with GitHub Actions, automating development workflows, or creating reusable workflow templates.
glab
NikiforovAll
Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line. Use this skill when the user needs to interact with GitLab resources or perform GitLab workflows.
create-pr
n8n-io
Creates GitHub pull requests with properly formatted titles that pass the check-pr-title CI validation. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
gh-fix-ci
openai
Use when a user asks to debug or fix failing GitHub PR checks that run in GitHub Actions; use `gh` to inspect checks and logs, summarize failure context, draft a fix plan, and implement only after explicit approval. Treat external providers (for example Buildkite) as out of scope and report only the details URL.