prepare-pr

prepare-pr is a skill for Claude Code from Xakki/ai-agents-skills. It costs 92 tokens per session (657 once invoked), scanned A, original, MIT.

A pull-request preparation workflow for a software branch. A pull request is a request for teammates to review and merge a set of code changes.

In plain words
What is it for?
Use it to inspect the branch and diff, run quality checks, avoid staging credential or backup files, and draft sections covering the task, changes, verification, and artifacts.
Why use it?
It checks what the branch contains, runs the relevant quality checks, warns about likely secret files, and prepares a factual review description without pushing or opening the request by default.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the ai-agents-skills plugin — 23 skills, 3 agents, 6 hooks shipped together

Good fit Use it to inspect the branch and diff, run quality checks, avoid staging credential or backup files, and draft sections covering the task, changes, verification, and artifacts.

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

Made for: Claude Code.

Or install ai-agents-skills, the plugin that ships this one along with the rest of its 23 skills, 3 agents, 6 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xakki/ai-agents-skills/prepare-pr"><img src="https://agentmods.dev/badge/skills/xakki/ai-agents-skills/prepare-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 657 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.00092 $0.00657
Opus 5 $0.00046 $0.00329
Sonnet 5 $0.00018 $0.00131
Haiku 4.5 $0.00009 $0.00066

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

Security

Grade A, and why

prepare-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 10d 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/prepare-pr/SKILL.md · 50 lines

How it starts

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

prepare-pr

Gets the current branch ready for review. Default mode is draft-only: it prepares the description and stops — it does not push or open a PR unless the user asks. Stops on a red quality gate.

Git mechanics (commit format, no force-push, explicit-path staging, no trailers beyond Agent: <zone>) follow the git-flow core. This skill adds only the PR-assembly delta below.

Steps

  1. Sanity. git status (clean? what's staged/untracked?) and git log <base>..HEAD + git diff <base>..HEAD to see what the PR contains.
  2. Quality gate — delegate to qa-check. Do not re-implement the checks here. If qa-check is red → stop, report, fix root cause first.
  3. Secret / artifact leak guard. Warn on suspicious untracked or staged files — never index them: .env, *.pem, id_rsa, *.session, *credentials*, dump.sql, *.bak. Add specific files (git add <path>), never git add . / -A.
  4. Draft the PR description from the commits — sections: Задача / Task, Что сделано / What changed, Что проверять / How to verify, Артефакты / Artifacts (links, migrations, config). Keep it factual.
  5. Stop (draft mode). Present the description + file list. Proceed to commit / push / open-PR only on explicit user request and per the mode chosen in ask-on-first-use.

Never (PR-specific)

  • Commit directly to the base branch (master/main) without an explicit request.
  • Push or open a PR automatically because the gate passed.

(General staging / force-push / no-verify / trailer rules → git-flow core.)

ask-on-first-use (per project)

Ask the user (don't guess) and offer to save to the project's .claude/:

  1. Base branch (master / main / other).
  2. Modedraft (default), commit, push, or create-PR.
  3. PR title convention + body template (any project-specific format).
  4. (optional) Secret deny-list additions beyond the defaults above.

Read the full file on GitHub · 50 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. 10d ago First seen · 50 lines · 92 tokens per session scan A 46dd2b2548ab

Subscribe to this mod's changes

prepare-pr is a skill published in the GitHub repository Xakki/ai-agents-skills (6 stars, last pushed 20d ago), licensed MIT. It adds 92 tokens to every session and 657 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

docs-release-notes

Use when a change needs a user-visible release-note, changelog, or changeset entry — "add a release note", "add a changeset for this", "what goes in the changelog?", "write up what shipped", "note this for the next release" — or when finalizing a branch whose customer-visible features, bug fixes, or UI changes should…

The01Geek/prflow · 106 tokens

docs-sync-internal

Use when code changes on the current branch need matching internal or developer documentation — "update our internal docs", "the architecture docs are stale after this change", "document what I just changed", "do the dev docs still match the code?" — or as a pre-push check that developer docs track the code. Narrower…

The01Geek/prflow · 105 tokens

pr-description

Use when generating or updating a PR description for the current branch. Takes an optional issue number as argument.

The01Geek/prflow · 24 tokens

retrospective-audit

Stage B of /prflow:retrospective-weekly: given a most-recent-first subset of one recurring pattern's occurrence-PR context bundles (bounded by auditbundlecap), re-derive the root cause and return one JSON object carrying a ranked findings array (one to three sub-patterns) — no edits, no worktree. Invoked as a subagent…

The01Geek/prflow · 91 tokens

openclaw-github-dedupe

Investigate a cluster of GitHub issues and PRs, determine canonical candidates, post duplicate/related status, preserve contributor credit, and execute cleanup actions. Supports autonomous mode for provided-link-only closeout, merge/fix follow-through, changelog, and post-merge issue/PR cleanup.

vincentkoc/dotskills · 68 tokens

openclaw-pr-batch-sweep

Select, review, repair, validate, and land batches of up to 20 low-risk OpenClaw contributor pull requests using Vincent's maintainer preferences and bounded sub-agent lanes. Use for "next 20", broad contributor PR sweeps, merge-candidate mining, or continued PR-batch work where drafts, maintainer work, trivial…

vincentkoc/dotskills · 95 tokens