Open a GitHub PR

VerifiedCaution

Open a pull request on GitHub using the gh CLI and the repo's PR template.

Sby Skills Guide Bot
DevelopmentBeginner
8/14/2026
Claude CodeCursorCodex
#github#pull-request#git#gh-cli#workflow

Recommended for

Automated summary

Opens a GitHub pull request against main with the gh CLI, filling in the repository's PR template after local checks pass.

Strengths

  • Requires `make ci` to pass before opening a PR, preventing merges with failing lint or tests
  • Walks through every template section (summary, area, verification, checklist, reviewer notes)
  • Reinforces branch naming conventions (feat/*, fix/*, docs/*, ci/*, chore/*, refactor/*)
  • Warns against retargeting a community PR away from main without maintainer approval

Limitations

  • Assumes a GitHub repo, an authenticated gh CLI, and an existing `make ci` target
  • Base branch is hardcoded to main, so repos with a different default branch are not handled
  • Does not draft the summary or inspect the diff; the PR body must be completed by hand
When to use it

Use it when a scoped branch is ready and you want a correctly templated pull request opened against main.

When not to use it

Avoid it for repos not hosted on GitHub, without configured gh auth, or whose integration branch is not main.

Security analysis

Caution
Quality score88/100

The skill is a benign, conventional GitHub PR workflow. It does not obfuscate payloads, exfiltrate secrets, disable safety, or use destructive commands. However, it invokes powerful tools for legitimate purposes: `make ci` runs arbitrary Makefile-defined code, and `git push`/`gh pr create` perform authenticated network writes to a remote repository. This warrants 'caution' rather than 'safe' under the grading guidance.

Findings
  • •Runs `make ci`, which executes arbitrary commands defined in the repository's Makefile
  • •Performs remote write operations via `git push -u origin HEAD` and `gh pr create`, requiring authenticated GitHub credentials with write access
  • •`gh pr create --fill-first` may auto-populate a PR body from commits; the skill instructs manual editing but the generated content could be inaccurate if not reviewed
How this analysis is made

Examples

Open a feature PR
My feat/user-export branch is finished — run make ci and open a PR against main using our template.
Open a fix PR
Push fix/login-timeout and create the pull request to main, filling in the verification section with the commands you ran.
Open a CI change PR
Open a PR for my ci/cache-deps branch targeting main, ticking the CI-build-release box and noting that make ci was only partially run.

name: pr description: Open a GitHub PR targeting the correct branch with the project template

/pr

Open a pull request on GitHub using the gh CLI and the repo's PR template.

Steps

  1. Confirm the branch and target:
    • Base branch is main.
    • Head branch should be a scoped branch such as feat/*, fix/*, docs/*, ci/*, chore/*, or refactor/*.
  2. Ensure local checks pass first:
    make ci
    
    Do not open a PR with failing lint/tests.
  3. Push the branch:
    git push -u origin HEAD
    
  4. Create the PR, filling the template (.github/PULL_REQUEST_TEMPLATE.md):
    gh pr create --base main --fill-first
    
    Then edit the body to complete each section:
    • Summary — what changed and why.
    • Area — tick the relevant box (architecture / benchmark / use case / docs / DX / CI-build-release).
    • Verification — paste the commands you ran (make ci, manual checks).
    • Checklist — tick honestly; don't tick boxes you didn't satisfy.
    • Notes for Reviewers — anything subtle.

Notes

  • Keep the PR scoped to one area. Split unrelated changes.
  • If make ci was not fully run, say so in Verification rather than implying it passed.
  • Never retarget a community PR away from main unless a maintainer explicitly asks for 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/open-a-github-pr-msshyuw5/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/open-a-github-pr-msshyuw5' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/open-a-github-pr-msshyuw5/download' --output '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md.part' && mv '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md.part' '.skill-downloads/open-a-github-pr-msshyuw5/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.

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/open-a-github-pr-msshyuw5/SKILL.md' && test -s '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/open-a-github-pr-msshyuw5' '.claude/skills/pr'

Cursor
test -f '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md' && test -s '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/pr' && cp -R '.skill-downloads/open-a-github-pr-msshyuw5' '.cursor/skills/pr'

Codex
test -f '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md' && test -s '.skill-downloads/open-a-github-pr-msshyuw5/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/pr' && cp -R '.skill-downloads/open-a-github-pr-msshyuw5' '.agents/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/open-a-github-pr-msshyuw5'

openskills read 'open-a-github-pr-msshyuw5'

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/open-a-github-pr-msshyuw5/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