PR Body Writer

PR Body Writer

Gives a template for pull request bodies with a diagram or call-tree summary, before and after evidence and a merge-danger rating for reviewers.

Skill files3 files

agents/

SKILL.md171 lines
1
---
2
name: pr
3
description: "Use when writing a PR body."
4
metadata:
5
credits:
6
skill: show-me
7
author: Dex Horthy
8
organisation: Humanlayer
9
url: "https://github.com/humanlayer/skills/blob/main/plugins/show-me/skills/show-me/SKILL.md"
10
---
11
12
Use this template for writing the PR body:
13
14
```markdown
15
## Summary
16
17
<diagram, diff-sketch, or tree>
18
19
## Evidence
20
21
- **Before:** <screenshot/output/failing test run>
22
**After:** <screenshot/output/passing test run>
23
24
## Merge Danger
25
26
**Door:** <one-way or two-way>
27
28
<optional: description>
29
30
**Blast Radius:** <one-word description>
31
32
<optional: potential ramifications of merge>
33
```
34
35
## Sections
36
37
Skip all preambles and keep prose brief. Use the user's domain language from `GLOSSARY.md`.
38
39
### Summary
40
41
Pick the smallest view that makes the key point clear.
42
43
- Show logic or an algorithm as pseudocode:
44
45
```text
46
on(save)
47
if content is unchanged
48
return cached result
49
write new content
50
return fresh result
51
```
52
53
- Show runtime control flow as a call tree:
54
55
```text
56
submitForm
57
createSession
58
persistPrompt
59
launchAgent
60
navigateToSession
61
```
62
63
- Show UI structure as a component tree, including state and module boundaries that matter:
64
65
```text
66
<SessionPage> (apps/example/src/routes/session.tsx)
67
useSessionEvents()
68
<SessionToolbar>
69
<RunSkillButton> (packages/ui)
70
```
71
72
- Show file responsibility or a broad refactor as a shallow file tree:
73
74
```text
75
src/
76
├── commands/ # parses user actions
77
├── sessions/ # owns session state
78
└── transport/ # sends API requests
79
```
80
81
- Show component interaction, control flow, or data flow with Mermaid:
82
83
```mermaid
84
sequenceDiagram
85
participant User
86
participant UI
87
participant Daemon
88
User->>UI: choose command
89
UI->>Daemon: send expanded prompt
90
Daemon-->>UI: stream result
91
```
92
93
- Use `diff` when the point is what changes and the surrounding shape already exists. Match the diff shape to the topic.
94
95
For a component change:
96
97
```diff
98
<SessionPage>
99
useSessionEvents()
100
<SessionToolbar>
101
+ <RunSkillButton />
102
<SessionTimeline>
103
+ <SkillResultCard />
104
```
105
106
For a file-layout change:
107
108
```diff
109
src/
110
├── commands/
111
+│ └── show-me.ts # expands the slash command
112
├── sessions/
113
-└── transport.ts
114
+└── transport/
115
+ ├── client.ts
116
+ └── stream.ts
117
```
118
119
For a call-tree or call-stack change:
120
121
```diff
122
submitForm
123
createSession
124
persistPrompt
125
+ expandSkillMention
126
launchAgent
127
- navigateToSession
128
+ navigateToSession
129
+ subscribeToEvents
130
```
131
132
For a state or control-flow change:
133
134
```diff
135
on(save)
136
- write content
137
+ if content is unchanged
138
+ return cached result
139
+ write new content
140
+ invalidate cache
141
```
142
143
- 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:
144
145
```ts
146
function expandSkill(command: string): string {
147
const skillName = command.slice(1);
148
return `use the ${skillName} skill`;
149
}
150
```
151
152
#### Guidance
153
154
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.
155
156
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.
157
158
### Evidence
159
160
Concrete evidence that the change works. Show a before and after.
161
162
Screenshots are S-tier - when the environment is set up for it and the change is visual.
163
164
Execution-based evidence is A-tier. Test results, console output. Show the exact test that now fails and passes, using pseudocode.
165
166
### Merge Danger
167
168
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.
169
170
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.
171

© Matt Pocock · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…