Skip to content
Back to skills

Pull Requests

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsdockergitsecurity

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add the-up/ai --skill pull-requests --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pull Requests?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pull Requests
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/the-up-pull-requests/badge)](https://www.skillsdirectory.com/skills/the-up-pull-requests)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.