pr

Creates a GitHub pull request for the current branch after verifying micro-PR limits and user confirmation.

3|Updated May 2, 2026
One-click install
npx skills add https://github.com/JuanTrujilloDev/agent-config-template --skill pr-juantrujillodev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/JuanTrujilloDev/agent-config-template/tree/main/cursor/.claude/skills/pr
Command: npx skills add https://github.com/JuanTrujilloDev/agent-config-template --skill pr-juantrujillodev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Opening a pull request manually involves checking branch state, reviewing commits, verifying change size, and drafting a title and body, which is repetitive and error-prone. This Skill automates those checks and enforces a confirmation gate before anything is pushed or published. ## Core Features & Use Cases - Pre-flight verification: Confirms you are not on the default branch, have no uncommitted changes, and lists commits and changed files via git log and git diff. - Micro-PR limit enforcement: Validates the branch against configurable limits for maximum files changed and lines of code per PR. - Mandatory confirmation gate: Drafts a conventional PR title and structured body (Goal, Changes, Tests, Screenshots), then always asks for user approval before running git push and gh pr create, regardless of autonomy mode. - Use Case: After finishing a small feature branch, invoke the Skill to review the diff, confirm it stays within PR size limits, and open a well-formatted pull request against the default branch with one confirmed command. ## Quick Start Ask the assistant to open a pull request for the current branch using the pr skill and confirm the drafted title and body when prompted.

Frequently Asked Questions about pr

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

FAQPage Schema
How do I open a pull request from the command line?▼

Use git push to publish your branch, then run gh pr create with a title, body, and base branch. This Skill automates that flow by drafting a conventional title and structured body, then asking for confirmation before executing both commands.

How to enforce small pull request size limits?▼

Check the diff with git diff against the default branch and compare changed files and lines of code against configured thresholds. This Skill verifies the branch stays within the maximum files and lines per PR before allowing creation.

Does this Skill push or merge without confirmation?▼

No. Push, merge, and publish are action-level confirmations that always require explicit user approval, even in autonomous mode. The Skill drafts the PR first and only runs git push and gh pr create after you confirm.

What happens if I run it on the default branch?▼

The first step runs git status to confirm you are not on the default branch and have no uncommitted changes. If either check fails, the workflow stops before any pull request is drafted or created.

What tools are required to create the pull request?▼

The workflow relies on git for branch and diff inspection and the GitHub CLI (gh) for creating the pull request. Both must be available and authenticated in the environment where the Skill runs.