
PR
用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时。
Install
npx skills add vinvcn/mattpocock-skills-zh-CN --skill pr -g -a claude-code -y- Repository
- vinvcn/mattpocock-skills-zh-CN5.5k
- Category
- Git and review
- Updated
- 7d ago
- License
- MIT
- Context cost
- Lightabout 660 tokens
- Runs scripts
- No, instructions only
What it does
用于撰写 PR 正文。适用于用户要求起草、改写或改进 PR 正文,或希望 PR 更便于审阅时。
使用以下模板撰写 PR 正文:
## 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>
各部分
跳过所有开场白,保持文字简短。使用 GLOSSARY.md 中用户所在领域的语言。
摘要
选择能清楚表达要点的最小视图。
- 使用伪代码展示逻辑或算法:
on(save)
if content is unchanged
return cached result
write new content
return fresh result
- 使用调用树展示运行时控制流:
submitForm
createSession
persistPrompt
launchAgent
navigateToSession
- 使用组件树展示 UI 结构,并包含重要的状态与模块边界:
<SessionPage> (apps/example/src/routes/session.tsx)
useSessionEvents()
<SessionToolbar>
<RunSkillButton> (packages/ui)
- 使用浅层文件树展示文件职责或大范围重构:
src/
├── commands/ # parses user actions
├── sessions/ # owns session state
└── transport/ # sends API requests
- 使用 Mermaid 展示组件交互、控制流或数据流:
sequenceDiagram
participant User
participant UI
participant Daemon
User->>UI: choose command
UI->>Daemon: send expanded prompt
Daemon-->>UI: stream result
- 当要点在于具体变化,而周边结构已经存在时,使用
diff。让 diff 的形状匹配主题。
对于组件变更:
<SessionPage>
useSessionEvents()
<SessionToolbar>
+ <RunSkillButton />
<SessionTimeline>
+ <SkillResultCard />
对于文件布局变更:
src/
├── commands/
+│ └── show-me.ts # expands the slash command
├── sessions/
-└── transport.ts
+└── transport/
+ ├── client.ts
+ └── stream.ts
对于调用树或调用栈变更:
submitForm
createSession
persistPrompt
+ expandSkillMention
launchAgent
- navigateToSession
+ navigateToSession
+ subscribeToEvents
对于状态或控制流变更:
on(save)
- write content
+ if content is unchanged
+ return cached result
+ write new content
+ invalidate cache

