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