Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
warpdotdev avatar

Create Pr

  • 16.1k installs
  • 148 repo stars
  • Updated July 24, 2026
  • warpdotdev/common-skills

Structured guidance for creating pull requests in warp repository with mandatory pre-submission checks, test requirements, and review best practices.

About

create-pr guides developers through the pull request workflow for the warp codebase, covering pre-PR validation (merging master, running presubmit checks), review preparation (examining diffs, writing descriptions), and test requirements (regression tests for bugs, unit tests for algorithmic code, layout tests for UI components, integration tests for P0 use cases). Developers use this skill when submitting code changes for review, ensuring all automated checks pass and proper test coverage exists before opening the PR. Key workflows include running ./script/presubmit (cargo fmt, clippy, tests), reviewing changes with git log and git diff, linking Linear tasks via branch naming and PR title, and marking PRs ready for review once feedback is addressed.

  • Merge master into feature branch and resolve conflicts locally before opening PR
  • Run ./script/presubmit (cargo fmt, cargo clippy, all tests) for code-changing PRs
  • Review your diff with git log and git diff before creating PR to catch unintended changes
  • Link Linear tasks using [ISSUE-ID] prefix in PR title for automatic linking
  • Include regression tests for bug fixes, unit tests for algorithmic code, layout tests for UI components, integration tes

Create Pr by the numbers

  • 16,121 all-time installs (skills.sh)
  • +1,939 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #7 of 739 Git & Pull Requests skills by installs in the Skillselion catalog
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

create-pr capabilities & compatibility

Capabilities
merge master into feature branches · run presubmit validation (formatting, linting, t · review diffs and commit history before submissio · create and edit pull requests via gh cli · link linear tasks to prs · validate test coverage requirements · format pr descriptions following guidelines
Works with
github
Use cases
code review · testing · ci cd
Platforms
macOS · Windows · Linux · WSL
Runs
Runs locally
Pricing
Free
From the docs

What create-pr says it does

Always merge master into your feature branch before starting the review process.
create-pr.md#pre-pr-checklist
npx skills add https://github.com/warpdotdev/common-skills --skill create-pr

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs16.1k
repo stars148
Security audit3 / 3 scanners passed
Last updatedJuly 24, 2026
Repositorywarpdotdev/common-skills

What it does

Create and manage pull requests in the warp repository with proper checks, testing, and Linear task linking.

Who is it for?

Creating pull requests in the warp codebase; ensuring code quality before review; linking changes to Linear tasks; meeting test coverage requirements.

Skip if: Fixing presubmit failures (use fix-errors skill); adding integration tests (use warp-integration-test skill); adding feature flags (use add-feature-flag skill).

When should I use this skill?

User mentions opening a PR, creating a pull request, submitting changes for review, or preparing code for merge.

What you get

A pull request that passes all presubmit checks, includes appropriate test coverage (regression/unit/layout/integration as applicable), is linked to Linear tasks, and includes clear description ready for review.

  • Pull request created in GitHub
  • All presubmit checks passing
  • Test coverage meeting requirements

By the numbers

  • Pre-PR checklist covers 6 major steps: merge master, run presubmit, review changes, link Linear, open PR, add co-author
  • Testing requirements cover 4 categories: regression tests (bugs), unit tests (algorithms), layout tests (UI), integratio
  • Presubmit script runs 3 primary checks: cargo fmt, cargo clippy, all tests (unit/doc/integration)

Files

SKILL.mdMarkdownGitHub ↗

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.

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:

./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:

# 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:
  gh pr view --json number,url

Exit code 0 if PR exists, 1 if not.

  • Create a new PR:
  # 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, --fill / -f, --body-file / -F, --web / -w

  • Update an existing PR:
  gh pr edit --title "New title" --body "New body"
  gh pr edit --add-reviewer username --add-label bug
  • Mark PR ready for review:
  gh pr ready

6. Include co-author attribution

When committing changes or creating a PR, include attribution at the end of every commit message or PR description:

Co-Authored-By: Warp <agent@warp.dev>

Testing Requirements

Bug fixes require regression tests

All bug fixes should be accompanied by a regression test. This helps prevent re-breaking something that was already broken once.

The test should:

  • Reproduce the original bug (would fail before the fix)
  • Pass after the fix is applied
  • Be clearly named to indicate what bug it's preventing

Algorithmic code requires unit tests

Code with non-trivial logic should have unit tests to validate functionality:

Examples of what needs unit tests:

  • Custom data structures (e.g., SumTree)
  • Search-related APIs that should return expected results for a given query
  • Core layout code in the UI framework
  • Any algorithmic or computational logic

Not required for:

  • Sufficiently-simple functions
  • Trivial getters/setters

Follow the repository's local testing conventions for guidance on writing unit tests.

UI components need layout validation tests

All UI components (implementations of `View`) should have a simple unit test to validate that they can be laid out without a panic.

This provides high-level coverage over rendering "safety" (though not "correctness"):

#[test]
fn test_component_can_layout() {
    use warpui::App;
    use warp::test_util::{terminal::initialize_app_for_terminal_view, add_window_with_terminal};
    
    App::test((), |mut app| async move {
        initialize_app_for_terminal_view(&mut app);
        let term = add_window_with_terminal(&mut app, None);
        
        // Render the component - should not panic
        term.update(&mut app, |view, ctx| {
            // Create and layout your component
        });
    })
}

Ask before skipping integration coverage

If the PR changes a user-visible flow, fixes an end-to-end regression, or otherwise looks like it would benefit from integration coverage, use the ask_user_question tool before creating or updating the PR to ask whether the user wants an integration test added as part of the work.

Prefer a direct choice such as:

  • Yes, add an integration test before creating the PR
  • No, continue without an integration test

If the user chooses to add one, use the warp-integration-test skill.

P0 use cases require integration tests

All "P0 use cases" require an integration test that covers the behavior/flow in question.

A "P0 use case" is defined as: Any behavior of the application that, if broken, warrants an out-of-band release.

Integration tests should:

  • Exercise the full user-facing flow
  • Validate end-to-end functionality
  • Be placed in the integration/ directory

Use the warp-integration-test skill for implementation details, test registration steps, and validation workflow.

PR Description Guidelines

Your PR summary under the "Description" section should include:

1. What - What changes are being made 2. Why - Why these changes are necessary (link to Linear task if applicable) 3. How - Brief explanation of the approach taken

After Opening the PR

1. Monitor CI checks - Ensure all automated checks pass 2. Respond to review comments - Address feedback promptly 3. Keep the PR up to date - Merge master if conflicts arise 4. Re-run relevant validation - After making changes based on review feedback. For code changes, re-run cargo fmt/cargo clippy (and other relevant checks); for documentation-only changes, this is not required.

Best Practices

  • Keep PRs focused - One logical change per PR when possible
  • Write clear commit messages - Explain what and why, not just what
  • Self-review first - Review your own diff before requesting review
  • Update tests - Ensure test coverage reflects your changes
  • Document breaking changes - Call out any API changes or breaking modifications
  • Use feature flags - Gate risky changes behind feature flags when appropriate (see the add-feature-flag skill)

Related skills

How it compares

Use create-pr for Warp-specific PR conventions; use generic Git skills when the repo is not Warp or Linear-linked workflows are unnecessary.

FAQ

Do I need to run presubmit checks for documentation-only changes?

No. Documentation-only PRs (skills, markdown, non-code content) do not require cargo fmt or cargo clippy. Code-changing PRs must run ./script/presubmit before opening or updating.

What test coverage is required for different types of changes?

Bug fixes require regression tests; algorithmic code requires unit tests; UI components require layout validation tests; P0 user-visible flows require integration tests.

How do I link my PR to a Linear task?

Use the Linear MCP tool to find the task, then include the issue ID in your PR title before creating the PR (e.g., [WARP-1234] Add new feature) for automatic linking.

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.

Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.