Agent Skills
› spacedriveapp/spacebot
› pr-slicer
pr-slicer
GitHub辅助将大型PR拆分为独立、可验证的小切片,降低审查延迟与返工风险。通过设定行数/文件数预算及严格顺序规则,确保每个切片行为连贯且具备明确验证手段,最终输出包含目标、范围、风险及回滚计划的完整交付包。
Trigger Scenarios
split this PR
make this smaller
create stacked PRs
slice this change
reduce review churn
Install
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
Version History
- ac52277 Current 2026-07-05 14:56


