ai-pr

ai-pr is a skill for Claude Code, Codex from arcasilesgroup/ai-engineering. It costs 60 tokens per session (1,688 once invoked), scanned A, original, Apache-2.0.

A guided GitHub pull-request process, where a pull request is a proposed code change sent for review. It creates a branch from local main, pushes it, opens the request, watches CI and review comments, makes limited obvious fixes, and can merge it when asked.

In plain words
What is it for?
Use it to open or finish pull requests, assemble their descriptions from merge commits, monitor automated checks and comments, apply bounded fixes, and merge the request when the instruction permits.
Why use it?
It makes the difference between opening a request and merging it explicit, reducing accidental pushes or merges. It also keeps the work and review steps in a defined order.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it to open or finish pull requests, assemble their descriptions from merge commits, monitor automated checks and comments, apply bounded fixes, and merge the request when the instruction permits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arcasilesgroup/ai-engineering/ai-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 arcasilesgroup/ai-engineering --skill ai-pr
Clone the repo
git clone --depth 1 https://github.com/arcasilesgroup/ai-engineering

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 ai-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-pr/github.svg)](https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-pr)
Your own site
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-pr"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-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 ai-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/arcasilesgroup/ai-engineering/ai-pr"><img src="https://agentmods.dev/badge/skills/arcasilesgroup/ai-engineering/ai-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,688 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.
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.00060 $0.01688
Opus 5.5 $0.00024 $0.00675
Sonnet 5.5 $0.00012 $0.00338
Haiku 4.5 $0.00006 $0.00169

Measured 7d ago against content hash b3759dd0bc4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-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 7d 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.

skills/ai-pr/SKILL.md · 162 lines

How it starts

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

ai-pr — publish the current branch safely

Run this skill only when the person asks for a pull request. It publishes the current branch from its current checkout or selected worktree; it does not move work to another checkout or branch. Read AGENTS.md and CONTRIBUTING.md for local branch, title, and changeset rules.

The ask

  • Open only means open the pull request, create it, and stop with no merge.
  • Finish, land, or merge means run the whole loop through merge.
  • If the wording is ambiguous, open only. A green check is not the person's request to merge.
  • Invoking this skill with a finish verb is the person's request to finish the PR. Never merge merely because checks passed; merge only on the human's explicit request.
  • Other branches and optional artifacts do not block this flow. A dirty current checkout does: name its changed paths and stop rather than publishing an uncertain diff.

Resolve the base

Read sources in this order; keep the first valid result:

  1. An explicit base ref or branch supplied by the person.
  2. [git] base in .ai-engineering/config.toml.
  3. The default remote branch from git symbolic-ref --quiet refs/remotes/<remote>/HEAD, using the current branch's upstream remote or origin.
  4. Only when opening a PR, ask the forge: gh repo view --json defaultBranchRef or az repos show --query defaultBranch.
  5. If none resolves, ask once and offer to save the answer in [git] base.

Keep the selected Git revision as $base_ref for comparisons. Resolve the forge target separately as $base_branch, a short branch name: strip refs/remotes/<remote>/ (or its <remote>/ prefix) from a remote-tracking ref, strip refs/heads/ from a local full ref, and keep an already-short branch name. Never pass a full ref or remote prefix as a forge target.

A repository without a remote cannot publish a PR: offer a local merge or ask once. If the selected base equals the current branch, ask once for a different base; do not create a self-targeting PR.

Read the full file on GitHub · 162 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. 7d ago Changed b3759dd0bc4d
  2. 10d ago Changed · +3 lines 5301408f064d
  3. 23d ago Changed · -198 lines · -114 tokens per session 86c99824d678
  4. 1mo ago First seen · 357 lines · 174 tokens per session scan A bbe223f3cec0

Subscribe to this mod's changes

ai-pr is a skill published in the GitHub repository arcasilesgroup/ai-engineering (65 stars, last pushed yesterday), licensed Apache-2.0. It adds 60 tokens to every session and 1,688 once invoked, about $0.0002 per session on Opus 5.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-10-05.

Related

ai-pr compared with skills from other repositories

ai-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-prarcasilesgroup/ai-engineeringSkill65yesterdayApache-2.0A60Claude Code, Codex
056-design-avoid-breaking-changesjabrena/plinthSkill4692d agoApache-2.0A106Claude Code, Codex
shiprjmurillo/ai-agentsSkill50todayApache-2.0A96Claude Code
git-advanced-workflowsrjmurillo/ai-agentsSkill50todayApache-2.0A53Claude Code
maintainer-reviewrjmurillo/ai-agentsSkill50todayApache-2.0A73Claude Code
chestertons-fencerjmurillo/ai-agentsSkill50todayApache-2.0A50Claude Code
gh-address-commentsulises-jeremias/agent-toolkitSkill28yesterdayMITA51Claude Code