create-pr

Create GitHub pull requests from the current branch using the GitHub PR API.

282|23|Updated Jan 3, 2026
One-click install
npx skills add https://github.com/team-attention/stanford-cs146s-kr --skill create-pr-team-attention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/team-attention/stanford-cs146s-kr/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/team-attention/stanford-cs146s-kr --skill create-pr-team-attention

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill reduces manual overhead in creating and managing GitHub pull requests by automating PR creation from local changes and fork workflows when needed.

Core Features & Use Cases

  • PR automation: Pushes current changes and creates a PR targeting a specified base branch.
  • Fork-friendly: Guides users through forking when push permissions are unavailable.
  • Use Case: Use this skill to quickly convert a feature branch into a PR for code review, QA, and collaboration with teammates.

Quick Start

Use the create-pr skill to generate PRs from your current branch for the main or base branches. /create-pr # PR to main /create-pr --base develop # PR to develop /create-pr --draft # Create a draft PR /create-pr --title "Add new feature" # Set a specific PR title

Frequently Asked Questions about create-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request creation from a local branch?

Automating GitHub pull request creation from a local branch requires pushing current changes and using the GitHub PR API. This skill analyzes local commits and generates a PR to a base branch instantly, eliminating manual submission overhead.

Can I create a draft pull request from the command line?

Yes, you can create a draft pull request from the command line by applying draft settings during PR creation. This skill uses the GitHub PR API to push changes and open a draft PR for early code review and collaboration.

Do I need the gh CLI installed to create pull requests automatically?

You need the gh CLI and Git installed to create pull requests automatically. This skill relies on these dependencies to analyze local branch state, push commits, and interact with the GitHub PR API for automated workflow execution.

How does PR creation work when I lack push access to the repository?

PR creation without push access works by guiding you through a fork workflow. This skill detects restricted permissions, forks the target repository, pushes your local changes to the fork, and opens a pull request targeting the original base branch.

What is the best way to target a develop branch instead of main when opening a PR?

The best way to target a develop branch instead of main when opening a PR is to specify the base branch parameter. This skill passes the base setting to the GitHub PR API, ensuring your local commits merge into the correct branch.

Why should I automate pull request generation instead of using the GitHub UI?

Automating pull request generation instead of using the GitHub UI eliminates manual overhead by instantly converting local feature work into a reviewable PR. It analyzes branch state and commits to streamline workflow integration for developers.