create-pr

create-pr is a skill for Claude Code, Codex from areal-project/AReaL. It costs 34 tokens per session (545 once invoked), scanned A, original, Apache-2.0.

A GitHub pull-request workflow for updating a feature branch, combining its changes into one commit, and opening or updating the pull request.

In plain words
What is it for?
Use it when your branch is ready to submit for review on GitHub and needs to be brought up to date with a base branch such as main.
Why use it?
It removes the manual steps of rebasing, squashing commits, writing a commit message, and preparing the pull request. It also stops when the branch or repository is not safe to change.

Skill for Claude CodeCodex

About the project

AReaL is an infrastructure system for training large language models with reinforcement learning, connecting model training to applications built around AI agents. Researchers and developers use it to train reasoning and agentic models through asynchronous workflows, and the catalogue add-ons support working with AReaL.

areal-project/AReaL · 5,717 stars · on GitHub

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.

agentmods
npx agentmods add skills/areal-project/areal/create-pr
Any agent
npx skills add areal-project/AReaL --skill create-pr
Clone the repo
git clone --depth 1 https://github.com/areal-project/AReaL

Made for: Claude Code, Codex.

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/areal-project/areal/create-pr.svg)](https://agentmods.dev/skills/areal-project/areal/create-pr)
Your own site
<a href="https://agentmods.dev/skills/areal-project/areal/create-pr"><img src="https://agentmods.dev/badge/skills/areal-project/areal/create-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00034 $0.00545
Opus 5 $0.00017 $0.00272
Sonnet 5 $0.00007 $0.00109
Haiku 4.5 $0.00003 $0.00055

Measured 5d ago against content hash 48f10dadf2d8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 5d 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.

.agents/skills/create-pr/SKILL.md · 80 lines

How it starts

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

Create Pull Request

Use this skill when the user asks to create or update a PR for the current branch.

Inputs

  • Optional --draft
  • Optional --base <branch> (default: main)

Preconditions

  1. Verify the current branch is not main or master.
  2. Check for uncommitted changes with git status --short.
  3. Ensure gh is available.
  4. If there are uncommitted changes, stop and ask the user whether to commit or stash them first.

Workflow

Step 1: Check for an existing PR

  • Run gh pr view --json number,title,url,state,isDraft.
  • If a PR already exists, tell the user before rewriting history or force-pushing.

Step 2: Fetch and rebase

git fetch origin <base>
git rebase origin/<base>
  • If rebase conflicts occur, abort the rebase and stop.
  • Tell the user which files conflicted and ask them to resolve manually.

Step 3: Squash into one commit

git reset --soft origin/<base>
  • Load the commit-conventions skill before generating the commit message.
  • Infer type and scope from the staged diff.
  • Keep the commit subject imperative and under about 72 characters.

Step 4: Generate PR title and body

  • Use the squashed commit message style for the PR title.
  • Follow the repository PR template at .github/PULL_REQUEST_TEMPLATE.md.
  • Summarize user-facing changes, risk areas, test commands run, and skipped suites with reasons.

Step 5: Push and create or update the PR

  • Push the branch.
  • If history was rewritten, confirm before force-pushing.
  • Create or update the PR with gh pr create or gh pr edit.
  • Respect --draft when requested.

Guardrails

  • Never create a PR from main or master.
  • Never silently force-push over an existing PR branch.
  • Never bypass commit-conventions for the squashed commit.
  • If gh authentication or remote permissions fail, stop and report the exact blocker.

Output

Report:

  • Base branch used
  • Final commit message
  • PR title
  • PR URL, if creation or update succeeded
  • Any steps that were skipped or require user follow-up

Read the full file on GitHub · 80 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. 5d ago First seen · 80 lines · 34 tokens per session scan A 48f10dadf2d8

Subscribe to this mod's changes

create-pr is a skill published in the GitHub repository areal-project/AReaL (5,717 stars, last pushed yesterday), licensed Apache-2.0. It adds 34 tokens to every session and 545 once invoked, about $0.0002 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.