PR rules: a last read of the whole diff before the PR, title and description, assignees and labels, screenshots, merging your own task's PR with squash merge once its checks pass, a merge that the repository keeps for a person, post-merge branch, Docker and worktree cleanup, and repository settings. Load when opening a PR, merging, or checking repository settings.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Pull Requests?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/the-up-pull-requests)
---
name: pull-requests
description: "PR rules: a last read of the whole diff before the PR, title and description, assignees and labels, screenshots, merging your own task's PR with squash merge once its checks pass, a merge that the repository keeps for a person, post-merge branch, Docker and worktree cleanup, and repository settings. Load when opening a PR, merging, or checking repository settings."
---
# Pull Requests
- Keep each PR small and focused on one purpose.
- Open the PR when the task's change is complete and its checks pass, as the [Quality Checks](../quality-checks/SKILL.md) rules describe. Before you open it, read the task's whole change once as a single diff against the main branch, in its final state: fix an acceptance criterion it doesn't meet, a bug or an unhandled case, a security problem, and a missing or weak test, and leave no unnecessary files, debug output, comments, secrets, or out-of-scope changes. Nobody reviews the change after you, as the [Core Rules](../core-rules/SKILL.md) say, so this read is the last look it gets.
- Write the PR title in the header format from the [Commits](../commits/SKILL.md) rules and validate it the same way; with squash merge, it becomes the commit header.
- Write a short, professional description: the summary, the rationale, the verification results (including incomplete checks and access limits), and the full task link; where relevant, screenshots and important risks. Don't add empty sections, unnecessary technical dumps, or unverified claims.
- Set the assignees from the answers collected at the start of [Task Management](../task-management/SKILL.md), and add labels that fit the change. Don't request a reviewer, unless the repository requires an approval.
- For UI changes, take screenshots of the real result and add them to the PR.
- Merge your own task's PR yourself, as soon as its required checks are green; watch them in the background, as the Core Rules describe. When a check fails, fix the cause on the task branch, push, and wait for the checks again. Never merge over a failing or pending required check, and never get around one, for example with an administrator's override or by removing the check. In a repository without CI, the checks you ran before the PR decide.
- When the repository keeps the merge for a person, through a standing instruction in its index or a branch rule such as a required approval, don't merge and don't bypass the rule: request what it requires from the people the standing instructions name, or ask the user who that is, and tell the user that the merge waits for it.
- Always use squash merge. After merging, delete the remote branch if it wasn't deleted, and run `git fetch --prune` in the main clone. After confirming that the PR is merged, remove the task's Docker resources according to the [Docker](../docker/SKILL.md) rules, then its worktree and local branch according to the [Worktrees and Branches](../worktrees-and-branches/SKILL.md) rules; delete the branch with `git branch -D` (`-d` doesn't work after a squash merge).
- Check these repository settings (GitHub, GitLab, Bitbucket), and get the user's approval before changing any that differ:
- only squash merge is allowed,
- the squash commit message is built from the PR title and description, even for single-commit PRs (GitHub's default uses the commit message for single-commit PRs),
- branches are deleted automatically after merge,
- direct pushes to the main branch are disabled,
- the quality checks are required checks that block merging.