pull-request
FreeNo executable scriptsNot checkedSend a Github Pull Request of your work. Normally done after completing a ticket/issue. Check on CI and follow up on any failures.
by gregwebs★ 26 GitHub starsAbout this skill
Definitions
PR=Pull Request
Access
Access Github if the capability is available and the user instructs it.
- skills
- /github-app skill: push with
${CLAUDE_SKILL_DIR}/../github-app/scripts/gh-app.sh git push, then create the PR with${CLAUDE_SKILL_DIR}/../github-app/scripts/gh-app.sh pr create - /github-actions-ci: check on CI with its bundled helper
- /github-app skill: push with
- Github API or MCP
- github CLI
Branching
Update the default branch to the latest from the origin. If you were already on the default branch, branch from there. Otherwise, check if the current branch has been merged into the updated default (could be a squash merge). If it has been merged, then branch off the updated default (move your changes there). Otherwise, branch off of the current branch. First ensure the updated default is merged into it.
If you are working on a sub issue of a parent issue, then look for an active parent branch to use as the base. All sub issues that do not have dependencies should use the discovered default branch or the parent branch as their base branch.
If the issue requires an existing PR to be merged, then the base branch will be the branch for that PR. Create it as a Stacked PR.
Description
For the PR description, use the /document-changes skill.
If the PR resolves an issue, ensure it is auto-closed by using the "Resolves" keyword: "Resolves #10".
When you write a commit message, follow these 7 rules: Rule 1: Separate the subject line from the body with a single blank line. Rule 2: Limit the subject line to 50 characters (72 is the absolute hard limit). Rule 3: Capitalize the first letter of the subject line. Rule 4: Do not end the subject line with a period. Rule 5: Use the imperative mood in the subject line (e.g., "Fix bug," "Add feature," not "Fixed" or "Adds"). Test formula: It must complete the sentence: "If applied, this commit will [your subject line here]". Rule 6: Wrap the body text manually at 72 characters to prevent Git formatting issues. Rule 7: Use the body to explain what and why vs. how. Assume the code explains the how; the message must explain the context and reasoning.
Check on CI
When CI access is available and the user requested PR follow-up, check the CI run for the PR. If there are CI failures, investigate them and change the PR.
If the CI failures are not related to your work, suggest filing an issue or otherwise fixing them separately. If they are related to your work, and the changes needed are not minor, fix them using the same workflow you used to write the code.
If CI is in progress and the branch has multiple commits, check if there are incomplete runs on older commits that can be canceled. Ask the user if you can cancel them unless you are already pre-authorized to cancel.
Cleaning up history
Before pushing the PR, squash merge commits into a useful history. Once the PR is opened, additional commits should be added on so reviewers can see additional changes. If additional commits added onto the PR are not useful for history
- if it is best to squash merge the PR into a single commit, tell the user
- otherwise offer to squash a subset of the commits together
Install pull-request in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the pull-request skill do?
Send a Github Pull Request of your work. Normally done after completing a ticket/issue. Check on CI and follow up on any failures.
How do I install the pull-request skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the pull-request skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
ci-review
The scan that the plugin's GitHub Action runs.
by Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
by GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
by GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
by GitHub