
Create Pr
Open a warp-repo pull request with master merged, presubmit green, Linear linked, and reviewer-ready structure.
Install
npx skills add https://github.com/warpdotdev/common-skills --skill create-prWhat is this skill?
- Pre-PR checklist: merge origin/master and resolve conflicts locally first
- Runs ./script/presubmit (cargo fmt, clippy, full test suite) for code changes
- Documentation-only PRs skip presubmit when no code changes
- Chains to fix-errors, warp-integration-test, and add-feature-flag related skills
- Linear task linking and test-coverage expectations for effective review
Adoption & trust: 3.5k installs on skills.sh; 18 GitHub stars; 3/3 security scanners passed (skills.sh audits).
Recommended Skills
Triagemattpocock/skills
Caveman Commitjuliusbrussee/caveman
Using Git Worktreesobra/superpowers
Finishing A Development Branchobra/superpowers
Git Commitgithub/awesome-copilot
Git Guardrails Claude Codemattpocock/skills
Journey fit
Common Questions / FAQ
Is Create Pr safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
SKILL.md
READMESKILL.md - Create Pr
# create-pr ## Overview This guide covers best practices for creating pull requests in the warp repository, including merging master, running presubmit checks, linking Linear tasks, ensuring appropriate test coverage, and structuring your PR for effective review. ## Related Skills - `fix-errors` - Fix presubmit failures (formatting, linting, tests) before opening PR - `warp-integration-test` - Add or update integration coverage for user-visible flows, regressions, and P0 use cases - `add-feature-flag` - Gate changes behind feature flags ## Pre-PR Checklist ### 1. Merge master into your feature branch **Always merge master into your feature branch before starting the review process.** ```bash git fetch origin git merge origin/master ``` Resolve any merge conflicts locally before opening the PR. ### 2. Run presubmit checks for code changes If the PR includes code changes, run the relevant presubmit checks before opening or updating it: ```bash ./script/presubmit ``` `./script/presubmit` runs: - `cargo fmt` - Code formatting - `cargo clippy` - Linting with all warnings as errors - All tests (unit, doc, and integration) If the PR is documentation-only (for example, skills, markdown, or other non-code content), you do not need to run `cargo fmt` or `cargo clippy` just to open or update the PR. If presubmit fails for a code-changing PR, use the `fix-errors` skill to resolve issues. **You must run `cargo fmt` and `cargo clippy` before:** - Opening a new PR that includes code changes - Pushing new commits that include code changes to an existing PR branch - Any reviewed branch update that changes code ### 3. Review your changes Before creating a PR, review what changes you're about to submit: ```bash # View commits in your branch (comparing against base branch) git --no-pager log <base-branch>..HEAD --oneline # View file statistics for changes git --no-pager diff <base-branch>...HEAD --stat # View full diff git --no-pager diff <base-branch>...HEAD ``` This helps you: - Verify all intended changes are included - Catch unintended changes before review - Write an accurate PR description - Ensure you're comparing against the correct base branch - **Tests:** Include tests when required—bug fixes (regression test), algorithmic code (unit tests), UI components (layout test), P0 use cases (integration test). See Testing Requirements below. ### 4. Link to Linear task When possible, PRs should be associated with a Linear task. Use the Linear MCP tool (if available) to find corresponding issues. **Branch naming convention:** Remote branches should be prefixed with your name (e.g., `zheng/feature`, `alice/fix-bug`). **How to link PRs to Linear:** Include the issue ID in the PR title (e.g., `[WARP-1234] Add new feature`). Do this **before** creating the PR for automatic linking. ### 5. Open the PR Use the PR template at `.github/pull_request_template.md` when opening PRs. Add changelog entries when appropriate using the format at the bottom of the PR template. Some examples: - Feature: "Global search in files across your current directories. Use CMD-F/CTRL-SHIFT-F to open." - Improvement: "Added horizontal autoscrolling when jumping to line/column." - Bug fix: "Fixed session viewer input being cleared when agent runs commands. **CLI workflow:** - **Check if PR exists** for current branch: ```bash gh pr view --json number,url ``` Exit code 0 if PR exists, 1 if not. - **Create a new PR:** ```bash # With title and body gh pr create --title "Title" --body "Description" --draft # Auto-fill from commits gh pr create --fill --draft # Use PR template file gh pr create --body-file .github/pull_request_template.md --title "Title" --draft ``` Key flags: `--draft` / `-d`,