Tooluck logoTooluck
SKILL.md

pr

Agent skill fromvinvcn/mattpocock-skills-zh-CN

用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时。

How to install pr

install pr
# install the mattpocock-skills-zh-CN pack with the skills CLI
npx skills add vinvcn/mattpocock-skills-zh-CN

# or add only this skill to Claude Code: copy the folder

skills/engineering/pr/

# into

~/.claude/skills/pr/ (all projects)

.claude/skills/pr/ (one project)

skills/engineering/pr/SKILL.md

MITFull file
1使用以下模板撰写 PR 正文:
2
3```markdown
4## Summary
5
6<diagram, diff-sketch, or tree>
7
8## Evidence
9
10- **Before:** <screenshot/output/failing test run>
11 **After:** <screenshot/output/passing test run>
12
13## Merge Danger
14
15**Door:** <one-way or two-way>
16
17<optional: description>
18
19**Blast Radius:** <one-word description>
20
21<optional: potential ramifications of merge>
22```
23
24## 各部分
25
26跳过所有开场白,保持文字简短。使用 `GLOSSARY.md` 中用户所在领域的语言。
27
28### 摘要
29
30选择能清楚表达要点的最小视图。
31
32- 使用伪代码展示逻辑或算法:
33
34```text
35on(save)
36 if content is unchanged
37 return cached result
38 write new content
39 return fresh result
40```
41
42- 使用调用树展示运行时控制流:
43
44```text
45submitForm
46 createSession
47 persistPrompt
48 launchAgent
49 navigateToSession
50```
51
52- 使用组件树展示 UI 结构,并包含重要的状态与模块边界:
53
54```text
55<SessionPage> (apps/example/src/routes/session.tsx)
56 useSessionEvents()
57 <SessionToolbar>
58 <RunSkillButton> (packages/ui)
59```
60
61- 使用浅层文件树展示文件职责或大范围重构:
62
63```text
64src/
65├── commands/ # parses user actions
66├── sessions/ # owns session state
67└── transport/ # sends API requests
68```
69
70- 使用 Mermaid 展示组件交互、控制流或数据流:
71
72```mermaid
73sequenceDiagram
74 participant User
75 participant UI
76 participant Daemon
77 User->>UI: choose command
78 UI->>Daemon: send expanded prompt
79 Daemon-->>UI: stream result
80```
81
82- 当要点在于具体变化,而周边结构已经存在时,使用 `diff`。让 diff 的形状匹配主题。
83
84对于组件变更:
85
86```diff
87 <SessionPage>
88 useSessionEvents()
89 <SessionToolbar>
90+ <RunSkillButton />
91 <SessionTimeline>
92+ <SkillResultCard />
93```
94
95对于文件布局变更:
96
97```diff
98 src/
99 ├── commands/
100…

Excerpt shown under the repository's MIT license.

More skills in mattpocock-skills-zh-CN

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates