pr-skill

pr-skill is a skill for Claude Code from Azzygoatcoder/agent-useful-skills. It costs 70 tokens per session (750 once invoked), scanned A, original, MIT.

A workflow for submitting code changes as a GitHub pull request, which is a request for maintainers to review and merge a branch into a repository.

In plain words
What is it for?
Creating a feature branch, pushing it to a fork, preparing a pull request, and linking the request to the changes it addresses.
Why use it?
It guides contributors who work from a fork or want formal review through the branch, push, and submission steps.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the dev-workflow plugin — 4 skills shipped together

Good fit Creating a feature branch, pushing it to a fork, preparing a pull request, and linking the request to the changes it addresses.

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

Made for: Claude Code.

Or install dev-workflow, the plugin that ships this one along with the rest of its 4 skills.

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-skill

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/azzygoatcoder/agent-useful-skills/pr-skill"><img src="https://agentmods.dev/badge/skills/azzygoatcoder/agent-useful-skills/pr-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 750 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.00070 $0.00750
Opus 5 $0.00035 $0.00375
Sonnet 5 $0.00014 $0.00150
Haiku 4.5 $0.00007 $0.00075

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

Security

Grade A, and why

pr-skill 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 8d 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.

plugins/dev-workflow/skills/pr-skill/SKILL.md · 61 lines

What it actually says

PR — 提 Pull Request 工作流

fork 工作流提 PR。用于「无上游 push 权限」或「有权限但想走评审」的场景。

何时用 / 何时不用(看 push 权限)

判据同 release-skill:git remote -v 看 origin 是「权威仓库」还是「你的 fork」。

角色 要不要用 pr-skill
Owner(origin 即你的主仓库) ❌ 不需要——直接 push,不用 PR
Maintainer(团队 repo 写权限) 可选——想走评审才用
Contributor(只有 fork) ✅ 必须——fork-PR 是唯一路径

Prerequisites

  • gh CLI 已登录
  • remotes:origin = upstream(权威)、fork = 你的 fork
  • 工作区干净(先 commit)
  • 默认分支用 git rev-parse --abbrev-ref HEAD 判(master / main 皆可,别硬编码)

步骤

  1. 定分支名:问用户,或从 commit 主题推(如 fix/feishu-deadlockfeat/aihot-push
  2. 建分支 + 推到 fork
    git checkout -b <branch>
    git push fork <branch> -u
    
  3. 重置默认分支到 origin(工作留在 feature 分支,本地默认分支保持干净):
    git checkout <default-branch>
    git reset --hard origin/<default-branch>
    
  4. 取 fork ownergit remote get-url fork--head
  5. 建 PR
    gh pr create --title "<conventional-commit>" --base <default-branch> --head <fork-owner>:<branch> --body "..."
    
    • title 用 conventional commit(fix: / feat: / refactor: / chore: / docs:
    • body 1-2 段说明改了什么、为什么;多文件改动加 "What changed" 节
  6. 报 PR URL 给用户

Edge cases

  • 工作区不干净:先 commit 或 stash
  • 分支已在 fork 存在:force-push 或换名
  • gh 未登录:gh auth login
  • 多 remote:确认 origin/fork 配置正确再推

自进化日志

日期 学习来源 吸收的模式
2026-08-13 角色化梳理(owner/maintainer/contributor) 加「何时用」判据:owner 直接 push 不需要 PR,只有 contributor(或走评审的 maintainer)才用;与 release-skill 共用「push 权限」判据;默认分支自动判;中文化 + 场景表 + 自进化日志对齐科研骨架规范
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. 8d ago First seen · 61 lines · 70 tokens per session scan A 8dd9f8a6df3d

Subscribe to this mod's changes

pr-skill is a skill published in the GitHub repository Azzygoatcoder/agent-useful-skills (6 stars, last pushed 10d ago), licensed MIT. It adds 70 tokens to every session and 750 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.