Skip to content
Back to skills

Pull Request

ASecurity

Use before you write a PR or an issue, and before you merge a PR.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgit

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add c-w-z/commit-decision-record --skill pull-request --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pull Request?

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

Security grade badge for Pull Request
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/c-w-z-pull-request/badge)](https://www.skillsdirectory.com/skills/c-w-z-pull-request)

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-request
description: Use before you write a PR or an issue, and before you merge a PR.
---

# Pull request and issue

The rules are in `CONTRIBUTING.md`: Branches and PRs, Text for outside readers, Pull requests and Issues. The reader has only the repo and your text. The reader did not see the conversation. This skill gives the procedure.

## Before you open

1. Make sure that the commits are done.
2. Check the scope. The PR must hold one group of decisions that a reviewer can judge alone. If it holds two groups, split it into two PRs.

## Write the text

- For a PR, follow Pull requests in `CONTRIBUTING.md`. Also write the comment for the reviewer now, and run the cold-read check on it. Ask the user for both actions in one request: to open the PR and to post the comment.
- For an issue, follow Issues in `CONTRIBUTING.md`.
- Write a commit hash as plain text. Do not put it in backticks. GitHub links a plain hash to its commit, but it does not link a hash in a code span.

## Cold-read check

Run this check on the title and the body before you submit.

1. Read the text again. Use only the diff and the repo. Do not use the conversation.
2. Find each phrase that points to the conversation. Examples: "as you said", "earlier", "the above", "option B", "this time", "as discussed". Rewrite it with the fact that it points to, or link a commit, an issue or a doc section.
3. Find each name or abbreviation that you or the user made up in the conversation. Replace it with the term in `docs/design/GLOSSARY.md`. If no term exists, write the full description.
4. Check each claim. The diff, the repo or a linked source must support it.

## Labels

If you have triage access or more, add labels when you open the issue or the PR (`gh issue create --label`, `gh pr create --label`).

- Run `gh label list` and read the descriptions. The descriptions define the labels.
- Add one `type/` label. An issue template adds it to a new issue. Make sure that it is correct.

## After you open

1. For a PR, post the comment for the reviewer.
2. Report the PR or issue number and the branch.

## Before the merge

Follow Merging in `CONTRIBUTING.md`. Ask the user before you merge, and before you change a PR body.

- The final diff of a PR: `gh pr diff <number>`.
- To update a body, write it, run the cold-read check on it, then run `gh pr edit <number> --body-file <file>`.
- To merge a single PR without prompts, give a merge method that the merge settings allow: `gh pr merge <number> --squash` or `gh pr merge <number> --merge`. Without a merge method, `gh pr merge` fails in a session without prompts and does not merge.

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.