用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/parsoFish/forge --skill stacked-pr-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Layered Trunk branching strategy for multi-agent development — worktree isolation, dependency layers, Ship/Show/Ask merge classification.
HTML5 Canvas game development patterns — game loop, rendering, input, state management, and Vite/Vitest tooling.
Docker Compose patterns for multi-container automation — health checks, networking, volumes, and service orchestration.
基于 SOC 职业分类
正在显示 SKILL.md
| name | stacked-pr-review |
| category | workflow |
| description | Progressive review of stacked/chained PRs with unique delta isolation and dependency-ordered close-out. |
gh pr diff shows accumulated changes instead of unique deltasStacked PRs that all target main accumulate ancestor commits in their diff.
The fix: review and merge in dependency order so each layer's diff is naturally correct.
Layer 0 (foundation): diff against main ← always correct
Layer 1 (depends on 0): after layer 0 merges, diff against updated main ← correct
Layer 2 (depends on 1): after layer 1 merges, diff ← correct
When PRs can't be merged between review rounds, compute the unique delta explicitly:
# PR B depends on PR A — show only B's unique changes
git diff origin/<A-branch>...origin/<B-branch>
# File stats for the unique delta
git diff --stat origin/<A-branch>...origin/<B-branch>
# Commits unique to B (not in A)
git log origin/<A-branch>..origin/<B-branch> --oneline
Do NOT use gh pr diff for stacked PRs targeting main — it shows the accumulated diff.
When multiple PRs modify the same files (cross-contamination from implementation):
file → [PR numbers]mergeLayer — lower layers process firstfix-and-merge for CONFLICTING PRs, merge-only for clean onesgh pr diff for stacked branches targeting main