# Git PR

> Git PR is an open-source agent skill for developer tools. Guides an agent through writing PR titles, bodies and gh CLI pull request steps. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ivy00johns/Skill-Madness/tree/main/skills/git/git-pr
- **Repository:** https://github.com/ivy00johns/skill-madness
- **GitHub stars:** 12
- **License:** MIT
- **Skill name:** git-pr
- **Collection:** https://github.com/ivy00johns/Skill-Madness
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets conventions for opening or revising GitHub pull requests in the Skill-Madness repository. It covers a title pattern built on the same type prefixes used for commits, a body layout with summary, changes and test plan sections, and guidance on flagging migration or deployment-ordering risks for reviewers.

The workflow has the agent push the branch with upstream tracking, check whether a PR already exists before creating one, and avoid duplicates by editing an open PR instead. It also covers merged branches, where the work is treated as already shipped, and lookup failures, which are reported rather than assumed to mean no PR exists. PR creation and editing go through the gh CLI with the body passed in a heredoc, and the skill ends with a pre-push checklist.

It relies on Bash and Read tools and the gh command-line client being available and authenticated. It includes no scripts or reference files.

## When your agent uses it

> PR title format, body structure and the gh CLI workflow for creating or updating pull requests in this repo. Use when opening a PR, writing or updating a PR description, or preparing changes for review, and whenever you're about to run `gh pr create`. Trigger on "create a PR", "open a PR", "PR description", "ready for review".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/git/git-pr)
- [Asks for: Read, Bash](https://github.com/ivy00johns/Skill-Madness/blob/HEAD/skills/git/git-pr/SKILL.md)
- [License: MIT](https://github.com/ivy00johns/Skill-Madness/tree/HEAD/skills/git/git-pr)

## Features

- **Title format rules:** Defines a type-prefixed, sentence-case title pattern with a length guideline for PRs.
- **PR body template:** Provides a Summary, Changes and Test plan structure that scales to the size of the change.
- **Existing PR detection:** Checks for an open or merged PR on the branch before creating a new one to avoid duplicates.
- **gh CLI workflow:** Shows the commands for pushing, creating, editing and checking pull requests with gh.
- **Pre-push checklist:** Lists final checks on title, body, test plan and CI status before review.

## Good for

- Open a pull request for my current branch
- Write a PR description summarizing these changes
- Update the title and body of an existing pull request
- Check whether this branch already has a PR before pushing

## Install

### Claude Code

This skill ships in the `skill-madness` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madness
```

Or copy only this skill to `~/.claude/skills/git-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/git-pr &&
cp -R "$tmp/skills/git/git-pr" ~/.claude/skills/git-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/git-pr` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/git-pr` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/git-pr &&
cp -R "$tmp/skills/git/git-pr" ~/.agents/skills/git-pr &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/git-pr` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/git-pr` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/git-pr &&
cp -R "$tmp/skills/git/git-pr" ~/.cursor/skills/git-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/git-pr` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/git/git-pr
```

Or copy the folder to `~/.gemini/skills/git-pr` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/git-pr`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/git-pr &&
cp -R "$tmp/skills/git/git-pr" ~/.copilot/skills/git-pr &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/git-pr` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git
```

Then copy `Skill-Madness/skills/git/git-pr` into your agent's skills folder as `git-pr`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What tools does Git PR need?

It is set to use the Read and Bash tools, and its workflow relies on the gh CLI.

### Does Git PR create duplicate pull requests?

No. It instructs the agent to check for an existing PR first and to edit it instead of creating another one.

### What happens if the branch's PR was already merged?

The agent should note that the work has shipped and should not create a new PR.

### How do I install Git PR in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/git-pr to use it in all your projects, or to .claude/skills/git-pr in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.

### Does Git PR run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Git PR?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Git PR?

The closest alternatives to Git PR are PR writer, PR, Make PR, Make PR easy to review and Code review.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [PR writer](https://ai-powered.com/skills/pr-writer): PR writer is an open-source agent skill for developer tools.
- [PR](https://ai-powered.com/skills/pr): PR is an open-source agent skill for developer tools.
- [Make PR](https://ai-powered.com/skills/make-pr): Make PR is an open-source agent skill for developer tools.
- [Make PR easy to review](https://ai-powered.com/skills/make-pr-easy-to-review): Make PR easy to review is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-aws-solutions): Code review is an open-source agent skill for developer tools.
- [Commit push PR](https://ai-powered.com/skills/commit-push-pr-redpanda-data): Commit push PR is an open-source agent skill for developer tools.
- [Review PR](https://ai-powered.com/skills/review-pr-tonyghiani): Review PR is an open-source agent skill for developer tools.
- [GitHub workflow](https://ai-powered.com/skills/github-workflow): GitHub workflow is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/git-pr
