Agent skill

Create PR

by ccusage in ccusage/ccusage

Runs the full PR lifecycle. An agent skill from ccusage/ccusage.

Custom licenceAuto-check passedDevelopment

Install Create PR

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

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

GitHub CLI
$ gh skill install ccusage/ccusage create-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/ccusage/ccusage.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-pr .claude/skills/create-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
create-pr
GitHub stars
19k
Token cost
~646 tokens
SKILL.md length
378 words
Files
4 (incl. references)
Skills in repo
17
Repo updated
First seen
Licence
Custom licence

At a glance

Runs the full PR lifecycle. An agent skill from ccusage/ccusage.

  • Works in 5 steps: Branch. Pushing to main needs explicit… → Push and open the PR —… → Request and handle AI review —… → …
  • Creating a branch
  • SKILL.md covers Workflow, Ready means and Context
  • Calls gh

What it does

Create PR is an agent skill from ccusage/ccusage. Runs the full PR lifecycle. Use when creating a branch, committing, pushing, opening a PR, requesting AI review, replying to review threads, and driving CI to green.

Its SKILL.md is about 650 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/ai-review.md`, `references/gh-review.md` and `references/open-pr.md`).

It sits in Development, covering Pull requests.

When your agent uses it

  • Creating a branch
  • Requesting AI review
  • Replying to review threads
  • Driving CI to green

Example prompts

  • “/create-pr”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Branch. Pushing to main needs explicit permission from the user; everything else goes through a feature branch named after the change…
  2. Push and open the PR — references/open-pr.md. A squash merge writes the PR title as the commit subject on main, so CI holds the title to…
  3. Request and handle AI review — references/ai-review.md, with the gh reply and thread-state calls in references/gh-review.md.
  4. Watch CI after opening and after every push with gh pr checks. Read the failing step logs and annotations rather than the summary, then…
  5. Merge only when the user explicitly asks and the conditions below hold: gh pr merge --squash --delete-branch. Squash is the repository's…

What it can do on your machine

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

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

  • Network

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

Create PR loads about 646 tokens when it runs, and up to ~1.6k if it reads all its reference files. Until then it costs about 44 tokens; SKILL.md has 378 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~646
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.6k

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 378 words (~646 tokens).

“This skill owns PR work in this repository: branch setup, opening the PR, AI review requests, reviewer thread replies, follow-up pushes, CI inspection, and merge.”

— opening of SKILL.md by ccusage, Custom licence
name
create-pr

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in .agents/skills/create-pr of ccusage/ccusage.

  • SKILL.md
  • references/ai-review.md
  • references/gh-review.md
  • references/open-pr.md

Open the folder on GitHubat commit d2fd844

Compare with similar skills

Create 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.

Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR this skillccusage/ccusage19k—~646Automated safety check: PassCustom licence
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-Anything85k1 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.

    85k 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 ccusage/ccusage

All 17 skills in this repo
  • Nushell

    ccusage/ccusage

    Guides ccusage Nushell scripts. An agent skill from ccusage/ccusage.

    19k GitHub stars~938 tokensUpdated today
    Auto-check passed
  • Rust Binary Size

    ccusage/ccusage

    Guides Rust binary size reduction for ccusage. An agent skill from ccusage/ccusage.

    19k GitHub stars~591 tokensUpdated today
    Auto-check passed
  • Skill Creator

    ccusage/ccusage

    Guides repo-local skill creation and updates. An agent skill from ccusage/ccusage.

    19k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • TDD

    ccusage/ccusage

    Guides t-wada Red-Green-Refactor TDD for ccusage logic changes.

    19k GitHub stars~665 tokensUpdated today
    Auto-check passed
  • Commit

    ccusage/ccusage

    Creates atomic Conventional Commits. An agent skill from ccusage/ccusage.

    19k GitHub stars~722 tokensUpdated today
    Auto-check passed
  • Cmux Debug

    ccusage/ccusage

    Verifies ccusage terminal output in a real cmux pane. An agent skill from ccusage/ccusage.

    19k GitHub stars~466 tokensUpdated today
    Auto-check passed

Categories

Questions about Create PR

What does Create PR do?

Runs the full PR lifecycle. An agent skill from ccusage/ccusage. Create PR is an agent skill from ccusage/ccusage. Runs the full PR lifecycle.

When should I use Create PR?

Create PR fits situations like: creating a branch; requesting AI review; replying to review threads; driving CI to green.

How do I install Create PR in Claude Code?

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

How do I install Create PR in Codex?

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

Can I use Create 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 ccusage/ccusage --skill create-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/create-pr, .gemini/skills/create-pr, .github/skills/create-pr and .opencode/skills/create-pr in your project.

What does Create PR need to run?

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

Does Create PR access the network?

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

Is Create 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 Create PR use?

Create PR 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 Create PR use?

About 646 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 909 tokens, read only when the agent opens those files.

What are the alternatives to Create PR?

Skills that share tags, products or a category with Create 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, 85k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR?

ccusage (a GitHub organization) maintains it in ccusage/ccusage, which has 18,901 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

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