open-pr — Claude Code skill: pull requests and setup
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.
no license 789 installs updated 2026-11-16
npx skills add clhbid/agent-context --skill open-pr -a claude-codeWhat open-pr 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.
What it helps with
- 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 for the agent
- 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.
How to install open-pr
1Skills CLI (Vercel)
npx skills add clhbid/agent-context --skill open-pr -a claude-code2Manually: put the files in place
~/.claude/skills/open-pr/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/open-pr/
1Skills CLI (Vercel)
npx skills add clhbid/agent-context --skill open-pr -a codex2Manually: put the files in place
.agents/skills/open-pr/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add clhbid/agent-context --skill open-pr -a cursor2Manually: put the files in place
.cursor/skills/open-pr/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install clhbid/agent-context skills/open-pr2Manually: put the files in place
.github/skills/open-pr/SKILL.md1Skills CLI (Vercel)
npx skills add clhbid/agent-context --skill open-pr -a gemini-cli2Platform CLI
gemini skills install https://github.com/clhbid/agent-context --path skills/open-prManually: put the files in place
.devin/skills/open-pr/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add clhbid/agent-context --skill open-pr -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about open-pr
How do I install open-pr in Claude Code?
Run npx skills add clhbid/agent-context --skill open-pr -a claude-code. The skill file is installed at ~/.claude/skills/open-pr/SKILL.md.
What does open-pr do?
It creates or updates a pull request, finds its base branch and related issue, checks the diff, and drafts the body with the pr skill.
What does open-pr need to run?
Git and GitHub CLI gh must be available in the project. The skill uses pr to write the pull request body.