AGENT SKILL

pr

Write or rewrite a pull request body as a Summary visual, before/after Evidence, and a Merge Danger call. Use when writing a PR body, presenting finished changes to the engineer for local review, or handing off a `run-workflow` run; the same body is what `publish-draft-pr` submits.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1
Forks
0

01 前言 Front Matter

name
pr
metadata
{ "source": "https://github.com/mattpocock/skills/blob/49dd158/skills/engineering/pr/SKILL.md", "credits": { "url": "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md", "skill": "show-me", "author": "Dex Horthy", "organisation": "Humanlayer" } }
description
Write or rewrite a pull request body as a Summary visual, before/after Evidence, and a Merge Danger call. Use when writing a PR body, presenting finished changes to the engineer for local review, or handing off a `run-workflow` run; the same body is what `publish-draft-pr` submits.

02 资源文件 2

03 SKILL.md 正文

PR

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>

This skill shapes the body only. It does not push, open, or edit a PR; those side effects belong to publish-draft-pr or an explicit user request.

One Body, Two Readers

The same body is the engineer's local review handoff and the pull request description. There is no separate change summary: the engineer reviews exactly what a PR reviewer will later read.

  • Write it to .scratch/<feature-slug>/pr-body.md, or to the path the caller names, and show it to the engineer in the conversation.
  • When a PR is opened later, reuse that file. Rewrite it first only if the diff changed after it was written; never draft a second, competing body.

Sources

Write from the reviewed diff against the correct base, plus the ticket, spec, or execution plan that motivated it, so the door call reflects intent and not only the diff. When they exist, also draw on implementation, review, and repair summaries and orchestration/run-summary.md. Use them as evidence; do not paste them in.

Skip all preambles and keep prose brief: the body starts at ## Summary. Use the project's domain language from its established glossary (GLOSSARY.md or CONTEXT.md, following the root map when contexts are scoped).

If the repository has a PR template (for example .github/pull_request_template.md), fill that template and place Summary, Evidence, and Merge Danger inside it rather than producing two competing bodies. Repository guidance wins where it says otherwise.

Sections

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 a reviewer needs to understand the change.

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 reviewer. A call tree, file tree, or shaped diff reads the same everywhere; Mermaid renders on GitHub and GitLab but not in a terminal.

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. "Tests are green" on its own is a claim, not a before and after.

For a bug fix, state the confirmed root cause in one line next to the evidence.

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: schema or data migrations, deletes, public API removals, and anything that ships outward (emails, webhooks, published packages). Rolling back a commit does not unsend a message, and a flagged rollout stays two-way only until the first write lands in the new format. Check repository guidance for changes it always treats as one-way.

You are grading your own change, so be most skeptical when the call is "two-way, small blast radius".

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. List deferred review findings and decisions that still need a human here.

Trace (optional)

Add a short ## Trace section last only when the PR comes from a ticket or an ai-workflow run. Keep it to reference lines: the Jira or issue key, the workflow terminal state from orchestration/run-summary.md (stated honestly, including non-PASS states), and a caller-supplied run or session link. Do not link local .scratch/ paths a reviewer cannot open.

Final Check

  • The Summary visual alone tells a reviewer what changed.
  • Evidence shows a before and an after.
  • The body states a door and a blast radius.
  • Nothing contains secrets, tokens, private URLs, or raw logs.
  • If the body is huge because the diff is huge, say so; the fix is a smaller PR, not a longer body.

04 同仓库更多 Skills

JanMichaelSE
JanMichaelSE/agentic-marketplace

ui-ux-pro-max

UI/UX design intelligence for web and mobile. Local database with 79 searchable styles (88 catalog entries), 192 color palettes, 74 font pairings, 192 product types, 119 UX guidelines, 105 curated icon entries, 17 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui, Jetpack Compose, Angular, Laravel, JavaFX, WPF, WinUI, Avalonia, Uno Platform, UWP, Three.js, and HTML/CSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

figma-mcp

Implement or compare UI against Figma designs using an available Figma MCP integration. Use for Figma-backed implementation, design-token extraction, or visual-parity gap analysis; Figma MCP access is optional and must already be configured by the user.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

improve-codebase-architecture

Find evidence-based, active-change architecture improvements using shared design and domain-modeling guidance. Use when a user wants to reduce architectural friction, deepen a module, or make a current change safer, more testable, and easier to navigate.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

domain-modeling

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing GLOSSARY.md or CONTEXT.md, or recording or editing an ADR.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

codebase-design

Provide the shared vocabulary and discipline for designing deep modules with clear interfaces and seams. Use when a user wants to design or improve a module, find deepening opportunities, choose a seam, or make code more testable and AI-navigable.

★ 1
JanMichaelSE
JanMichaelSE/agentic-marketplace

test-coverage-review

MUST invoke to review whether added or updated tests cover code changes in a diff. Checks new logic, branches, error paths, and regression risk, producing a change-to-test matrix. Use requirements-to-tests-traceability for acceptance-criteria mapping and orchestrated-review for bundled reviews.

★ 1