# open-pr

The open-pr Claude Code skill opens and updates GitHub pull requests. It runs when asked to create a PR, push changes to one, or revise its description.

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

## What it does

The skill identifies the target branch, fetches the related issue, and reads the changes before creating or updating a pull request. It checks the diff size and uses the `pr` skill to write the PR body, including a `Closes` or `Part of` issue reference.

For a new PR, it pushes the branch, sets the base and title, requests a reviewer, then checks the issue link. For an existing PR, it rewrites the body to cover the full diff. Git and the `gh` command must be available in the project.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill open-pr -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill open-pr -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill open-pr -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install clhbid/agent-context skills/open-pr
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill open-pr -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/clhbid/agent-context --path skills/open-pr
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add clhbid/agent-context --skill open-pr -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/clhbid/agent-context/tree/HEAD/skills/open-pr/SKILL.md

## When to use it
- open a pull request against the intended base branch
- rewrite a PR description to match the full diff
- link a pull request to an issue in this or another repository
- check diff size and confirm the issue reference

## Example prompts
- Open a pull request for the current branch and link its issue.
- Push the changes to the existing PR and rewrite its description for the full diff.
- Check the base branch, diff size, and issue link for this PR.

## Similar
- [om-open-pr](https://affpapa.org/en/nevibecode/skills/om-open-pr.md) — skill · 3900 installs
- [open-sourcing](https://affpapa.org/en/nevibecode/skills/open-sourcing.md) — skill · 1900 installs
- [merge-open-prs](https://affpapa.org/en/nevibecode/skills/merge-open-prs.md) — skill · 1700 installs
- [open-source-marketing](https://affpapa.org/en/nevibecode/skills/open-source-marketing.md) — skill · ★ 88 repo stars
- [Open Source Release Checklist Builder (YAML)](https://affpapa.org/en/nevibecode/prompts/open-source-release-checklist-builder-yaml.md) — prompt · ★ 178201 repo stars
- [open-source-librarian](https://affpapa.org/en/nevibecode/agents/open-source-librarian.md) — subagent · ★ 1064 repo stars

From the same set: [clhbid/agent-context](https://affpapa.org/en/nevibecode/by/clhbid/agent-context.md) — 8 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
