
Description
Automated PR submission assistant, including code review, documentation generation, and PR creation
SKILL.md
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:
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
More skills from the qwen-code-examples repository
View all 10 skillsbrowser-use
automate web browser interactions
Jul 16Browser AutomationMCPPlaywrightTestingcodegraph-qa
analyze codebases using CodeScope
Jul 16Code AnalysisJavaJavaScriptPython +1computer-use
control local desktop applications
Jul 16AutomationDesktopMCPcomputer-use-hybrid
control desktop apps with hybrid context
Jul 16AccessibilityAutomationDesktopMCPdashboard-builder
build full-stack dashboard applications
Jul 16DashboardsData VisualizationExpressFrontend +4image-generation
generate images from text descriptions
Jul 16CreativeGenerative ArtImage Generation
More from Qwen
View publisherbatch
execute parallel batch operations on files
qwen-code
Jul 20AutomationConcurrencycua-driver-rs
drive native GUI applications via MCP
qwen-code
Jul 16AccessibilityBrowser AutomationDesktopMCPdataviz
design and validate data visualizations
qwen-code
Jul 16ChartsDashboardsData Visualizationextension-creator
create Qwen Code extensions
qwen-code
Jul 16CodingDocumentationPlugin Developmentloop
run scheduled or self-paced prompt loops
qwen-code
Jul 16AutomationProductivitySchedulingnew-app
build new applications from scratch
qwen-code
Jul 16EngineeringPrototypingWeb Development