什么是 stacked-diffs?
使用 vanilla git 和 gh CLI 将大型代码更改分解为小的、堆叠的拉取请求。当实现跨越多个逻辑步骤、涉及多个文件或超过约 200 个更改行的功能或更改时自动触发。还会触发“堆栈 PR”、“将其分解为更小的 PR”、“堆栈差异”或“创建 PR 堆栈”。不要触发单个文件修复、小错误修复或单个逻辑单元的约 200 行以下的更改。 来源:rarestg/rarestg-skills。
使用 vanilla git 和 gh CLI 将大型代码更改分解为小的、堆叠的拉取请求。当实现跨越多个逻辑步骤、涉及多个文件或超过约 200 个更改行的功能或更改时自动触发。还会触发“堆栈 PR”、“将其分解为更小的 PR”、“堆栈差异”或“创建 PR 堆栈”。不要触发单个文件修复、小错误修复或单个逻辑单元的约 200 行以下的更改。
通过命令行快速安装 stacked-diffs AI 技能到你的开发环境
来源:rarestg/rarestg-skills。
Break large work into a chain of small, dependent PRs. Each PR is one logical unit — easy to review, test, and revert. The stack merges bottom-up into main.
Move to a new stacked branch whenever the current diff reaches a natural boundary. Do not accumulate a large changeset on one branch. Commit, push, open a PR, then branch off and keep going.
Stack when the work has multiple logical steps that build on each other:
使用 vanilla git 和 gh CLI 将大型代码更改分解为小的、堆叠的拉取请求。当实现跨越多个逻辑步骤、涉及多个文件或超过约 200 个更改行的功能或更改时自动触发。还会触发“堆栈 PR”、“将其分解为更小的 PR”、“堆栈差异”或“创建 PR 堆栈”。不要触发单个文件修复、小错误修复或单个逻辑单元的约 200 行以下的更改。 来源:rarestg/rarestg-skills。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/rarestg/rarestg-skills --skill stacked-diffs使用 vanilla git 和 gh CLI 将大型代码更改分解为小的、堆叠的拉取请求。当实现跨越多个逻辑步骤、涉及多个文件或超过约 200 个更改行的功能或更改时自动触发。还会触发“堆栈 PR”、“将其分解为更小的 PR”、“堆栈差异”或“创建 PR 堆栈”。不要触发单个文件修复、小错误修复或单个逻辑单元的约 200 行以下的更改。 来源:rarestg/rarestg-skills。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/rarestg/rarestg-skills --skill stacked-diffs 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/rarestg/rarestg-skills