Agent skill

Merge PR

by pagezero-dev in pagezero-dev/pagezero

Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass.

MITAuto-check passedDevelopment

Install Merge PR

skills CLI
$ npx skills add pagezero-dev/pagezero --skill merge-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pagezero-dev/pagezero merge-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pagezero-dev/pagezero.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/merge-pr .claude/skills/merge-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
merge-pr
GitHub stars
143
Token cost
~445 tokens
SKILL.md length
201 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass.

  • Works in 2 steps: Open PR for the current branch → All checks passing
  • The user asks to merge a PR
  • SKILL.md covers Prerequisites and Workflow
  • Calls gh and git

What it does

Merge PR is an agent skill from pagezero-dev/pagezero. Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass. Use when the user asks to merge a PR, finish a PR, land a PR, or complete a pull request from the branch they are on. Never ask for a PR number; the skill applies only to the PR tied to the checked-out branch.

Its SKILL.md is about 450 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. The repository describes itself as: Open source, Cloudflare-native web app starter for the AI era. The licence is MIT.

When your agent uses it

  • The user asks to merge a PR
  • Complete a pull request from the branch they are on

Example prompts

  • “/merge-pr”

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Open PR for the current branch
  2. All checks passing

What it can do on your machine

Read from SKILL.md and the folder at commit 5619f1b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Merge PR loads about 445 tokens when it runs. Until then it costs about 87 tokens; SKILL.md has 201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~87
When it runs · the whole SKILL.md, loaded when a task matches
~445

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pagezero-dev/pagezero at commit 5619f1b, republished under its MIT licence (© pagezero-dev). 201 words, ~445 tokens.

Download SKILL.mdSave it as .claude/skills/merge-pr/SKILL.md (or your agent's skills folder).
name
merge-pr
description
Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass. Use when the user asks to merge a PR, finish a PR, land a PR, or complete a pull request from the branch they are on. Never ask for a PR number; the skill applies only to the PR tied to the checked-out branch.
disable-model-invocation
true

Merge PR

Work only with the pull request for the current branch. Do not ask for a PR number and do not pass a PR number to gh commands—gh pr view, gh pr checks, and gh pr merge all resolve the PR from the branch when run without arguments.

Do not run gh pr merge until the prerequisites below succeed. If any step fails, stop and explain what is missing (no PR for this branch, not open, failing or pending checks).

Prerequisites

1. Open PR for the current branch
bash
gh pr view --json number,state,url,title
  • If this errors or state is not OPEN, do not merge. The branch must have an open pull request (create or reopen a PR, or checkout the correct branch).
2. All checks passing
bash
gh pr checks
  • Exit code 0: checks are successful; you may merge.
  • Exit code 8: checks still pending — do not merge; use gh pr checks --watch until finished, then re-verify.
  • Any other non-zero exit: checks failed or errored — do not merge; point the user to the PR URL for details.

Use gh pr checks --required if you only care about required status checks.

Workflow

After prerequisites pass:

  1. Merge (PR for the current branch):
bash
gh pr merge --squash --delete-branch
  1. Switch back to main and pull latest:
bash
git checkout main && git pull

© pagezero-dev, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/merge-pr of pagezero-dev/pagezero.

Open the folder on GitHubat commit 5619f1b

Compare with similar skills

Merge PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Merge PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Merge PR this skillpagezero-dev/pagezero143—~445Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    86k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

More from pagezero-dev/pagezero

  • Create Component

    pagezero-dev/pagezero

    Creates a new UI component with implementation, index, tests, and Storybook stories following PageZERO conventions.

    143 GitHub stars~896 tokensUpdated 7 days ago
    Auto-check passed
  • Create PR

    pagezero-dev/pagezero

    Create GitHub pull requests following conventional naming patterns, creating a branch if needed.

    143 GitHub stars~647 tokensUpdated 7 days ago
    Auto-check passed
  • Change Theme

    pagezero-dev/pagezero

    Updates the shadcn/ui theme by editing OKLCH CSS custom properties in apps/core/styles/tailwind.css.

    143 GitHub stars~805 tokensUpdated 7 days ago
    Auto-check passed
  • Pagezero Upgrade

    pagezero-dev/pagezero

    Upgrade a PageZERO-based project to the latest starter while keeping project-specific business logic and marketing content.

    143 GitHub stars~1.6k tokensUpdated 7 days ago
    Auto-check: notes

Categories

Questions about Merge PR

What does Merge PR do?

Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass. Merge PR is an agent skill from pagezero-dev/pagezero. Squash-merge the open pull request for the current branch and clean up the branch, only when that PR exists and all checks pass.

When should I use Merge PR?

Merge PR fits situations like: the user asks to merge a PR; complete a pull request from the branch they are on.

How do I install Merge PR in Claude Code?

Run `npx skills add pagezero-dev/pagezero --skill merge-pr -a claude-code`. Or copy the skill folder (.agents/skills/merge-pr in pagezero-dev/pagezero) into .claude/skills/merge-pr in your project. Claude Code loads it when a task matches its description.

How do I install Merge PR in Codex?

Run `npx skills add pagezero-dev/pagezero --skill merge-pr -a codex`. Or copy the skill folder (.agents/skills/merge-pr in pagezero-dev/pagezero) into .agents/skills/merge-pr in your project. Codex loads it when a task matches its description.

Can I use Merge PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pagezero-dev/pagezero --skill merge-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/merge-pr, .gemini/skills/merge-pr, .github/skills/merge-pr and .opencode/skills/merge-pr in your project.

What does Merge PR need to run?

Going by SKILL.md and its folder, Merge PR needs the command-line tools its instructions call (gh and git).

Does Merge PR access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Merge PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Merge PR use?

Merge PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Merge PR use?

About 445 tokens (SKILL.md is roughly 1.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Merge PR?

Skills that share tags, products or a category with Merge PR: Finishing a Development Branch (obra/superpowers, 296k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Merge PR?

pagezero-dev (a GitHub organization) maintains it in pagezero-dev/pagezero, which has 143 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

Source: pagezero-dev/pagezero on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.