К основному содержанию
скилл Claude Code

pr — скилл для Claude Code: что делает и как установить

Скилл помогает оформить тело pull request: выбрать схему для сводки изменений, добавить свидетельства и оценить риск слияния. Подойдёт, если PR нужно читать и проверять по понятной структуре.

Установить в Claude Code · Через маркетплейс плагинов Все способы и платформы ↓
/plugin marketplace add mattpocock/skills
/plugin install mattpocock-skills@mattpocock
Открыть на GitHub

Что делает pr

В разделе Summary скилл предлагает показать изменения схемой, деревом файлов, псевдокодом или diff. Для Evidence нужны конкретные примеры «до» и «после»: например, скриншот или результаты тестов. Merge Danger описывает, насколько легко отменить слияние и каков возможный радиус воздействия.

Текст PR должен быть кратким, без вступления, с терминами проекта из GLOSSARY.md. Это скилл для авторов PR, которым важно показать устройство изменения и подтверждение его работы. Если команде достаточно свободного описания без этих разделов, ставить его незачем.

Какие задачи решает

  • Показать поток вызовов после изменения
  • Сопоставить результаты до и после правки
  • Объяснить структуру компонентов или файлов в PR
  • Описать обратимость слияния и его радиус воздействия

Примеры запросов агенту

  • Напиши тело PR для этого изменения и покажи поток вызовов в Summary.
  • Добавь в Evidence результаты тестов до и после правки.
  • Оформи Summary как diff и оцени Merge Danger.

Как установить pr

1Через маркетплейс плагинов

/plugin marketplace add mattpocock/skills
/plugin install mattpocock-skills@mattpocock

2Через Skills CLI (Vercel)

npx skills add mattpocock/skills --skill pr -a claude-code

3Вручную: положить файлы

~/.claude/skills/pr/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/pr/

Похожие

setup-matt-pocock-skills Matt Pocock Настраивает репозиторий для инженерных скиллов Matt Pocock: трекер задач, метки triage и правила доменной документации. Запускайте перед первым использованием набора. Claude Code 1 052 851установок triage Matt Pocock Скилл проводит issue и внешние PR через роли триажа, проверку и подготовку брифа для агента. Подойдёт мейнтейнеру, который разбирает очередь задач. Claude Code 990 453установок code-review Matt Pocock Проверяет изменения от выбранной точки по стандартам репозитория и требованиям задачи. Нужен для ревью ветки, PR или незавершённой работы. Claude Code 789 521установок implement Matt Pocock Выполняет задачу по спецификации или тикетам, ведёт работу через тесты и завершает её ревью с коммитом. Подходит для задач, где нужен дисциплинированный цикл разработки. Claude Code 774 700установок git-guardrails-claude-code Matt Pocock Скилл ставит хук Claude Code, который останавливает опасные Git-команды до их запуска. Нужен, если агент не должен делать push или удалять изменения. Claude Code 499 069установок setup-pre-commit Matt Pocock Скилл настраивает pre-commit для JavaScript-репозитория: Husky запускает форматирование, проверку типов и тесты перед коммитом. Claude Code 489 289установок

Вопросы о pr

Как установить pr в Claude Code?

Добавьте маркетплейс командой /plugin marketplace add mattpocock/skills, затем установите скилл через /plugin install mattpocock-skills@mattpocock. Также во входе есть вариант установки через npx skills add mattpocock/skills --skill pr -a claude-code.

Что делает скилл pr?

Помогает написать тело PR с разделами Summary, Evidence и Merge Danger. Для сводки подбирает форму вроде дерева файлов или diff.

Какие свидетельства работы можно добавить в PR?

Скилл предлагает сравнить состояние до и после, например, через скриншоты, вывод программы или результаты тестов.

Исходный текст

SKILL.md · MIT
---
name: pr
description: "Use when writing a PR body."
metadata:
  credits:
    skill: show-me
    author: Dex Horthy
    organisation: Humanlayer
    url: "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md"
---

Use this template for writing the PR body:

```markdown
## 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:

```text
on(save)
  if content is unchanged
    return cached result
  write new content
  return fresh result
```

- Show runtime control flow as a call tree:

```text
submitForm
  createSession
    persistPrompt
    launchAgent
  navigateToSession
```

- Show UI structure as a component tree, including state and module boundaries that matter:

```text
<SessionPage> (apps/example/src/routes/session.tsx)
  useSessionEvents()
  <SessionToolbar>
    <RunSkillButton> (packages/ui)
```

- Show file responsibility or a broad refactor as a shallow file tree:

```text
src/
├── commands/       # parses user actions
├── sessions/       # owns session state
└── transport/      # sends API requests
```

- Show component interaction, control flow, or data flow with Mermaid:

```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:

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

For a file-layout change:

```diff
 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:

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

For a state or control-flow change:

```diff
 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:

```ts
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.

© Matt Pocock · MIT · mattpocock/skills

Смотрите также

Спонсоры проекта

Компании, которые помогают держать аналитику открытой