pr
Commit, push, and create a PR. Default is ready-for-review with auto-fixup. Use --draft to skip review/fixup.
Best use case
pr is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Commit, push, and create a PR. Default is ready-for-review with auto-fixup. Use --draft to skip review/fixup.
Teams using pr should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/pr/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How pr Compares
| Feature / Agent | pr | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Commit, push, and create a PR. Default is ready-for-review with auto-fixup. Use --draft to skip review/fixup.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# PR > **GitHub tool selection:** This skill uses `gh` CLI commands by default. If `gh` is unavailable or fails, use any available GitHub tools in the environment (e.g. MCP GitHub tools) to create, edit, and view the PR. The goal is the same — the tool may differ. ## Available skills - **`/commit`** — Stage and commit changes using Conventional Commits. Runs `/verify` internally. - **`/pr-fixup`** — Wait for CI checks and CodeRabbit review, fix any failures or valid comments, and push. ## Context - Current git status: !`git status` - Current branch: !`git branch --show-current` - Commits on this branch vs main: !`git log --oneline main..HEAD` - Recent commit messages for style reference: !`git log --oneline -5` ## Options - `--draft` — create the PR as draft and skip the fixup step. Use when the work is not ready for review. - Default (no flag) — create as ready-for-review and run `/pr-fixup` to wait for CI/CodeRabbit and fix issues. ## Steps **Create a task for each step below and mark them as completed as you go.** 1. **Uncommitted changes:** If there are dirty or staged changes, run `/commit` first (it runs `/verify` internally). 2. **Branch:** If on `main`, create a new branch from the commits (use a descriptive name like `feat/short-description` or `fix/short-description`) and switch to it. If already on a feature branch, use it as-is. 3. **Push** the branch to origin with `-u` to set upstream tracking. 4. **Create the PR.** Use `--draft` flag if the user requested draft mode, otherwise create as ready-for-review. **PR title** must follow Conventional Commits format (see `/commit` for full rules). CI validates via `pr-title.yml` — the PR title becomes the squash-merge commit used for release notes. **PR body** must follow the project's pull request template: - **Summary** (required): 1-2 sentences of prose, no heading. Lead with the problem/goal, end with the outcome. Say WHY, not what. - **Important Changes** (optional): short bullet list of significant architectural changes. Remove section if not needed. - **Validation** (required): list commands or checks run (e.g. `go test ./...`, `make lint`). - **Diagram** (optional): Mermaid diagram only for non-obvious flows. Remove section if not needed. - **Possible Improvements** (optional): one line on risk and what could go wrong. Remove section if not needed. - **Checklist**: always include as-is, do not pre-fill. - **Related issues**: use `Closes #N` if applicable, otherwise remove. - Do NOT add tool attribution footers. - Do NOT leave placeholder text or unfilled sections. ```bash gh pr create [--draft] --title "type: description" --body "$(cat <<'EOF' <filled PR template> EOF )" ``` 5. **If ready (not draft):** Run `/pr-fixup` to wait for CI checks and CodeRabbit review, fix any failures or valid comments, and push. 6. **PR screenshots:** After creating the PR, check if `apps/web/.pr-assets/manifest.json` exists. If it does: - Read the manifest to list available screenshots/GIFs - Run `npx tsx apps/web/e2e/scripts/upload-pr-assets.ts <PR_NUMBER>` to generate embed markdown - Read `apps/web/.pr-assets/embed.md` and append its contents to the PR body using `gh pr edit <PR_NUMBER> --body "..."` - Tell the user to drag and drop the image files from `.pr-assets/` into the PR description on GitHub for the images to render 7. **Return the PR URL** when done.
Related Skills
verify
Run format, typecheck, test, and lint across the monorepo. Use after implementing changes.
tdd
Implement changes using Test-Driven Development (Red-Green-Refactor). Use for bug fixes, new features, or any code change that should have test coverage.
spec
Write a feature spec — the "what & why" of a kandev product feature, before coding. Use when the user says "let's spec X" or starts a new product feature.
simplify
Simplify recently changed code — inline one-off abstractions, remove speculative code, reduce nesting, replace cleverness with clarity. Run after implementing a feature.
record
Record an architectural decision (ADR) or save an implementation plan. Use after making significant design choices or completing features.
qa
Verify a feature works after implementation. Actively try to break it — edge cases, error paths, integration wiring, and real usage flows.
push
Commit and push to the current branch. Use --fixup to also wait for CI/CodeRabbit and fix issues.
pr-fixup
Wait for CI checks and automated reviews (CodeRabbit, Greptile, Claude) on a PR, fix failures and address comments, then push.
playwright-cli
Automate browser interactions, test web pages and work with Playwright tests.
fix
Fix bugs and issues — reproduce, find root cause, minimal fix with regression test. Use when something is broken.
feature
Guided feature development — brainstorm, explore codebase, design architecture, implement with TDD, and review. Use for new features or significant changes.
e2e
Write and run web E2E tests (Playwright) using TDD — locations, patterns, commands, and debugging.