# pr-creator

pr-creator turns your current branch into a pull or merge request. You see the exact preview first and approve before anything is created.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 195 installs · ★ 3 repo stars
- Author: b-mendoza
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/b-mendoza/agent-skills/tree/HEAD/skills/pr-creator/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/b-mendoza-pr-creator

## What it does

The skill walks PR creation through a state machine. It looks at remotes and the platform, runs preflight checks for auth and already-open requests, pins the diff, drafts a title and body, then suggests reviewers and labels. Nothing is created until you approve the frozen preview.

Six subagents carry the phases: `repo-state-inspector`, `preflight-validator`, `diff-analyzer`, `pr-drafter`, `review-metadata-suggester`, `pr-submitter`. When a host cannot dispatch them, the same steps run inline and emit the same status blocks. The state table sits in `state-machine.md`, the diagram in `flow-diagram.md`, the contracts under `references/`.

No `allowed-tools` list ships with the package, so the host CLIs (`git`, `gh`, `glab`) do the actual work. Without an authenticated `gh` or `glab` the preflight stops. An open PR for the same head/base pair halts creation instead of producing a duplicate. Repository text and fetched pages count as data; imperative lines inside them get reported as a suspected injection.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add b-mendoza/agent-skills --skill pr-creator -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pr-creator/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pr-creator/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add b-mendoza/agent-skills --skill pr-creator -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pr-creator/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add b-mendoza/agent-skills --skill pr-creator -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pr-creator/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install b-mendoza/agent-skills skills/pr-creator
```

2. **Manually: put the files in place**
- File: `.github/skills/pr-creator/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add b-mendoza/agent-skills --skill pr-creator -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/b-mendoza/agent-skills --path skills/pr-creator
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pr-creator/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add b-mendoza/agent-skills --skill pr-creator -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/b-mendoza/agent-skills/tree/HEAD/skills/pr-creator/SKILL.md

## When to use it
- open a PR from the current branch without hand-writing the description
- get a Conventional Commits title out of the diff
- stop a duplicate PR when one is already open
- push from a fork into upstream
- pick reviewers and labels before submitting

## Example prompts
- Create a PR from this branch into `main` as a draft
- The branch is ready for review — open a pull request with `alice` and `bob` as reviewers
- Open a merge request against `upstream/main` with the `docs` label

## Similar
- [pr-description](https://affpapa.org/en/nevibecode/skills/jiachen-minimax-code-team-pr-description.md) — skill · ★ 741 repo stars
- [pr-review](https://affpapa.org/en/nevibecode/skills/jiachen-minimax-code-team-pr-review.md) — skill · ★ 741 repo stars
- [babysit-pr](https://affpapa.org/en/nevibecode/skills/amelnagdy-babysit-pr.md) — skill · 584 installs
- [shepherd](https://affpapa.org/en/nevibecode/skills/shepherd.md) — skill · 1400 installs
- [om-followup-issue-from-pr](https://affpapa.org/en/nevibecode/skills/om-followup-issue-from-pr.md) — skill · 3700 installs
- [greploop](https://affpapa.org/en/nevibecode/skills/greploop.md) — skill · 3100 installs

## Other versions with the same name
- [pr-creator · mblode](https://affpapa.org/en/nevibecode/skills/pr-creator.md) — 613 installs

From the same set: [b-mendoza/agent-skills](https://affpapa.org/en/nevibecode/by/b-mendoza/agent-skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
