use-graphite
使用 Graphite CLI (gt) 而不是 git push/gh pr create 管理堆叠的 PR。自动检测 Graphite 存储库并使用有用的替代方案阻止冲突的命令。在以下情况下使用:(1) 即将在 Graphite 存储库中运行 git push 或 gh pr create,(2) 为某个功能创建新分支,(3) 提交代码以供审核,(4) 应拆分为可审核块的大型更改,(5) Hook 会阻止您的 git 命令并建议使用 gt 等效命令。不适合:未使用 Graphite、git add/commit/status/log 初始化的存储库。触发器:git push 受阻、gh pr create 受阻、创建分支、提交 PR、堆叠 PR、拆分大型 PR、gt 创建、gt 提交、石墨工作流程。
SKILL.md
Graphite enables stacked PRs - chains of dependent PRs that build on each other. Essential for large changes that would be overwhelming as single PRs.
| gt log short shows | You are | Next action |
| main only (no branches) | Not in a stack | gt create to start | | Branch with ← marker | On that branch in stack | Continue work, then gt submit | | Multiple branches in tree | Mid-stack | Check which branch, continue or gt checkout | | (merged) on parent | Parent merged | gt sync to update |
使用 Graphite CLI (gt) 而不是 git push/gh pr create 管理堆叠的 PR。自动检测 Graphite 存储库并使用有用的替代方案阻止冲突的命令。在以下情况下使用:(1) 即将在 Graphite 存储库中运行 git push 或 gh pr create,(2) 为某个功能创建新分支,(3) 提交代码以供审核,(4) 应拆分为可审核块的大型更改,(5) Hook 会阻止您的 git 命令并建议使用 gt 等效命令。不适合:未使用 Graphite、git add/commit/status/log 初始化的存储库。触发器:git push 受阻、gh pr create 受阻、创建分支、提交 PR、堆叠 PR、拆分大型 PR、gt 创建、gt 提交、石墨工作流程。 来源:lukasstrickler/ai-dev-atelier。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/lukasstrickler/ai-dev-atelier --skill use-graphite- 分类
- >_效率工具
- 认证
- —
- 收录时间
- 2026-02-02
- 更新时间
- 2026-02-18
快速解答
什么是 use-graphite?
使用 Graphite CLI (gt) 而不是 git push/gh pr create 管理堆叠的 PR。自动检测 Graphite 存储库并使用有用的替代方案阻止冲突的命令。在以下情况下使用:(1) 即将在 Graphite 存储库中运行 git push 或 gh pr create,(2) 为某个功能创建新分支,(3) 提交代码以供审核,(4) 应拆分为可审核块的大型更改,(5) Hook 会阻止您的 git 命令并建议使用 gt 等效命令。不适合:未使用 Graphite、git add/commit/status/log 初始化的存储库。触发器:git push 受阻、gh pr create 受阻、创建分支、提交 PR、堆叠 PR、拆分大型 PR、gt 创建、gt 提交、石墨工作流程。 来源:lukasstrickler/ai-dev-atelier。
如何安装 use-graphite?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/lukasstrickler/ai-dev-atelier --skill use-graphite 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/lukasstrickler/ai-dev-atelier