create-pr

Create GitHub pull requests with conventional commit titles and descriptions.

Updated Oct 21, 2022
One-click install
npx skills add https://github.com/Chengxufeng1994/dotfiles --skill create-pr-chengxufeng1994
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/Chengxufeng1994/dotfiles/tree/main/claude/skills/create-pr
Command: npx skills add https://github.com/Chengxufeng1994/dotfiles --skill create-pr-chengxufeng1994

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation of GitHub pull requests, ensuring they have properly formatted conventional commit titles and focused descriptions, streamlining the code review process.

Core Features & Use Cases

  • Automated PR Creation: Generates pull requests directly from your local branch.
  • Conventional Commits: Enforces a standardized format for commit titles (<type>(<scope>): <Summary>).
  • Contextual Analysis: Gathers information about default branches, recent commits, and push status to inform PR creation.
  • Use Case: After finishing a feature or bug fix, you can use this skill to quickly open a PR with a clear title and description, ready for review.

Quick Start

Use the create-pr skill to open a pull request for your current changes.

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 with conventional commit titles?

You can automate GitHub pull request creation by using this skill to generate PRs with conventional commit titles and detailed descriptions. It analyzes your local branch context, recent commits, and push status to create a ready-for-review pull request.

Does this PR automation tool support conventional commit scopes and breaking changes?

Yes, this PR automation tool supports conventional commit scopes and breaking changes. It formats PR titles using standard types like feat, fix, refactor, and chore, while allowing you to specify scope and breaking change indicators.

What context does the tool gather before creating a GitHub pull request?

The tool gathers context using git and gh CLI commands before creating a GitHub pull request. It retrieves the base branch, analyzes recent commit history, and checks the push status of your local branch to inform PR creation.

Do I need the gh CLI installed to automate pull requests with conventional commits?

Yes, you need the gh CLI installed to automate pull requests with conventional commits. The skill relies on gh and git CLI commands to gather repository context, determine the base branch, and push your local changes.

Why are my pull request titles failing conventional commit validation?

Pull request titles fail conventional commit validation when they do not match the required format of type(scope): summary. This skill resolves the issue by automatically generating titles using standard types like feat, fix, refactor, and chore.