pr
PR
Create a pull request for the current branch against main.
Conventions
- Title: Conventional Commit format (
type(scope): description), under 60 chars, no trailing period - Body: follow
.github/pull_request_template.mdif it exists — fill in each section, do not add or remove sections - Bullets: plain English, describe what changed and why — no code blocks, no prose paragraphs
- If an issue matches the branch work, add
Fixes #<number>at the end of the body
Workflow
- Check preconditions (all must pass before continuing):
- working directory is clean (
git status) - branch has commits ahead of
main(git log main..HEAD --oneline) - project verification passes (run the project's test/lint/typecheck command)
- working directory is clean (
- Run the review skill (if available):
- if there are must-fix findings, stop and report them — do not create the PR
- Gather context:
- read
.github/pull_request_template.mdif it exists - run
git log main..HEAD --onelineto see commits - run
git diff main...HEAD --statto see changed files - run
git diff main...HEADto read the full diff - run
gh issue listto check for an associated issue
- read
- Draft the PR:
- infer a title from the commits and diff
- fill in the template body (or use a sensible default structure)
- Push if needed:
- check remote tracking:
git status -sb - if not pushed:
git push -u origin HEAD
- check remote tracking:
- Create the PR:
gh pr create --title "..." --body "..."
- Return only the PR URL
Rules
- Never create a PR with uncommitted changes in the working directory
- Never create a PR without running verification first
- Never create a PR with must-fix review findings
- Never push without checking remote tracking status first
- Always check for associated issues
See also
reviewfor severity and gating decisionsdocsfor user-facing drift checks before mergesddwhen the change depends on version-specific APIs
Red flags
- Skipping verification because "tests passed earlier"
- Skipping the review because it takes time
- Pushing before checking if the branch already tracks a remote
- Creating the PR without checking for associated issues
More from cniska/skills
explore
Explore a task or design through systematic questions until reaching shared understanding. Use before implementing complex or ambiguous work.
9plan
Design a feature or behavior change through dialogue. Use when asked to plan, scope, design, or break down work before coding.
9debug
Debug systematically with structured triage. Use when tests fail, builds break, or runtime behavior doesn't match expectations.
7docs-audit
Audit docs for drift, missing updates, and terminology changes. Use when code changes should be reflected in documentation.
5style-audit
Audit code style, naming, patterns, and consistency. Use when reviewing code quality or style drift.
5test-audit
Audit test coverage, quality, and missing edge cases. Use when reviewing whether changed code has adequate tests.
5