Create Pull Request

VerifiedCaution

Create a pull request with proper branch, description, and labels, including pre-flight checks.

Sby Skills Guide Bot
DevelopmentIntermediate
8/28/2026
Claude Code
#pull-request#git#github-cli#code-review#workflow

Recommended for

Automated summary

Automates pull request creation: branch naming, pre-flight checks (tests, lint), then opening the PR via gh with a structured body and labels.

Strengths

  • Enforces gates before the PR: unit tests, JS lint, and PHP lint when PHP files changed
  • Produces a standardized PR body (summary, changes, testing checklist, notes) that speeds up review
  • Infers a consistent branch prefix (feature/fix/docs/refactor) from the commit history
  • Accepts a base branch argument and pushes the branch with -u before creating the PR

Limitations

  • Assumes a Node/WordPress stack (npm test, wp-scripts, composer lint); the check commands must be swapped for other projects
  • Requires gh to be installed and authenticated, and labels are only applied if they already exist on the repo
  • Runs tests and lint but fixes nothing: a failure blocks PR creation
When to use it

Use it when a working branch is ready and you need to open a clean, well-documented GitHub PR quickly.

When not to use it

Avoid it on projects whose test/lint toolchain differs significantly, or when the PR needs hand-written business context.

Security analysis

Caution
Quality score85/100

The skill performs legitimate development workflow actions using Bash, git, gh, and npm. It does not exfiltrate data, delete files, or disable safety. The main risk is that npm/composer scripts can run arbitrary code, and composer is not in the allowed-tools list, so the skill may not work as declared.

Findings
  • •Runs npm test and npx wp-scripts lint-js, which execute scripts defined in package.json; these could execute arbitrary code from the repository.
  • •Instructs running composer lint even though composer is not included in the declared allowed-tools, which may cause the skill to fail or be blocked.
  • •Uses gh and git commands that can modify repository state (push branch, create PR, add labels), but these are expected for the skill's purpose.
How this analysis is made

Examples

Standard PR to main
/pr
PR targeting a release branch
/pr release/2.4
Open a PR after a bug fix
Turn this fix into a pull request — branch off main, run the checks, and open it against develop

name: pr description: Create a pull request with proper branch, description, and labels argument-hint: "[base-branch]" allowed-tools: "Bash(git *), Bash(gh *), Bash(npm *), Read, Grep"

Create Pull Request

Branch naming

If not already on a feature branch, create one from the commit history:

  • Features: feature/<short-description>
  • Fixes: fix/<short-description>
  • Docs: docs/<short-description>
  • Refactors: refactor/<short-description>

Pre-flight checks

  1. Run npm test — unit tests must pass
  2. Run npx wp-scripts lint-js on changed JS files
  3. Run composer lint if PHP files changed
  4. Check git diff main...HEAD to understand full scope of changes

Create the PR

Base branch: $ARGUMENTS (default: main)

Use gh pr create with:

  • Title: under 70 chars, imperative mood (e.g., "Add cron-list ability" not "Added cron-list ability")
  • Body format:
## Summary
<2-4 bullet points describing what changed and why>

## Changes
<list of files/areas affected>

## Testing
- [ ] Unit tests pass (`npm test`)
- [ ] Ability tests pass (`npm run test:abilities -- --file tests/abilities/core-abilities.test.js`)
- [ ] JS lint clean (`npm run lint:js`)
- [ ] PHP lint clean (`composer lint`)
- [ ] Manually tested in browser (if UI changes)

## Notes
<any migration steps, breaking changes, or reviewer guidance>
  • Labels: add if available — enhancement, bug, documentation, breaking-change
  • Push branch with -u flag before creating PR

After creating

Print the PR URL so the user can review it.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/create-pull-request-mtchbb06/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/create-pull-request-mtchbb06' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-pull-request-mtchbb06/download' --output '.skill-downloads/create-pull-request-mtchbb06/SKILL.md.part' && mv '.skill-downloads/create-pull-request-mtchbb06/SKILL.md.part' '.skill-downloads/create-pull-request-mtchbb06/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash(git *), Bash(gh *), Bash(npm *), Read, Grep

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/create-pull-request-mtchbb06/SKILL.md' && test -s '.skill-downloads/create-pull-request-mtchbb06/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-pull-request-mtchbb06' '.claude/skills/pr'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/create-pull-request-mtchbb06'

openskills read 'create-pull-request-mtchbb06'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/create-pull-request-mtchbb06/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills