create-pr

Automate GitHub pull request creation with Bash, Git, and gh.

Updated Feb 5, 2018
One-click install
npx skills add https://github.com/0tarof/dotfiles --skill create-pr-0tarof
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/0tarof/dotfiles/tree/main/claude/skills/create-pr
Command: npx skills add https://github.com/0tarof/dotfiles --skill create-pr-0tarof

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the entire, often repetitive, process of creating a GitHub Pull Request (PR). It eliminates manual steps like checking status, staging files, crafting commit messages, pushing changes, and writing PR descriptions, saving developers significant time and reducing the chance of errors.

Core Features & Use Cases

  • Full PR Workflow Automation: Handles git status, git diff, git add, git commit, git push, and gh pr create in a single, guided interaction.
  • Intelligent Commit & PR Body Generation: Adapts to existing commit styles and can utilize PR templates or generate a structured PR body automatically.
  • Pre-commit Checks & Error Handling: Guides through project-specific checks (e.g., CLAUDE.md requirements, bin/brew-check for dotfiles repo) and provides clear error explanations.
  • Use Case: After completing a feature or bug fix, simply instruct the AI, "PRを作って" (Create a PR), and this Skill will guide you through the necessary steps, ensuring all changes are properly committed, pushed, and a well-formed pull request is opened on GitHub.

Quick Start

PRを作って

Frequently Asked Questions about create-pr

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

FAQPage Schema
How do I automate creating a GitHub pull request from the command line?

Automate GitHub pull request creation by staging changes with git add, committing with a message, pushing to a branch, and using gh pr create to open the PR. This Skill guides you through the entire workflow in one interaction, handling git status checks, diffs, commits, and PR body generation automatically.

Can I run pre-commit checks like linters and tests before creating a PR?

Yes, this Skill integrates project-specific pre-commit checks such as linters, builds, and test suites before pushing and creating the PR. It guides you through required checks, provides clear error explanations, and ensures changes pass validation before the PR is opened.

How do I generate a PR description automatically instead of writing it manually?

This Skill generates PR bodies intelligently by adapting to your existing commit style and project templates. It creates structured PR descriptions automatically, eliminating manual writing while maintaining consistency with your repository's conventions.

Does this work with GitHub CLI and Git-based workflows?

Yes, this Skill is built on Bash, Git, and the GitHub CLI (gh). It handles the full git workflow—status, diff, add, commit, push—and uses gh pr create to open pull requests, making it compatible with standard GitHub-based development processes.

What's the fastest way to commit and push changes without repeating manual steps?

Use this Skill to execute the complete commit-to-PR workflow in a single guided interaction. It eliminates repetitive manual steps like checking status, staging files, writing messages, and pushing, reducing errors and saving significant time on routine PR creation.

Can I use this Skill with project-specific requirements like dotfiles repositories?

Yes, this Skill adapts to project-specific checks and requirements, including custom validation scripts and repository conventions. It guides you through project-defined prerequisites and ensures compliance before committing and creating the PR.