create-pr

Create or update GitHub pull requests from local branches using gh CLI.

84|7|Updated Feb 24, 2025
One-click install
npx skills add https://github.com/not-elm/desktop-homunculus --skill create-pr-not-elm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/not-elm/desktop-homunculus/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/not-elm/desktop-homunculus --skill create-pr-not-elm

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create or update a GitHub pull request using the project's PR template. Validates that the diff is consistent with the stated problem, generates a full English PR draft, and executes gh pr create (or gh pr edit) upon approval.

Core Features & Use Cases

  • Preflight checks to ensure the repository state is suitable for PR creation or update.
  • Automatic generation of PR drafts in English from local changes.
  • Execution of gh pr create or gh pr edit after user approval, with optional labeling.

Quick Start

Provide a short problem description and let the tool generate and open a PR draft to be reviewed.

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?

You can automate GitHub pull request creation by providing a problem description; the tool runs preflight checks, validates your diff, generates an English PR draft from the template, and executes gh pr create upon approval.

How does PR draft generation work with my project's PR template?

PR draft generation retrieves your local diff and validates it against the stated problem, then automatically populates the project's PR template with a full English draft for review before executing any gh commands.

Can I update an existing pull request instead of creating a new one?

Yes, you can update an existing pull request; the tool validates the repository state and executes gh pr edit with your updated diff and draft content after you approve the changes.

What preflight checks are needed before creating a GitHub PR?

Preflight checks validate your repository state and diff consistency before PR creation, ensuring the local changes align with the stated problem and the repository is suitable for gh pr create or gh pr edit.

Does this tool support adding labels when creating a GitHub PR?

Yes, the tool supports optional labeling when executing gh pr create or gh pr edit, allowing you to attach labels to your pull request alongside the generated English draft.

Why does my pull request draft need user approval before execution?

User approval is required before execution so you can review the generated English PR draft, verify the diff validation results, and confirm the gh pr create or gh pr edit command before changes are applied.