Create Pr. Skip
by @anderskev
create a pull request with standardized description template
clawhub install create-pr-skipπ About This Skill
name: create-pr description: create a pull request with standardized description template disable-model-invocation: true
Create Pull Request
Create a pull request with a well-structured description based on the branch changes.
Instructions
Gates (run in order)
Do not draft or run gh pr create until each step passes.
1. Branch gate: git branch --show-current is not the default branch (main, master, or the repoβs documented default). Pass: branch name is printed and satisfies this.
2. Evidence gate: You have run the commands in Gather Context for the same main..HEAD (or origin/main..HEAD if local main is missing) range you will summarize. Pass: you can name at least one commit subject and one area of files changed without inventing details.
3. Template gate: The final PR title and body contain no unreplaced placeholders (<...>, TODO, TBD). Optional sections with no content are removed, not left as stubs. Pass: a quick scan finds no angle-bracket placeholders or filler tokens.
4. Create gate: gh pr create exits successfully and prints a PR URL (or the PR number/URL from gh output). Pass: URL (or id) is recorded; if the command fails, do not claim the PR was created.
1. Gather Context
First, collect information about the changes:
# Get current branch and verify it's not main
git branch --show-currentGet commit history for this branch
git log --oneline main..HEADGet detailed commit messages for context
git log --format="### %s%n%n%b" main..HEADGet file change statistics
git diff --stat main..HEADGet the actual diff for understanding changes
git diff main..HEAD
2. Analyze the Changes
Based on the gathered information, determine:
3. Check for Related Issues
Look for issue references:
fix/issue-123-description)4. Generate PR Description
Create the PR using this template structure:
gh pr create --title "(): " --body "$(cat <<'EOF'
Summary
<1-3 sentence overview of what this PR does and why>
Changes
Added
Changed
Fixed
Removed
Motivation
Testing
[ ] Unit tests added/updated
[ ] Integration tests added/updated
[ ] Manual testing performed Manual Testing Steps
Breaking Changes
Related Issues
Closes #
Related to # Checklist
[ ] Code follows project style guidelines
[ ] Self-review completed
[ ] Tests pass locally
[ ] Linting passes
[ ] Documentation updated (if needed)
Generated with Claude Code
EOF
)"
5. Title Format
Use conventional commit format for the PR title:
feat(scope): add new featurefix(scope): correct bug behaviorrefactor(scope): restructure without behavior changedocs(scope): update documentationtest(scope): add or modify testschore(scope): maintenance tasks6. Apply Labels
After creating the PR, apply appropriate labels based on the changes. Use gh pr edit .
Check the repository's available labels first:
gh label list
#### Common Type Labels
| Label | When to Use |
|-------|-------------|
| enhancement | New features, capabilities, or improvements |
| bug | Bug fixes |
| documentation | Documentation-only changes |
| breaking-change | User-facing breaking changes requiring migration |
#### Breaking Change Criteria
Only apply breaking-change for user-facing changes that require users to modify their:
Do NOT apply for internal refactors unless they affect external consumers.
7. After Creation
After creating the PR: 1. Display the PR URL with applied labels 2. Suggest adding reviewers if appropriate 3. Note if any CI checks need to pass
Guidelines
DO:
DON'T: