create-pr

create-pr is a skill for Claude Code from ShreyPaharia/octomux. It costs 26 tokens per session (973 once invoked), scanned A, original, MIT.

A workflow for creating a GitHub pull request, which is a proposed code change submitted for review. It gathers task and branch details, summarises commits and changed files, pushes the branch when needed, and opens the pull request.

In plain words
What is it for?
Use it for octomux tasks to identify the repository and base branch, push local changes, and create a GitHub pull request.
Why use it?
It removes the repeated setup and context-gathering needed to turn a completed branch into a reviewable pull request.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the octomux plugin — 20 skills, 1 agent shipped together

Good fit Use it for octomux tasks to identify the repository and base branch, push local changes, and create a GitHub pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shreypaharia/octomux/create-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ShreyPaharia/octomux --skill create-pr
Clone the repo
git clone --depth 1 https://github.com/ShreyPaharia/octomux

Made for: Claude Code.

Or install octomux, the plugin that ships this one along with the rest of its 20 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/shreypaharia/octomux/create-pr/github.svg)](https://agentmods.dev/skills/shreypaharia/octomux/create-pr)
Your own site
<a href="https://agentmods.dev/skills/shreypaharia/octomux/create-pr"><img src="https://agentmods.dev/badge/skills/shreypaharia/octomux/create-pr/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/shreypaharia/octomux/create-pr"><img src="https://agentmods.dev/badge/skills/shreypaharia/octomux/create-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 973 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.00973
Opus 5 $0.00013 $0.00487
Sonnet 5 $0.00005 $0.00195
Haiku 4.5 $0.00003 $0.00097

Measured 12d ago against content hash 82d52b5374da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

create-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/create-pr/SKILL.md · 106 lines

How it starts

The opening of the file, as written. The whole thing — 106 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create PR for an octomux task

Create a GitHub pull request directly using gh pr create. The octomux dashboard will auto-detect the PR within 30 seconds.

Steps

  1. Identify the task branch and repo:

    • Ask the user which task, or infer from context
    • Get the task details (branch, repo_path, worktree):
      octomux get-task <task-id>
      
    • You need branch, repo_path, and base_branch. The task's base_branch is the PR base branch. If not set, default to main.
  2. Gather context for the PR description:

    Use the task's base_branch as <base>:

    git -C <worktree> log <base_branch>..HEAD --oneline
    git -C <worktree> diff <base_branch>...HEAD --stat
    
  3. Check if branch is pushed and push if needed:

    # Check if remote tracking branch exists
    git -C <repo_path> ls-remote --heads origin <branch>
    

    If the branch is not pushed yet, push it:

    git -C <repo_path> push -u origin <branch>
    

    If already pushed, check if local is ahead and push any new commits:

    git -C <worktree> status -sb  # check if ahead of remote
    git -C <repo_path> push origin <branch>  # push if ahead
    
  4. Draft the PR title and body, then confirm with the user:

    Title: Conventional commit format, under 70 chars, min 10 char description:

    <type>(<scope>): <description>
    

    Types: feat, fix, chore, refactor, docs, test, perf Examples: feat(hooks): add permission prompt tracking, fix(terminal): clean up orphaned tmux sessions

    Body: Must include all three sections — What, Why, and Testing:

    ## What
    
    <Description of what this PR does — summarize the changes>
    
    ## Why
    
    <Explanation of why this change is needed — the motivation>
    
    Resolves <link>
    
    ## Testing
    
    <How this was tested — commands run, manual verification, etc.>
    

    Linking tickets/issues:

    • If the task was created from a Jira ticket, include the Jira link
    • If the task was created from a GitHub issue, include: Resolves #<issue-number>
    • Infer the ticket/issue from the branch name. Jira-style keys match [A-Z][A-Z0-9]+-\d+ (e.g., feat/PROJ-123-... -> PROJ-123); numeric branches resolve to GitHub issues (fix/42-... -> #42).
    • If no ticket/issue is associated, omit the Resolves line

Read the full file on GitHub · 106 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 106 lines · 26 tokens per session scan A 82d52b5374da

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository ShreyPaharia/octomux (22 stars, last pushed 11d ago), licensed MIT. It adds 26 tokens to every session and 973 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.