pr

pr is a skill for Claude Code, Codex from ZhangShenao/harness9. It costs 31 tokens per session (1,061 once invoked), scanned A, original, MIT.

A workflow for pushing committed changes to a remote Git branch and opening a draft pull request on GitHub. A pull request is a request for others to review and merge code.

In plain words
What is it for?
Use it after committing work to verify the branch, push it, prepare a summary and test plan, and create a draft pull request.
Why use it?
It organizes the checks and information needed to share changes safely for review.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it after committing work to verify the branch, push it, prepare a summary and test plan, and create a draft pull request.

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

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 pr

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhangshenao/harness9/pr"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,061 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 41
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 41
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
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.00031 $0.01061
Opus 5.5 $0.00012 $0.00424
Sonnet 5.5 $0.00006 $0.00212
Haiku 4.5 $0.00003 $0.00106

Measured 14d ago against content hash d90d7877976b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d 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.

.dsh/skills/pr/SKILL.md · 119 lines

How it starts

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

Open a Draft Pull Request

DSH 斜杠命令:输入 /pr 会把本技能全文注入当前回合,/pr 之后的文本作为参数;模型也可按描述自动加载。

Overview

Push the current feature branch and open a draft PR. Keep it simple: verify safety invariants, push, create PR.

Safety Contract

  • Never push from main, master, or detached HEAD
  • Never use --force or --force-with-lease
  • Push the frozen commit OID, not symbolic HEAD
  • Always create a draft PR (--draft)
  • Never add AI attribution or Co-Authored-By lines
  • Never commit inside this workflow; require a prior /commit or explicit user authorization of existing HEAD

Workflow

1. Pre-flight checks

git rev-parse --show-toplevel
git status --porcelain=v1 -z --untracked-files=all
git symbolic-ref --quiet --short HEAD
git rev-parse HEAD

Validate:

  • Branch: must not be main, master, or detached HEAD. Must match ^[A-Za-z0-9][A-Za-z0-9_/-]*$.
  • Worktree: must be clean (empty status). If not clean, stop and ask user to commit first.
  • HEAD OID: must match ^[0-9a-f]{40}$. Record as RECORDED_HEAD.

If there is no /commit result in the current conversation, ask the user to explicitly authorize publishing the existing HEAD before proceeding.

2. Validate remote and topology

gh auth status --hostname github.com
gh repo view "$ORIGIN_REPO" --json nameWithOwner,isFork,defaultBranchRef
  • Get the sole origin push URL via git remote get-url --all --push origin. Validate it matches [email protected]:<owner>/<repo>.git or https://github.com/<owner>/<repo>.git. Reject credentials, ports, or non-GitHub hosts.
  • Set ORIGIN_REPO = <owner>/<repo>, BASE_REPO = ORIGIN_REPO (if not a fork), BASE_BRANCH = default branch from gh repo view.
  • If the repo is a fork, ask the user for the explicit base repository.
  • Fetch BASE_OID via GraphQL to pin the base commit.

3. Check for existing PR

gh api --method GET "repos/$BASE_REPO/pulls" \
  -f state=open \
  -f "head=$HEAD_OWNER:$BRANCH"

Read the full file on GitHub · 119 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. 14d ago Changed · +31 lines · -7 tokens per session d90d7877976b
  2. 3mo ago First seen · 88 lines · 38 tokens per session scan A b8d675fecd0d

Subscribe to this mod's changes

pr is a skill published in the GitHub repository ZhangShenao/harness9 (166 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,061 once invoked, about $0.0001 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-08-30.

Related

pr compared with skills from other repositories

pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prZhangShenao/harness9Skill166yesterdayMITA31Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill92ktodayMITA46Claude Code
prowler-commitprowler-cloud/prowlerSkill15k2d agoApache-2.0A44Claude Code, Codex
gh-auth-isolationgithub/gh-awSkill5.8ktodayMITA20Claude Code, Codex
comet-githubrpamis/cometSkill3.3ktodayMITA72Claude Code, Codex
github-skillzeenie-ai/OpenCompanySkill1.1k5d agoMITA51Claude Code
re0-mergeLilMGenius/paperthinSkill1.5kyesterdayMITA51Claude Code, Codex