Pr skill for Claude

Use when writing a PR body.

Pr SKILL.md

The full skill file from mattpocock/skills (MIT).

Use this template for writing the PR body:

## Summary

<diagram, diff-sketch, or tree>

## Evidence

- **Before:** <screenshot/output/failing test run>
  **After:** <screenshot/output/passing test run>

## Merge Danger

**Door:** <one-way or two-way>

<optional: description>

**Blast Radius:** <one-word description>

<optional: potential ramifications of merge>

Sections

Skip all preambles and keep prose brief. Use the user's domain language from GLOSSARY.md.

Summary

Pick the smallest view that makes the key point clear.

  • Show logic or an algorithm as pseudocode:
on(save)
  if content is unchanged
    return cached result
  write new content
  return fresh result
  • Show runtime control flow as a call tree:
submitForm
  createSession
    persistPrompt
    launchAgent
  navigateToSession
  • Show UI structure as a component tree, including state and module boundaries that matter:
<SessionPage> (apps/example/src/routes/session.tsx)
  useSessionEvents()
  <SessionToolbar>
    <RunSkillButton> (packages/ui)
  • Show file responsibility or a broad refactor as a shallow file tree:
src/
├── commands/       # parses user actions
├── sessions/       # owns session state
└── transport/      # sends API requests
  • Show component interaction, control flow, or data flow with Mermaid:
sequenceDiagram
    participant User
    participant UI
    participant Daemon
    User->>UI: choose command
    UI->>Daemon: send expanded prompt
    Daemon-->>UI: stream result
  • Use diff when the point is what changes and the surrounding shape already exists. Match the diff shape to the topic.

For a component change:

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

For a file-layout change:

 src/
 ├── commands/
+│   └── show-me.ts       # expands the slash command
 ├── sessions/
-└── transport.ts
+└── transport/
+    ├── client.ts
+    └── stream.ts

For a call-tree or call-stack change:

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

For a state or control-flow change:

 on(save)
-  write content
+  if content is unchanged
+    return cached result
+  write new content
+  invalidate cache
  • Show the whole block when most of it is new, when omitted context would hide ownership or order, or when the user needs a copyable target shape:
function expandSkill(command: string): string {
  const skillName = command.slice(1);
  return `use the ${skillName} skill`;
}
Guidance

Place each visual next to the short text it supports. Keep only the calls, files, props, states, and boundaries needed to answer the user's current question or the options to resolve the current discussion point.

You may use one of these, you may use several, it is unlikely you will use all of them. Use your judgement and don't overwhelm the user.

Evidence

Concrete evidence that the change works. Show a before and after.

Screenshots are S-tier - when the environment is set up for it and the change is visual.

Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode.

Merge Danger

Describe whether it's a one-way or two-way door. You can walk back through two-way doors, but not one-way doors. A PR that is cheap to roll back is lower risk. Changes that involve destructive actions or hard-to-reverse decisions are one-way doors.

The blast radius is the potential impact or scope of the changes introduced by this PR. Consider all possibilities. Examples are layout shift, breakages for consumers, mobile responsiveness, etc.

How to install Pr

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit mattpocock/skills/skills/engineering/pr#main ~/.claude/skills/pr

Codex

npx degit mattpocock/skills/skills/engineering/pr#main ~/.codex/skills/pr

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Pr skill do?

Use when writing a PR body.

+How do I install Pr in Claude Code?

Copy the skill folder into ~/.claude/skills/pr, for example with "npx degit mattpocock/skills/skills/engineering/pr#main ~/.claude/skills/pr". Claude Code loads it automatically and uses it when a task matches.

+Does Pr work with ChatGPT or Codex?

Yes. Pr uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/pr. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Pr free?

Pr is published on GitHub by mattpocock under the MIT license, which allows free use.

Related writing & editing skills

  1. Humanizer

    Rewrite AI-sounding text so it reads like the writer without changing what it says.

    blader/humanizer★ 70k
  2. Stop Slop

    Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.

    hardikpandya/stop-slop★ 19k
  3. Writing Skills

    Use when creating new skills, editing existing skills, or verifying skills work before deployment

    obra/superpowers★ 319k
  4. Triage

    Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.

    mattpocock/skills★ 327k
  5. Writing Beats

    Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

    mattpocock/skills★ 327k
  6. Writing For Agents

    Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

    mattpocock/skills★ 327k
  7. Writing Fragments

    Writing, explore: mine raw fragments, no structure yet.

    mattpocock/skills★ 327k
  8. Writing Shape

    Writing, exploit: shape raw material into an article, paragraph by paragraph.

    mattpocock/skills★ 327k
  9. Writing Plans

    Use when you have a spec or requirements for a multi-step task, before touching code

    obra/superpowers★ 319k

See all writing & editing skills →

More skills from mattpocock

  1. Prototype

    Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels…

    mattpocock/skills★ 327k
  2. Retro

    Conduct a retrospective on a coding session.

    mattpocock/skills★ 327k
  3. Scaffold Exercises

    Create exercise directory structures with sections, problems, solutions, and explainers that pass linting.

    mattpocock/skills★ 327k

All skills by mattpocock →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.