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


