
Create PR
Create pull requests using GitHub CLI with proper templates and formatting
Install
npx skills add NeoLabHQ/context-engineering-kit --skill create-pr -g -a claude-code -y- Repository
- NeoLabHQ/context-engineering-kit1.8k
- Category
- Git and review
- Updated
- 2mo ago
- License
- GPL-3.0
- Context cost
- Lightabout 1,054 tokens
- Runs scripts
- No, instructions only
What it does
Create pull requests using GitHub CLI with proper templates and formatting
How to Create a Pull Request Using GitHub CLI
This guide explains how to create pull requests using GitHub CLI in our project.
Important: All PR titles and descriptions should be written in English.
Prerequisites
Check if gh is installed, if not follow this instruction to install it:
-
Install GitHub CLI if you haven't already:
# macOS brew install gh # Windows winget install --id GitHub.cli # Linux # Follow instructions at https://github.com/cli/cli/blob/trunk/docs/install_linux.md -
Authenticate with GitHub:
gh auth login
Pre-flight Checks
Before creating a PR, check for uncommitted changes:
- Run
git statusto check for uncommitted changes (staged, unstaged, or untracked files) - If uncommitted changes exist, use the Skill tool to run the
commitskill first:Skill: commit - This ensures all your work is committed before creating the PR
Creating a New Pull Request
-
First, prepare your PR description following the template in @.github/pull_request_template.md
-
Use the
gh pr create --draftcommand to create a new pull request:# Basic command structure gh pr create --draft --title "✨(scope): Your descriptive title" --body "Your PR description" --base mainFor more complex PR descriptions with proper formatting, use the
--body-fileoption with the exact PR template structure:# Create PR with proper template structure gh pr create --draft --title "✨(scope): Your descriptive title" --body-file .github/pull_request_template.md --base main
Best Practices
-
Language: Always use English for PR titles and descriptions
-
PR Title Format: Use conventional commit format with emojis

