ce:pr

Creates GitHub pull requests and optionally merges them into the default branch.

6|2|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Jerrylalala/compound-engineering --skill ce-pr-jerrylalala
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ce:pr
Source: https://github.com/Jerrylalala/compound-engineering/tree/main/plugins/compound-engineering/skills/ce-pr
Command: npx skills add https://github.com/Jerrylalala/compound-engineering --skill ce-pr-jerrylalala

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Manually creating pull requests involves repetitive steps: checking branch state, pushing to remote, writing titles and descriptions, and deciding on merge strategy. This Skill automates the entire PR lifecycle from pre-flight checks through merge, reducing errors like creating PRs from the wrong branch or forgetting uncommitted changes. ## Core Features & Use Cases - Pre-flight Validation: Detects detached HEAD states, blocks PR creation from the main branch, and prompts you to handle uncommitted changes before proceeding. - Automated PR Creation: Pushes the current branch to origin, generates a title and description from commit history and diff stats, and creates the PR via the GitHub CLI with optional draft mode. - Merge Handoff: After creation, asks whether to merge immediately (with branch deletion and local sync), open the PR in a browser, or finish without merging. - Use Case: After finishing a feature on branch feature/login-flow, run the command to push the branch, open a PR against main with an auto-generated summary, and merge it once approved. ## Quick Start Ask the assistant to create a pull request for the current branch and merge it into main after review.

Frequently Asked Questions about ce:pr

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

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

Use the GitHub CLI command gh pr create with a title, body, and base branch. This Skill automates that flow by detecting your current branch, pushing it to origin, generating the title and body from commit history, and creating the PR in one step.

How to merge a pull request and delete the branch automatically?▼

Run gh pr merge --merge --delete-branch to perform a regular merge and remove the remote branch. This Skill then checks out the default branch and pulls the latest changes to keep your local repository synchronized.

Can I create a draft pull request with the GitHub CLI?▼

Yes, pass the --draft flag to gh pr create to open a draft PR. In this Skill, use the --draft argument and the PR will be created in draft mode, with --no-merge available to skip the merge prompt entirely.

Why can't I create a PR from my current branch?▼

PR creation fails if you are on the default branch, in a detached HEAD state, or the branch has no commits ahead of the base. This Skill detects these conditions during pre-flight checks and tells you to switch to a feature branch first.

What happens to uncommitted changes when creating a pull request?▼

Uncommitted changes are not included in a PR since only pushed commits count. This Skill detects them via git status and lets you choose to auto-commit with a generated message, ignore them, or cancel and handle them manually.