Agent Skills
› spacedriveapp/spacebot
› pr-slicer
pr-slicer
GitHub用于将大型PR拆分为独立、低风险的小切片,以降低审查延迟和返工。通过设定行数/文件数预算、明确切片顺序及验证步骤,确保每个切片行为连贯且可独立验证,提升代码审查效率。
触发场景
split this PR
make this smaller
create stacked PRs
slice this change
reduce review churn
安装
npx skills add spacedriveapp/spacebot --skill pr-slicer -g -y
SKILL.md
Frontmatter
{
"name": "pr-slicer",
"description": "This skill should be used when the user asks to \"split this PR\", \"make this smaller\", \"create stacked PRs\", \"slice this change\", or \"reduce review churn\". Helps break work into low-risk, reviewable slices with clear verification per slice."
}
PR Slicer
Goal
Reduce review latency and rework by shipping smaller, independent slices.
Default Slice Budgets
- Target
<= 400changed lines per slice when practical. - Target
<= 10changed files per slice when practical. - Target
1-4commits per slice. - Keep each slice behaviorally coherent and independently verifiable.
Slicing Order
- Extract prerequisites first.
- Land mechanical refactors next.
- Land behavior changes after prerequisites are merged.
- Land UI/docs/polish last.
Slice Packet Template
For each slice, define:
GoalOwned filesOut of scopeRisk level(low/medium/high)Verification command(s)with expected pass conditionRollback plan
Hard Rules
- Avoid mixing refactor and behavior changes in one slice unless unavoidable.
- Avoid touching unrelated subsystems in one slice.
- Avoid cross-slice hidden dependencies.
- If a slice depends on unmerged work, state it explicitly.
Verification Discipline
- Run narrow checks first for touched behavior.
- Run project gate checks before handoff.
- Record exact commands and outcomes for each slice.
Final Handoff Format
- Slice list with order and purpose
- Per-slice owned files
- Per-slice verification evidence
- Residual risk and follow-up slices
版本历史
- ac52277 当前 2026-07-05 14:56


