Token导航 LogoToken导航

Agent Skill · 运维和基础设施

graphite(graphite 命令行)

graphite 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

graphite 是运维和基础设施类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为权限未标注;许可证为 MIT,暂无第三方扫描结果,按安装量在运维和基础设施类的 2,449 个 Skill 里排第 582。

总安装 2,517周安装 107GitHub Stars 297下载 882核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:graphite(graphite 命令行)
来源仓库:https://github.com/kalbasit/ncps
仓库路径:skills/graphite
安装命令:
npx skills add https://github.com/kalbasit/ncps --skill graphite
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/kalbasit/ncps --skill graphite

这个 Skill 是做什么的

运维和基础设施类 Skill 处理部署、监控、日志和云资源,多数需要较高的执行权限。

用于处理 GitHub 仓库、Issue 和 Pull Request 等协作信息。适用于围绕仓库状态、代码变更或协作事项进行整理的场景。通过 GitHub 安装,支持 Codex、Claude、Cursor 和 Gemini CLI 等宿主环境。

安装前建议确认权限范围和维护状态,注意可能触发联网、命令执行或文件读写操作。具体用法需结合来源仓库 README 进一步核验,确保符合实际使用需求。

来源仓库内路径:skills/graphite

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/kalbasit/ncps --skill graphite;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    权限没有明确标注,第一次使用时只给一个无关紧要的任务,观察它到底读了哪些文件和网络。

常见问题

6 条

graphite 怎么安装?

在终端执行 npx skills add https://github.com/kalbasit/ncps --skill graphite。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

graphite 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

graphite 需要什么权限?

权限级别没有明确标注。第一次使用时建议只给无关紧要的任务,观察它实际读写了哪些内容。

graphite 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

graphite 用的人多吗?

公开数据是累计安装 2,517 次,近一周安装 107 次,下载 882 次,GitHub 297 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

graphite 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理运维和基础设施类任务、又不想每次都手写提示词的人。

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

运维和基础设施类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
brainstorming

头脑风暴 · Codex、Claude

3,148,776173,131操作浏览器MIT通过
copywriting

文案写作 · Codex、Claude

1,996,72425,583需要联网MIT通过
openclaw-secure-linux-cloud

OpenClaw secure linux cloud 命令行 · Codex、Claude

1,853,08840接触敏感数据未明确未通过
xget

xget 命令行 · Codex、Claude

1,799,28040执行命令未明确未通过
requesting-code-review

代码审查请求 · Codex、Claude

1,590,144173,103权限未标注MIT通过
graphite

graphite 命令行 · 本页

2,517297权限未标注MIT未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Graphite (gt) Skill

This skill provides instructions for navigating branches and restacking stacks using Graphite (gt).

Core Principles

  1. Strictly Prohibited: NEVER run gt ss, gt submit, or gt squash. These commands are forbidden.
  2. Navigation: Use gt commands to move between branches in a stack.
  3. Maintenance: Use gt restack for local stack maintenance and gt get or gt sync for syncing from remote.

Branch Navigation

Use these commands to navigate through a stack of branches:

CommandAction
gt upMove to the branch immediately above the current one in the stack.
gt downMove to the parent of the current branch.
gt prevMove to the previous branch in the stack, as ordered by gt log.
gt nextMove to the next branch in the stack, as ordered by gt log.
gt topMove to the tip branch of the current stack.
gt bottomMove to the branch closest to trunk in the current stack.
gt lsDisplay all tracked branches and their dependency relationships in a short format.

Stack Management

Maintain your stack with these commands:

CommandAction
gt restackEnsure each branch in the current stack has its parent in its Git commit history, rebasing if necessary. This maintains the local stack and does NOT reach out to upstream.
gt getSync a specific branch or stack from remote (trunk to branch). If no branch is provided, it syncs the current stack.
gt syncSync all branches (including trunk) from remote and prompt to delete merged branches.

Branch Management

Use these commands to manage branches within your stack.

CommandAction
gt create <branch-name>Create a new branch with the given name and stack it on top of the current one. Always follow the /gt-create workflow.
gt moveRebase the current branch onto a target branch and restack descendants. Use --onto <target-branch> to avoid interactive mode.
gt splitSplit the current branch into multiple branches. This command is highly interactive.

Commit Management

Use gt modify to manage commits within your stack. It automatically restacks descendants.

CommandAction
gt modify --amendAmend the head commit of the current branch.
gt modify -cCreate a new commit on the current branch. Preferred for adding new changes while keeping history clean.

Dealing with Interactivity

Many Graphite commands (gt modify, gt move, gt split, gt restack) are interactive by default, opening selectors, editors, or specialized menus.

  • For the Agent: Avoid using these commands in an interactive way. If a command requires user input that cannot be provided via flags (e.g., resolving complex rebase conflicts), stop and notify the user.
  • Rebase Conflicts: If gt restack or gt move hits a conflict, Graphite will pause. Follow these steps to resolve:

1. Locate Conflicts: Use git status or look at the error output to identify files with merge conflicts. 2. Edit Files: Open the conflicting files and resolve the merge markers (<<<<<<<, =======, >>>>>>>). Ensure the code is functionally correct and includes necessary changes from both sides. 3. Stage Changes: Run gt add -A (or git add <file>) to mark the conflicts as resolved. 4. Continue: Run gt continue to resume the restack process. IMPORTANT: NEVER use git rebase --continue as Graphite tracks its own state. 5. Verify: Once the restack completes, run tests to ensure the merged state is stable.

  • Interactive Selectors: Prefer providing explicit branch names or flags (like --onto for gt move) to avoid interactive selectors.

Common Fixes & Lessons

Using Graphite over Git

The Problem: Using standard git commit or git commit --amend fails to update Graphite's internal stack metadata and does not trigger automatic restacking of descendants. This can lead to a desynchronized stack where Graphite is unaware of the new commits or changes.

The Solution: Always prefer gt commands over their standard git counterparts for commit and branch management.

  • Creating a new branch: Use gt create <branch-name> instead of git checkout -b <branch-name>.
  • Creating a new commit: Use gt modify -c -m "message" instead of git commit -m "message".
  • Amending a commit: Use gt modify --amend instead of git commit --amend.
  • Staging and committing everything: Use gt modify -cam "message" instead of git commit -am "message".

Benefits:

  1. Metadata Integrity: Graphite keeps its internal view of the stack consistent.
  2. Automatic Restacking: Descendant branches are automatically updated if you change a parent branch.
  3. Visual Clarity: Graphite's CLI output stays accurate and helpful.

Misplaced Commits

If you accidentally commit a change to the wrong branch in a stack:

  1. Stash uncommitted changes: If you have uncommitted work, git stash to keep it safe.
  2. Move the change to a new branch (if the commit belongs in its own new branch):

1. gt create <new-branch> to safely move the head. 2. gt down to move back to the parent. 3. git reset --hard HEAD~1 (Safe now because the commit is preserved in the new branch).

  1. Move to an existing branch:

1. git reset HEAD~1 (Soft reset to keep changes in the working tree). 2. gt down/gt up to the target branch. 3. gt modify -c or gt modify --amend to incorporate the changes.

  1. Restore stashed changes: git stash pop to resume your work.
  2. Repair the stack: Move back to the tip and run gt restack to ensure all descendant branches are updated with the parent's new state.

Prohibited Commands

[!CAUTION] DO NOT use the following commands under any circumstances: - gt ss - gt submit - gt squash

These commands are strictly forbidden to ensure that PR submission, updates, and branch squashing are handled manually or through specified workflows.

平台分布

Claude Code

30.03%
按下载量换算265

Cursor

22.79%
按下载量换算201

OpenCode

16.72%
按下载量换算147

Codex

11.46%
按下载量换算101

github-copilot

7.74%
按下载量换算68

windsurf

2.9%
按下载量换算26

安全审计

暂无安全审计结果可展示。

权限和风险

权限未标注

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills