# Create PR

> Create PR is an open-source agent skill for developer tools. Turns a finished branch or a fix left on main into a guarded, linked pull request. It is available on Claude Code.

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

## About

This skill takes work that was built outside the normal flow and gets it into a pull request. If the fix sits directly on the default branch, it first moves the work onto its own branch and later rewinds the default branch. It commits any leftover changes and pushes them through the repository's guarded commit and push scripts, links the related issue, checks the PR title, and opens the PR as ready for review when the full test suite passes, or as a draft when requested or when the test fails.

Before it writes anything, it refuses a detached HEAD, a leftover debug probe on the default branch, a branch with no commits ahead, or a closed issue. If a PR already exists for the branch or issue, it reports that and opens none. It expects an authenticated GitHub CLI with push rights, git, and a committed repository profile generated by the init step. The scripts are written in bash.

It is part of a lifecycle suite: merging the resulting PR is handled by a separate merge skill, and building issues, reviewing diffs and filing issues are handled by other skills.

## When your agent uses it

> Open a pull request for a finished feature branch — or a fix left on the default branch itself (debug-issue's hand-off), which this skill branches off first: push it through the guard, link its issue, gate the title, and open it ready when the full test passes (a draft when asked, or when the test is red). Triggers: "open a PR for this branch", "create a pull request for my fix", "turn this branch into a PR", "I just fixed the flaky test on main, open a PR for it", « ouvre une PR pour ce correctif », « crée la pull request », « le correctif est commité, ouvre la PR ». Does NOT apply to merging a PR (merge-pr), building a planned issue (implement-issue), reviewing a diff (code-review), or filing an issue (create-issue).

## What it can access

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

- [Runs shell scripts](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/create-pr)
- [No network calls found in its scripts](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/create-pr)
- [License: MIT](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout/skills/create-pr)

## Features

- **Default branch rescue:** Moves a fix committed directly on the default branch onto its own branch and rewinds the default afterward.
- **Guarded push:** Commits leftover changes and pushes the branch through the suite's guard scripts.
- **Issue linking:** Connects the pull request to its related issue, when one is given.
- **Title gate:** Checks the pull request title before the PR is created.
- **Ready or draft decision:** Opens the PR ready for review when the full test passes, or as a draft otherwise.
- **Duplicate PR check:** Stops and reports when a pull request already exists for the branch or issue.

## Good for

- Open a pull request for my finished feature branch
- Turn the fix I just committed on main into a PR
- Create a pull request for my bug fix linked to issue 42
- Open the PR as a draft because the tests are still failing

## Install

### Claude Code

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

```sh
/plugin marketplace add phmatray/tagout
/plugin install tagout@tagout-marketplace
```

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

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

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

### Codex

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

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

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

### Cursor

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

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

For one project only, put the folder in `.cursor/skills/create-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/phmatray/tagout.git --path plugins/tagout/skills/create-pr
```

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

### VS Code

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

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

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

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/phmatray/tagout.git
```

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

## FAQ

### What does Create PR need to run?

An authenticated GitHub CLI with push rights, git, and the repository profile generated by init.

### What happens if the full test fails?

The PR is opened as a draft and the reason is stated, so it is not merged by mistake.

### Does Create PR merge the pull request?

No. Merging is handled by the separate merge-pr skill, which it names as the next step.

### What if a PR already exists for the branch?

The skill reports the existing PR and opens no new one.

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

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

### Does Create PR run scripts?

Yes. It runs shell scripts. No network calls were found in its 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 Create 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 Create PR?

The closest alternatives to Create PR are Make PR, Open draft PR, Git PR, Commit push PR and Review PR.

## Where this comes from

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

## Alternatives

- [Make PR](https://ai-powered.com/skills/make-pr): Make PR is an open-source agent skill for developer tools.
- [Open draft PR](https://ai-powered.com/skills/open-draft-pr): Open draft PR is an open-source agent skill for developer tools.
- [Git PR](https://ai-powered.com/skills/git-pr): Git PR 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.
- [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.
- [Merge PR](https://ai-powered.com/skills/merge-pr): Merge PR is an open-source agent skill for developer tools.
- [PR writer](https://ai-powered.com/skills/pr-writer): PR writer is an open-source agent skill for developer tools.

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