pr

pr is a skill for Claude Code, Codex from devcxl/mattpocock-skills-zh. It costs 11 tokens per session (1,096 once invoked), scanned A, a copy of pr, MIT.

A standard structure for writing pull request descriptions. It asks for a summary, evidence of the change, and the possible effects of merging it.

In plain words
What is it for?
It is for documenting code changes with diagrams, pseudocode, component trees, file trees, before-and-after evidence, and merge-risk notes.
Why use it?
It makes the change and its verification easier for reviewers to understand before they approve it.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the mattpocock-skills plugin — 38 skills shipped together

Good fit It is for documenting code changes with diagrams, pseudocode, component trees, file trees, before-and-after evidence, and merge-risk notes.

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

Made for: Claude Code, Codex.

Or install mattpocock-skills, the plugin that ships this one along with the rest of its 38 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

README.md
[![agentmods](https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/pr/github.svg)](https://agentmods.dev/skills/devcxl/mattpocock-skills-zh/pr)
Your own site
<a href="https://agentmods.dev/skills/devcxl/mattpocock-skills-zh/pr"><img src="https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/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/devcxl/mattpocock-skills-zh/pr"><img src="https://agentmods.dev/badge/skills/devcxl/mattpocock-skills-zh/pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,096 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 100% copy Near-identical to another mod 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.00011 $0.01096
Opus 5.5 $0.00004 $0.00438
Sonnet 5.5 $0.00002 $0.00219
Haiku 4.5 $0.00001 $0.00110

Measured 27d ago against content hash 16e51e87be15, 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 27d 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.

Origin

This is a copy

100% identical to pr — 88 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/engineering/pr/SKILL.md · 171 lines

How it starts

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

写 PR body 时用这个模板:

## Summary(摘要)

<图表、diff 草图,或树>

## Evidence(证据)

- **Before:** <截图 / 输出 / 失败中的测试运行>
  **After:** <截图 / 输出 / 通过了的测试运行>

## Merge Danger(合并风险)

**Door:** <单向门或双向门>

<可选:说明>

**Blast Radius:** <一个词的描述>

<可选:合并的潜在影响>

各章节

跳过所有开场白,行文保持简短。使用 GLOSSARY.md 里用户的领域语言。

Summary(摘要)

挑最小的、能把关键点讲清楚的视图。

  • 逻辑或算法用伪代码展示:
on(save)
  if content is unchanged
    return cached result
  write new content
  return fresh result
  • 运行时控制流用调用树展示:
submitForm
  createSession
    persistPrompt
    launchAgent
  navigateToSession
  • UI 结构用组件树展示,包含真正重要的状态和模块边界:
<SessionPage> (apps/example/src/routes/session.tsx)
  useSessionEvents()
  <SessionToolbar>
    <RunSkillButton> (packages/ui)
  • 文件职责或大范围重构用浅文件树展示:
src/
├── commands/       # 解析用户动作
├── sessions/       # 掌管会话状态
└── transport/      # 发送 API 请求
  • 组件交互、控制流或数据流用 Mermaid 展示:
sequenceDiagram
    participant User
    participant UI
    participant Daemon
    User->>UI: 选择命令
    UI->>Daemon: 发送展开后的提示
    Daemon-->>UI: 流式返回结果
  • 当重点是"变了什么"、而周围形状已经存在时,用 diff。让 diff 的形状匹配主题。

组件变更:

 <SessionPage>
   useSessionEvents()
   <SessionToolbar>
+    <RunSkillButton />
   <SessionTimeline>
+    <SkillResultCard />

文件布局变更:

 src/
 ├── commands/
+│   └── show-me.ts       # 展开 slash 命令
 ├── sessions/
-└── transport.ts
+└── transport/
+    ├── client.ts
+    └── stream.ts

调用树或调用栈变更:

 submitForm
   createSession
     persistPrompt
+    expandSkillMention
     launchAgent
-  navigateToSession
+  navigateToSession
+    subscribeToEvents

状态或控制流变更:

 on(save)
-  write content
+  if content is unchanged
+    return cached result
+  write new content
+  invalidate cache
  • 当大部分内容都是新的、省略上下文会掩盖归属或顺序、或者用户需要一个可复制的目标形状时,展示完整代码块:
function expandSkill(command: string): string {
  const skillName = command.slice(1);
  return `use the ${skillName} skill`;
}
指引

把每个视图放在它所支撑的短文字旁边。只保留回答用户当前问题、或解决当前讨论点所需选项所必需的调用、文件、props、状态和边界。

Read the full file on GitHub · 171 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 27d ago Changed · +2 lines 16e51e87be15
  2. 1mo ago Changed · +2 tokens per session d5fbe4c5cd94
  3. 1mo ago Changed · +5 lines e91dc57fa0ee
  4. 1mo ago First seen · 164 lines · 9 tokens per session scan A 9c36a2793b26

Subscribe to this mod's changes

pr is a skill published in the GitHub repository devcxl/mattpocock-skills-zh (512 stars, last pushed 4d ago), licensed MIT. It adds 11 tokens to every session and 1,096 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to pr, differing in 88 lines, and is treated as a copy.

Related

Other skills, from other repositories

triage

A process for reviewing issues and outside pull requests through category and status labels. An issue is a recorded problem or request, while a pull request is a proposed code change for review.

vinvcn/mattpocock-skills-zh-CN · 34 tokens

pr

A writing guide for creating pull request descriptions, which explain a proposed code change to reviewers. It uses sections for the summary, evidence, merge risk, and the likely area affected by the change.

vinvcn/mattpocock-skills-zh-CN · 36 tokens

setup-pre-commit

A setup for Husky pre-commit checks in a JavaScript or TypeScript repository. A pre-commit hook runs automatically before a Git commit and can format staged files, check types, and run tests.

vinvcn/mattpocock-skills-zh-CN · 65 tokens

code-review

A code-review skill that compares changes from a chosen commit, branch, tag, or merge-base against the repository’s coding standards and the related issue or specification.

vinvcn/mattpocock-skills-zh-CN · 94 tokens

improve-codebase-architecture

A skill that scans a codebase for places where restructuring could make future changes and testing easier, then produces an HTML report for selected improvements.

vinvcn/mattpocock-skills-zh-CN · 35 tokens

implement-spec

A coding workflow that implements a written specification through a set of linked tickets. It creates a branch and draft pull request, assigns independent work to separate agents, combines their changes, and prepares the result for review.

vinvcn/mattpocock-skills-zh-CN · 19 tokens