Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add clhbid/agent-context --skill open-pr -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/open-pr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/open-pr/

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.

Similar skills

All skills for Git and GitHub →

From the same set8

issue-tracker The issue-tracker Claude Code skill defines terms and conventions for GitHub issues. It activates for issue and board work in clhbid repositories. CX Codex +1 795installs afk-loop The afk-loop Claude Code skill lays out a manual workflow for delegating work to coding agents and reviewing their pull requests. It helps distinguish tasks for Copilot from work that needs Claude Code and human input. CX Codex +1 792installs cycle-review A skill for Claude Code prepares cycle-review notes, processes meeting decisions and changes cycle membership. It runs for review meetings and follow-up updates to the project tracker. CX Codex +1 791installs writing-lean The writing-lean Claude Code skill guides concise code and project writing. It applies to edits in comments, docs, issues, pull requests, reviews, and commit messages. CX Codex +1 769installs house-rules The house-rules Claude Code skill sets conventions for code and project writing. It activates when an agent writes, tests, or reviews code, issues, or business documents in a clhbid repository. CX Codex +1 754installs email-to-issue The email-to-issue Claude Code skill turns Outlook threads into GitHub issues or comments. It processes flagged mail or threads selected by subject. CX Codex +1 723installs review-walkthrough The review-walkthrough Claude Code skill guides a reviewer through a pull request and explains the code as they go. It gathers agreed findings into one GitHub review at the end. CX Codex +1 536installs

Project sponsors

Companies that keep this analytics open