pr

A workflow for opening a pull request, which is a request to merge code changes into a shared Git repository. It checks Git identity, changed files, the build, staging, and the feature branch before using GitHub’s command-line tool.

In plain words
What is it for?
Use it after completing a code change or when asked to create or open a pull request. It is triggered by commands such as /pr, create PR, or ship this.
Why use it?
It provides a checklist for catching broken builds, unstaged files, incorrect identity, and unsafe staging before code is submitted for review.

Skill for Claude CodeCodex

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/bradymck/claude-code-harness/pr
Any agent
npx skills add Bradymck/claude-code-harness --skill pr
Clone the repo
git clone --depth 1 https://github.com/Bradymck/claude-code-harness

Made for: Claude Code, Codex.

Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 622 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.00060 $0.00622
Opus 5 $0.00030 $0.00311
Sonnet 5 $0.00012 $0.00124
Haiku 4.5 $0.00006 $0.00062

Measured 2d ago against content hash 55cd53637799, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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/pr/SKILL.md · 90 lines

How it starts

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

PR Workflow

Enforce complete git hygiene before opening any PR. Never skip a step.


Steps (execute in order, stop and fix before continuing)

1. Verify git identity

git config user.name
git config user.email

Must match the identity you intend to commit as. If wrong:

git config user.name "<your-github-username>"
git config user.email "<your-email>"

2. Check what's changed

git status
git diff --stat

List every modified file. Do NOT skip unstaged files.

3. Run the build

Run the project's build command (check package.json scripts, Makefile, or CI config):

  • Node projects: npm run build (or the project's equivalent)
  • Python: python3 -m py_compile <entrypoint> or the project's test/lint command
  • TypeScript: npx tsc --noEmit at minimum

Fix any errors before continuing. Do not open a PR with a broken build.

4. Stage ALL changed files

git add <every modified file by name>

Never use git add -A or git add . (risk of committing secrets or binaries). Double-check with git status — nothing should show as unstaged.

5. Create a feature branch if not already on one

git checkout -b <descriptive-branch-name>

Never commit directly to main. Branch names: feat/, fix/, chore/.

6. Commit

git commit -m "<type>(<scope>): <description>"

Follow conventional commits. No --no-verify.

7. Push

git push -u origin <branch>

Verify the remote is the correct account (gh repo view to confirm).

8. Create PR

gh pr create --title "<title>" --body "$(cat <<'EOF'
## Summary
- <bullet points of what changed>

## Test plan
- <what to verify>

🤖 Generated with Claude Code
EOF
)"

9. Return the PR URL

Share the PR link with the user so they can review before merging.


Rules

  • NEVER merge or deploy without user approval
  • NEVER use --force push to main
  • NEVER skip the build check — a broken build is worse than no PR
  • If pre-commit hook fails, fix the issue and create a NEW commit (never --amend)

Read the full file on GitHub · 90 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. 2d ago First seen · 90 lines · 60 tokens per session scan A 55cd53637799

Subscribe to this mod's changes

pr is a skill published in the GitHub repository Bradymck/claude-code-harness (2 stars, last pushed 2mo ago), licensed MIT. It adds 60 tokens to every session and 622 once invoked, about $0.0003 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

electron-pro

Expert in building cross-platform desktop applications using web technologies (HTML/CSS/JS) with the Electron framework.

fathah/hermes-desktop · 25 tokens

hive.worker-delegation

Concrete patterns for breaking colony work into parallel worker jobs via runplaybook — when fan-out helps, how to model the goal as a tracker table, write the worker skill, author the playbook, pilot, and let convergence retry/resume the gap.

aden-hive/hive · 58 tokens

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens

seedance

Generate AI videos using Volcengine Seedance model. Supports text-to-video (T2V), image-to-video (I2V), and audio-synced video generation. Use this skill when the user wants to create or generate videos.

netease-youdao/LobsterAI · 52 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

pr-feedback

Fetches PR review feedback and inline comments, categorizes them, and presents options to the user. Use when the user asks to get, read, address, or fix review comments on a pull request.

strands-agents/harness-sdk · 44 tokens