PR Preparation Skill
Prepare a guideline-compliant pull request.
When to Use
- •User says "create PR" or "make PR"
- •User has finished coding and wants to submit
- •User asks how to submit their changes
- •User mentions a specific issue number for their PR
Process
- •
Detect project conventions
- •Check CONTRIBUTING.md for PR requirements
- •Find PR template in .github/
- •Analyze recent merged PRs for patterns
- •
Generate branch name
- •Follow project convention (feat/, fix/, docs/)
- •Include issue number if provided
- •Keep concise and descriptive
- •
Format commit message
- •Apply project's commit convention
- •Conventional Commits if no specific rule
- •Reference issue number
- •
Create PR content
- •Fill PR template if exists
- •Generate description from changes
- •Add checklist items
Output Format
Respond in user's language:
code
# PR Preparation ## Pre-flight Checks - [ ] Build passes: `[command]` - [ ] Tests pass: `[command]` - [ ] Lint passes: `[command]` ## Git Commands ```bash # Create branch git checkout -b [branch-name] # Stage and commit git add [files] git commit -m "[formatted message]" # Push git push -u origin [branch-name]
PR Title
code
[Convention-compliant title]
PR Description
markdown
[Filled template or generated description] ## Related Issue Fixes #[number] ## Changes - [Change 1] - [Change 2] ## Checklist - [ ] Tests added - [ ] Docs updated
After Submitting
- •Wait for CI to pass
- •Respond to review comments promptly
- •Don't force-push after review starts
code
## Arguments `$ARGUMENTS` can include: - Issue number: `#123` - Options: `--draft`, `--no-push`