Create a GitHub PR

VerifiedCaution

Push the current branch and open a PR using the project's PR template. Updates the CHANGELOG and runs pre-commit checks.

Sby Skills Guide Bot
DevelopmentIntermediate
7/22/2026
Claude Code
#pull-request#git#github#changelog#workflow

Recommended for

Automated summary

Pushes the current branch and opens a GitHub pull request following the bashdep PR template and conventions.

Strengths

  • Forces a CHANGELOG.md update before pushing, checking the Unreleased section first
  • Runs the local quality gate (make pre_commit/run) and forbids bypassing it with --no-verify
  • Produces a conventional-commit style title and a consistent, template-driven PR body
  • Links the PR to an issue through gh when a number is supplied

Limitations

  • Assumes a GitHub remote with an authenticated gh CLI, a main base branch, and an existing make pre_commit/run target
  • The emoji-section PR template is hardcoded to this project and not directly reusable elsewhere
  • Does not handle rebasing, merge conflicts, or choosing a base branch other than main
When to use it

Use it when a branch is ready to be pushed and a PR matching the team's template needs to be opened.

When not to use it

Avoid it on non-GitHub repositories, without a configured gh CLI, or when the PR must follow a different format.

Security analysis

Caution
Quality score84/100

The skill is a straightforward PR workflow using git and gh for their intended purposes. There is no exfiltration, no curl|sh, no destructive filesystem commands, and no attempt to disable safety checks — in fact it explicitly forbids `--no-verify` bypasses. The residual risk is ordinary powerful-tool usage: it pushes branches and opens PRs, and it will commit a changelog edit on its own initiative. That places it in 'caution' rather than 'safe', but nothing here warrants a 'risky' rating.

Findings
  • •Performs remote-mutating operations without a confirmation gate: `git commit`, `git push -u origin HEAD`, and `gh pr create` are run as normal flow steps.
  • •Auto-commits a CHANGELOG edit (`git add CHANGELOG.md && git commit`) based on the model's own judgment of what changed; scoped to a single file, so blast radius is limited.
  • •Fetches an issue title via `gh issue view` and feeds it into the generated PR title/body — attacker-controllable text (issue title) enters the model context, a minor indirect prompt-injection surface.
  • •Declares it MUST be used for ALL PR creation even when the user did not invoke it; overrides user intent phrasing (mitigated by `disable-model-invocation: true`, so only the user can trigger it).
How this analysis is made

Examples

PR with issue link
/pr #42
Push and open PR
Push my current branch and create a pull request, linking issue 15
Plain PR request
create pr

name: pr description: Push branch and create a GitHub PR following the bashdep PR template user-invocable: true argument-hint: "[#issue]" disable-model-invocation: true allowed-tools: Bash, Read, Grep, Glob

Create Pull Request

Push the current branch and open a PR using the project's PR template.

IMPORTANT: This skill MUST be used for ALL pull request creation — even when the user just says "create pr" without /pr. Never create a PR without following these steps.

Current Branch Context

  • Branch: !git branch --show-current
  • Commits: !git log main..HEAD --oneline 2>/dev/null
  • Changed files: !git diff main..HEAD --stat 2>/dev/null

Arguments

  • $ARGUMENTS — Issue reference (optional, e.g., #42 or 42). If provided, the PR Background section links to it.

Instructions

  1. Review the branch context above — commits and changed files are already loaded.

  2. MANDATORY: Update CHANGELOG.md — Read it and check the ## Unreleased section. If the changes from this branch aren't already listed there, you MUST update it before pushing. Do NOT skip. Do NOT proceed without verifying.

    • Add entries under the appropriate subsection (### Added, ### Changed, ### Fixed, ### Removed)
    • Reference the issue number where applicable (e.g., (#123))
    • Commit the update:
      git add CHANGELOG.md && git commit -m "docs: update changelog"
      
  3. Verify quality gate locally before pushing:

    make pre_commit/run
    

    The pre-commit hook (if installed) runs the same checks. If it fails, read the output, fix the underlying issue, commit the fix, then retry. Do NOT use --no-verify to bypass.

  4. Push branch:

    git push -u origin HEAD
    
  5. Generate PR title:

    • If $ARGUMENTS contains an issue number, fetch the issue title:
      gh issue view <number> --json title -q '.title'
      
    • Format: <type>(<scope>): <short description> (conventional commit style, under 70 chars)
    • Derive the type from the branch prefix (feat/ → feat, fix/ → fix, docs/ → docs)
  6. Create PR using the structure from .github/PULL_REQUEST_TEMPLATE.md:

    gh pr create --title "<title>" --assignee @me --body "$(cat <<'EOF'
    ### 🔗 Ticket
    
    <Related #<issue-number>, or "n/a">
    
    ## 🤔 Background
    
    <1-2 sentences: motivation and context for the changes>
    
    ## 💡 Goal
    
    <One sentence: the outcome this PR delivers>
    
    ## 🔖 Changes
    
    - <bullet 1: what changed and why>
    - <bullet 2>
    - <bullet 3> (optional)
    
    ## 🖼️ Screenshots
    
    n/a
    EOF
    )"
    

    MANDATORY: Always follow the template structure (🔗 Ticket → 🤔 Background → 💡 Goal → 🔖 Changes → 🖼️ Screenshots). Never use a different format.

    Assignee: Always assign to @me.

    Issue linking: Use Related #<n> in the Ticket section. Closes #<n> / Fixes #<n> are fine in commit bodies if the user wants auto-close, but keep the PR template's prose form.

    Body guidelines:

    • Background: 1-2 sentences of context (the why)
    • Goal: a single sentence framing the outcome
    • Changes: 2-4 short bullets focused on what + why
    • No file lists, no code snippets, no class names in the body
    • Drop the 🖼️ Screenshots section content for non-UI changes (replace with n/a)
  7. Report the PR URL to the user.

Example Usage

/pr
/pr #42
/pr 15

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-a-github-pr-mrwakddf/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-a-github-pr-mrwakddf' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-github-pr-mrwakddf/download' --output '.skill-downloads/create-a-github-pr-mrwakddf/SKILL.md.part' && mv '.skill-downloads/create-a-github-pr-mrwakddf/SKILL.md.part' '.skill-downloads/create-a-github-pr-mrwakddf/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, Read, Grep, Glob

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

openskills read 'create-a-github-pr-mrwakddf'

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