Agent skill · software engineering · vercel

create-pr

Create Git branches, commits, pushes, and GitHub pull requests for Next.js. Use when the user asks to create a branch, commit current changes, open a PR or draft PR, publish a pull request, or recover from gh pr create / PR template issues. Covers .github/pull_request_template.md, --body formatting, codex/ branch names, and Codex app git directives.

Why this skill is useful

Adds specific Git commands and workflows for creating GitHub pull requests in a Next.js context that the AI wouldn't reliably generate on its own.

What it needs

Requires gh installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 141,663 stars on the source repository.

What this skill does

Create PR Use this skill when turning local work into a GitHub pull request. Fork PRs vs Branch PRs Before writing a PR description, check whether this is a branch PR (the branch lives in vercel/next.js) or a fork PR (an external contribution from a fork). You may write full descriptions for branch PRs, but not for fork PRs — inform the user, offer to review their description or provide technical details, and give them the GitHub URL to create the PR themselves. See "GitHub Pull Requests and Issues" in AGENTS.md for the full policy. Workflow 1. Inspect the current state before mutating Git: Stage only files that belong to the requested change. Preserve unrelated user changes. 2. Create or confirm the branch: Use the codex/ prefix unless the user asks for a different name. If a .git/lock or Operation not permitted error appears, rerun the same Git command with sandbox escalation. Do not assume a branch namespace conflict until checking refs with git branch --list, git show-ref, or git for-each-ref. 3. Validate and commit: Keep commit messages concise and do not add generated-tool or co-author footers. 4. Push the branch: 5. Create the PR as a draft unless the user explicitly asks otherwise: For this repo, prefer canary as the base branch. If GitHub network access fails in the sandbox, rerun with escalation. PR Body Use this PR body format: The "what" should be explained from the end-user perspective or developer perspective. Only include implementation changes if they're not obvious from the diff. A "why" should be included if the change isn't self-explanatory, or if the motivation is not clear from the diff. Omitting the "why" should be used sparingly and only for small changes. Do not include trivial verification commands that CI already covers (e.g. pnpm run build), but do include any manual verification steps. If the PR changes a test, you don't need to repeat the command to run that test. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills vercel/create-pr

View the source on GitHub

Browse the @skills marketplace