pr-slicer

GitHub

将大型PR拆分为低风险的独立切片,降低审查延迟。遵循行数和文件数限制,按依赖顺序切分,确保每部分可验证且无副作用,提升代码审查效率。

.agents/skills/pr-slicer/SKILL.md spacedriveapp/spacebot

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
More Options

Non-standard path

npx skills add https://github.com/spacedriveapp/spacebot/tree/main/.agents/skills/pr-slicer -g -y

Use without installing

npx skills use spacedriveapp/spacebot@pr-slicer

指定 Agent (Claude Code)

npx skills add spacedriveapp/spacebot --skill pr-slicer -a claude-code -g -y

安装 repo 全部 skill

npx skills add spacedriveapp/spacebot --all -g -y

预览 repo 内 skill

npx skills add spacedriveapp/spacebot --list

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 <= 400 changed lines per slice when practical.
  • Target <= 10 changed files per slice when practical.
  • Target 1-4 commits per slice.
  • Keep each slice behaviorally coherent and independently verifiable.

Slicing Order

  1. Extract prerequisites first.
  2. Land mechanical refactors next.
  3. Land behavior changes after prerequisites are merged.
  4. Land UI/docs/polish last.

Slice Packet Template

For each slice, define:

  • Goal
  • Owned files
  • Out of scope
  • Risk level (low/medium/high)
  • Verification command(s) with expected pass condition
  • Rollback 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

Same Skill Collection

.agents/skills/async-state-safety/SKILL.md
.agents/skills/commit-all/SKILL.md
.agents/skills/messaging-adapter-parity/SKILL.md
.agents/skills/pr-gates/SKILL.md
.agents/skills/prompt-review/SKILL.md
.agents/skills/provider-integration-checklist/SKILL.md
.agents/skills/release-bump-changelog/SKILL.md
.agents/skills/review-fix-loop/SKILL.md
.agents/skills/writing-guide/SKILL.md
skills/builtin/wiki-writing/SKILL.md

Metadata

Files
0
Version
ac52277
Hash
18e8ea96
Indexed
2026-07-05 14:56

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-08 23:03
浙ICP备14020137号-1 $bản đồ khách truy cập$