skills/create-pr/SKILL.md
Creates GitHub pull requests with properly formatted titles. Use when creating PRs, submitting changes for review, or when the user says /pr or asks to create a pull request.
npx skillsauth add sirius-cc-wu/sirius-skills create-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Creates GitHub PRs with clear, descriptive titles.
Default format:
<ID/Scope>: <summary>
The ID is extracted from the current branch name or a logical scope is used.
Examples:
| Branch Name | ID |
|-------------|----|
| 3916-optimize-init | 3916 |
| feature/add-new-feature | feature |
| fix/memory-leak | fix |
If the project defines .skills/conventions.json, use it to tighten title generation rules instead of hardcoding tracker behavior into the skill.
branch_extract_pattern to extract an ID from the branch when present.pr_title_format when present.id_pattern to validate extracted or user-provided IDs when the project requires one.Example project config:
{
"issue_sliceer": "jira",
"id_pattern": "^[A-Z][A-Z0-9]*-[0-9]+$",
"branch_extract_pattern": "^([A-Z][A-Z0-9]*-[0-9]+)-(.+)$",
"pr_title_format": "{ID}: {summary}"
}
Check current state:
git status
git diff --stat
git log origin/main..HEAD --oneline
Determine ID:
Analyze changes to determine:
Validate Execution Checklist Completion:
blueprint.md (usually in slices/<ID>-<name>/blueprint.md).slices.md also exists, review it alongside blueprint.md.[x]).[ ] items in blueprint.md (or any legacy slices.md) unless explicitly justified.Push branch if needed:
git push -u origin HEAD
Create PR using gh CLI:
gh pr create --draft --title "${ID}: <summary>" --body "$(cat <<'EOF'
## Description
<Describe what the PR does and how to test. Photos and videos are recommended.>
## Type of change
- [ ] Bug fix
- [ ] New feature
- [ ] Improvement
- [ ] Breaking change
## How Has This Been Tested?
- [ ] Unit tests
- [ ] Integration tests
- [ ] Manual testing
## Checklist:
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have updated the execution checklist (`blueprint.md`, plus any legacy `slices.md`)
- [ ] New and existing unit tests pass locally with my changes
- [ ] I have checked my code and corrected any misspellings
EOF
)"
Select the appropriate type:
Describe how the changes were tested
All items should be addressed before merging
When no project-specific format is configured, the PR title should generally match this pattern:
^[^:]+: [A-Z].+[^.]$
If .skills/conventions.json provides stricter conventions, validate against those instead.
tools
Create or resume a dedicated git worktree for one feature or subfeature, drive `ship` inside that worktree, and hand the finished branch back as a pull request to the original branch.
testing
Reviews one completed feature or subfeature against final implementation and slice artifacts, then records a durable reconciliation block before archive.
development
Tightens durable repo-level rules in AGENTS.md and adjacent governance surfaces when repeated drift reveals a policy gap.
data-ai
Resolves one reviewed feature or subfeature backlog into remaining planned slices and routes each active slice to the next owning execution step with one commit per completed slice.