Agent skill

Pull Request Creation

by lobehub in lobehub/lobehub

Creates a pull request for the current branch against canary, or splits a cross-layer branch into ordered stacked PRs so backend changes merge before their callers.

Custom licenceAuto-check passedDevelopment

Install Pull Request Creation

skills CLI
$ npx skills add lobehub/lobehub --skill pr -a claude-code

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

GitHub CLI
$ gh skill install lobehub/lobehub 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/lobehub/lobehub.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pr .claude/skills/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
pr
GitHub stars
83k
Token cost
~3.2k tokens
SKILL.md length
1,588 words
Files
2
Skills in repo
50
Repo updated
First seen
Licence
Custom licence

At a glance

Creates a pull request for the current branch against canary, or splits a cross-layer branch into ordered stacked PRs so backend changes merge before their callers.

  • Works in 8 steps: Gather context (run in parallel) → Handle uncommitted changes on default… → Push if needed → …
  • Opening a pull request for the current branch
  • SKILL.md covers Branch Strategy, Steps, PR Template and Notes, plus 6 more sections
  • Calls git, gh and bun

What it does

The skill creates PRs that target the canary branch by default and never main, which is the release branch. It first gathers context in parallel: the current branch, uncommitted changes, upstream status, unpushed commits, any existing PR and a change summary, and it reuses an acceptance link from the task when one exists. If you are on canary or main with uncommitted changes, it infers a branch name in type-slash-description form, commits with a gitmoji message and continues; with nothing to commit or push, it stops.

Next it pushes the branch, searches for related GitHub issues and links only those with matching scope, then goes through an acceptance gate. The skill also covers splitting one branch that spans layers, such as the database, a shared package and the server TRPC layer, into stacked PRs, so a lower layer merges before the desktop, CLI or UI code that calls it. Files are staged by explicit path rather than all at once.

When your agent uses it

  • Opening a pull request for the current branch
  • Splitting a branch so the server contract merges before its clients
  • Turning uncommitted work on canary into a new branch and PR

Example prompts

  • “Create a PR for this branch.”
  • “Split this branch into stacked PRs so the backend merges first.”
  • “I have uncommitted fixes on canary. Make a branch, commit them and open a PR.”

Requirements

  • Git and the GitHub CLI (gh), authenticated

Workflow steps

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

  1. Gather context (run in parallel)
  2. Handle uncommitted changes on default branch
  3. Push if needed
  4. Search related GitHub issues
  5. Acceptance gate
  6. Create PR with gh pr create --base canary
  7. Link the PR to its acceptance
  8. Open in browser

What it can do on your machine

Read from SKILL.md and the folder at commit 1863542. 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:

    • git
    • gh
    • bun

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

  • Network

    No URLs in SKILL.md. Its commands use git and gh, 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

Pull Request Creation loads about 3.2k tokens when it runs. Until then it costs about 140 tokens; SKILL.md has 1,588 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,588 words (~3,170 tokens).

“If current branch is canary (or main) AND there are uncommitted changes:”

— opening of SKILL.md by lobehub, Custom licence
name
pr
user-invocable
true

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/pr of lobehub/lobehub.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 1863542

Compare with similar skills

Pull Request Creation 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.

Pull Request Creation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pull Request Creation this skilllobehub/lobehub83k—~3.2kAutomated safety check: PassCustom licence
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0
Publish Pull Request for taskctltaskctl/taskctl434—~979Automated safety check: PassGPL-3.0
Git GitHub Opsc5inco/compose-pokedexer143—~1.3kAutomated safety check: PassMIT
GitHub PR WorkflowRedWoodOG/Hermes-Desktop1775 repos~2.5kAutomated safety check: NotesMIT

Similar skills

  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Publishes the current branch and opens or updates a GitHub pull request for the taskctl repo, after a pre-publish gate and with a description template matched to the change.

    434 GitHub stars~979 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • Git GitHub Ops

    c5inco/compose-pokedexer

    Handles Pokedexer Git and GitHub workflows: inspect changes, prepare commit messages, manage branches and pushes, and create or update issues and pull requests with safe file-based inputs.

    143 GitHub stars~1.3k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • GitHub PR Workflow

    RedWoodOG/Hermes-Desktop

    Full pull request lifecycle — create branches, commit changes, open PRs, monitor CI status, auto-fix failures, and merge.

    177 GitHub starsUsed in 5 repos~2.5k tokens
    DevelopmentAuto-check: notes
  • PR Workflow

    usenotra/notra

    Git workflow for pushing code and opening pull requests on GitHub.

    255 GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed

More from lobehub/lobehub

All 50 skills in this repo
  • Builds single-file interactive HTML prototypes rendered with the real LobeHub UI components and written as production-style React, so they can later be split into files.

    83k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Verifies a delivery end to end by driving the real product on a CLI, web, desktop or iOS Simulator surface, capturing evidence and publishing a round with the lh CLI.

    83k GitHub stars~9.7k tokensUpdated today
    Auto-check passed
  • Git Worktree Cleanup

    lobehub/lobehub

    Audits stale Git worktrees and branches with a bundled script, classifies each one, and deletes only after you approve the exact candidates.

    83k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Guides building LobeHub builtin agent tools, from the manifest and execution runtime to executors, chat UI renders and registry wiring.

    83k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • Explains how LobeHub client code fetches data through services, SWR store hooks and cache keys, and when to avoid useEffect fetching or duplicated state.

    83k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Pull Request Creation

What does Pull Request Creation do?

Creates a pull request for the current branch against canary, or splits a cross-layer branch into ordered stacked PRs so backend changes merge before their callers. The skill creates PRs that target the canary branch by default and never main, which is the release branch. It first gathers context in parallel: the current branch, uncommitted changes, upstream status, unpushed commits, any existing PR and a change summary, and it reuses an acceptance link from the task when one exists.

When should I use Pull Request Creation?

Pull Request Creation fits situations like: opening a pull request for the current branch; splitting a branch so the server contract merges before its clients; turning uncommitted work on canary into a new branch and PR.

How do I install Pull Request Creation in Claude Code?

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

How do I install Pull Request Creation in Codex?

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

Can I use Pull Request Creation 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 lobehub/lobehub --skill 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/pr, .gemini/skills/pr, .github/skills/pr and .opencode/skills/pr in your project.

What does Pull Request Creation need to run?

Going by SKILL.md and its folder, Pull Request Creation needs the command-line tools its instructions call (git, gh and bun). Our summary lists: Git and the GitHub CLI (gh), authenticated.

Does Pull Request Creation access the network?

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

Is Pull Request Creation 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 Pull Request Creation use?

Pull Request Creation has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Pull Request Creation use?

About 3.2k tokens (SKILL.md is roughly 13k 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 Pull Request Creation?

Skills that share tags, products or a category with Pull Request Creation: React Router Pull Request Creator (remix-run/react-router, 57k stars), Draft Pull Request Creator (wordpress-mobile/WordPress-Android, 3.2k stars), Publish Pull Request for taskctl (taskctl/taskctl, 434 stars) and Git GitHub Ops (c5inco/compose-pokedexer, 143 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pull Request Creation?

lobehub (a GitHub organization) maintains it in lobehub/lobehub, which has 83,023 GitHub stars. The repository holds 50 skills in this directory. The repository was last updated on October 7, 2026.

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