auto-pr
FreeRuns bundled scriptsNot checkedAutomated PR submission assistant, including code review, documentation generation, and PR creation
by QwenLM★ 148 GitHub starsAbout this skill
Auto PR - Automated PR Submission Assistant
Overview
This skill helps you automate the complete Pull Request process, including code review, documentation generation, and PR creation.
Core Functions
- Update Base Branch - Sync remote main/master branch
- Code Review Analysis - Compare differences between current and base branch
- PR Template Discovery - Automatically scan for PR templates in the project
- English Documentation Generation - Generate English PR description, waiting for user confirmation
- Automatic PR Submission - Create PR using English description after user approval
- Cleanup Process - Offer to remove temporary PR description files after submission
Usage
/auto-pr [base-branch]
base-branch: Optional, defaults tomain
Workflow
Please execute the following workflows in sequence:
- Branch Preparation ⭐⭐⭐
- Code Review ⭐⭐⭐
- Documentation Generation ⭐⭐⭐
- PR Submission ⭐⭐⭐
Key Interaction Points
During the documentation generation phase, the process will pause to wait for user confirmation:
Branch Preparation → Code Review → Generate English Documentation → [Wait for User Confirmation] → Submit PR → [Clean Up Temporary Files]
User Confirmation Points:
- After English documentation is generated, wait for user review and confirmation
- After PR is submitted, confirm deletion of temporary description files (PR_DESCRIPTION.md, etc.)
Prerequisites
Environment Check
Before executing the skill, run the check script:
node ./scripts/check-prerequisites.js
Dependency Requirements
| Dependency | Required | Installation Method |
|---|---|---|
| Git | Yes | System built-in or brew install git |
| GitHub CLI | Yes | brew install gh |
| Node.js | Yes | brew install node |
GitHub CLI Authentication
Complete authentication for first use:
gh auth login
Select as prompted:
- GitHub.com
- HTTPS
- Use browser for authentication
After authentication, verify:
gh auth status
Project Requirements
- Git repository initialized
- Remote repository configured
- Current branch is not main/master
- Unpushed commits exist
Script Tools
This skill includes the following scripts:
| Script | Description |
|---|---|
scripts/check-prerequisites.js |
Prerequisites check |
scripts/create-pr.js |
Automatic PR creation |
Quick Start
node ./scripts/create-pr.js \
--title "feat: feature description" \
--body-file ./PR_DESCRIPTION.md
Notes
- Ensure all changes are committed before execution
- PR descriptions will automatically search for templates in the project
- Supports GitHub (requires gh CLI installation)
- Temporary description files will be offered for deletion after PR submission
Install auto-pr in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the auto-pr skill do?
Automated PR submission assistant, including code review, documentation generation, and PR creation
How do I install the auto-pr skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the auto-pr skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic