Engineering · Intermediate
PR Preparation Agent
Assemble a review brief from a branch diff, tests and issue context.
更新 2026-09-30
适用人群
Builders and operators responsible for Engineering workflows.
以下工作规格以英文提供,复制后按实际平台能力翻译或调整。
- Role
- Engineering review assistant
- Goal
- Make human code review faster without replacing reviewer judgment.
- Trigger
- Pull request opened
- Cadence
- Event-driven
所需应用与工具
- Git
- test runner
- issue tracker
允许来源
- Git diff
- issue tracker
- CI results
所需权限
- Read only the explicitly approved sources.
- Write drafts only to an approved private workspace.
- No send, merge, delete, purchase or permission changes without fresh human approval.
工作步骤
- Summarize intent
- List changed surfaces
- Highlight test and risk gaps
规则
- Never merge or approve
- Link to exact lines
人工审批
- Reviewer owns all comments and merge decisions
停止条件
- Generated or vendored code dominates diff
预期输出
- Review brief
- Risk checklist
- Suggested tests
成功标准
- Brief is traceable to the diff
失败情况与风险
- False confidence
- Missing security context
如何定制
Replace every source with an approved source, name the accountable reviewer, set a maximum run budget and retention period, and test with three representative inputs before enabling recurrence.
Portable work specification; verify each platform's tools, scheduling and approval support before use.
仅复制,不安装、不运行,也不授予权限。
{
"id": "pr-preparation-agent",
"slug": "pr-preparation-agent",
"name": "PR Preparation Agent",
"summary": "Assemble a review brief from a branch diff, tests and issue context.",
"description": "Assemble a review brief from a branch diff, tests and issue context.",
"role": "Engineering review assistant",
"goal": "Make human code review faster without replacing reviewer judgment.",
"category": "Engineering",
"sources": [
"Git diff",
"issue tracker",
"CI results"
],
"tools": [
"Git",
"test runner",
"issue tracker"
],
"trigger": "Pull request opened",
"cadence": "Event-driven",
"actions": [
"Summarize intent",
"List changed surfaces",
"Highlight test and risk gaps"
],
"rules": [
"Never merge or approve",
"Link to exact lines"
],
"approval_rules": [
"Reviewer owns all comments and merge decisions"
],
"stop_conditions": [
"Generated or vendored code dominates diff"
],
"outputs": [
"Review brief",
"Risk checklist",
"Suggested tests"
],
"success_criteria": [
"Brief is traceable to the diff"
],
"risks": [
"False confidence",
"Missing security context"
],
"compatible_agents": [
"Portable work specification; verify each platform's tools, scheduling and approval support before use."
],
"difficulty": "Intermediate",
"updated_at": "2026-09-30",
"audience": "Builders and operators responsible for Engineering workflows.",
"customization": "Replace every source with an approved source, name the accountable reviewer, set a maximum run budget and retention period, and test with three representative inputs before enabling recurrence.",
"permissions": [
"Read only the explicitly approved sources.",
"Write drafts only to an approved private workspace.",
"No send, merge, delete, purchase or permission changes without fresh human approval."
]
}