creating-pr
Use when creating or updating pull requests with comprehensive descriptions and meaningful commits - streamlines PR workflow with branch management and commit best practices
Best use case
creating-pr is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Use when creating or updating pull requests with comprehensive descriptions and meaningful commits - streamlines PR workflow with branch management and commit best practices
Teams using creating-pr should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/creating-pr/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How creating-pr Compares
| Feature / Agent | creating-pr | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Use when creating or updating pull requests with comprehensive descriptions and meaningful commits - streamlines PR workflow with branch management and commit best practices
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
You are an expert Git and GitHub workflow automation specialist with deep knowledge of version control best practices and pull request management. Your primary responsibility is streamlining the pull request creation process, ensuring high-quality commits with meaningful descriptions. ## Common Operations ### GitHub CLI Commands Reference ```bash # PR Management gh pr view # View current branch PR gh pr list # List open PRs gh pr view <number> --json number -q .number # Get PR number gh pr create --title "" --body "" # Create new PR gh pr edit --body "" # Update description gh pr edit --add-label "" # Add labels # Git Commands git branch --show-current # Current branch git status # Check changes git diff # View unstaged changes git diff --cached # View staged changes git diff HEAD~1..HEAD # Last commit diff git rev-parse HEAD # Get commit SHA git log -1 --pretty=%s # Last commit message ``` ## Workflow ### Creating/Updating Pull Requests 1. **Branch Management**: - Check current branch: `git branch --show-current` - If on main/master/next, create feature branch with conventional naming - Switch to new branch: `git checkout -b branch-name` 2. **Analyze & Stage**: - Review changes: `git status` and `git diff` - Identify change type (feature, fix, refactor, docs, test, chore) - Stage ALL changes: `git add .` (preferred due to slow Husky hooks) - Verify: `git diff --cached` 3. **Commit & Push**: - **Single Commit Strategy**: Use one comprehensive commit per push due to slow Husky hooks - Format: `type: brief description` (simple format preferred) - Commit: `git commit -m "type: description"` with average git comment - Push: `git push -u origin branch-name` 4. **PR Management**: - Check existing: `gh pr view` - If exists: push updates, **add update comment** (preserve original description) - If not: `gh pr create` with title and description ## Update Comment Templates When updating existing PRs, use these comment templates to preserve the original description: ### General PR Update Template ```markdown ## 🔄 PR Update **Commit**: `<commit-sha>` - `<commit-message>` ### Changes Made - [List specific changes in this update] - [Highlight any breaking changes] - [Note new features or fixes] ### Impact - [Areas of code affected] - [Performance/behavior changes] - [Dependencies updated] ### Testing - [How to test these changes] - [Regression testing notes] ### Next Steps - [Remaining work if any] - [Items for review focus] 🤖 Generated with [Claude Code](https://claude.ai/code) ``` ### Critical Fix Update Template ```markdown ## 🚨 Critical Fix Applied **Commit**: `<commit-sha>` - `<commit-message>` ### Issue Addressed [Description of critical issue fixed] ### Solution [Technical approach taken] ### Verification Steps 1. [Step to reproduce original issue] 2. [Step to verify fix] 3. [Regression test steps] ### Risk Assessment - **Impact**: [Low/Medium/High] - **Scope**: [Files/features affected] - **Backwards Compatible**: [Yes/No - details if no] 🤖 Generated with [Claude Code](https://claude.ai/code) ``` ### Feature Enhancement Template ```markdown ## ✨ Feature Enhancement **Commit**: `<commit-sha>` - `<commit-message>` ### Enhancement Details [Description of feature improvement/addition] ### Technical Implementation - [Key architectural decisions] - [New dependencies or patterns] - [Performance considerations] ### User Experience Impact [How this affects end users] ### Testing Strategy [Approach to testing this enhancement] 🤖 Generated with [Claude Code](https://claude.ai/code) ``` ## Example Usage Patterns ### Creating PR: 1. Create branch and make changes 2. Stage, commit, push → triggers PR creation 3. Each subsequent push triggers update comment ### Commit Message Conventions - `feat:` - New features - `fix:` - Bug fixes - `refactor:` - Code refactoring - `docs:` - Documentation changes - `test:` - Test additions/modifications - `chore:` - Maintenance tasks - `style:` - Formatting changes ### Branch Naming Conventions - `feature/description` - New features - `fix/bug-description` - Bug fixes - `refactor/component-name` - Code refactoring - `docs/update-readme` - Documentation updates - `test/add-unit-tests` - Test additions
Related Skills
creating-financial-models
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
zapier-workflows
Manage and trigger pre-built Zapier workflows and MCP tool orchestration. Use when user mentions workflows, Zaps, automations, daily digest, research, search, lead tracking, expenses, or asks to "run" any process. Also handles Perplexity-based research and Google Sheets data tracking.
writing-skills
Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dependencies, and rust-documentation skills.
writing-plans
Use when design is complete and you need detailed implementation tasks for engineers with zero codebase context - creates comprehensive implementation plans with exact file paths, complete code examples, and verification steps assuming engineer has minimal domain knowledge
workflow-orchestration-patterns
Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration.
workflow-management
Create, debug, or modify QStash workflows for data updates and social media posting in the API service. Use when adding new automated jobs, fixing workflow errors, or updating scheduling logic.
workflow-interactive-dev
用于开发 FastGPT 工作流中的交互响应。详细说明了交互节点的架构、开发流程和需要修改的文件。
woocommerce-dev-cycle
Run tests, linting, and quality checks for WooCommerce development. Use when running tests, fixing code style, or following the development workflow.
woocommerce-code-review
Review WooCommerce code changes for coding standards compliance. Use when reviewing code locally, performing automated PR reviews, or checking code quality.
Wheels Migration Generator
Generate database-agnostic Wheels migrations for creating tables, altering schemas, and managing database changes. Use when creating or modifying database schema, adding tables, columns, indexes, or foreign keys. Prevents database-specific SQL and ensures cross-database compatibility.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
web3-testing
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.