graphite-skill

graphite-skill is a skill for Claude Code from slamb2k/mad-skills. It costs 75 tokens per session (3,137 once invoked), scanned A, original, MIT.

A workflow for Git and Graphite, a tool for managing stacked code changes and pull requests, that delegates verbose command output to separate subagents.

In plain words
What is it for?
Use it for Git commands, Graphite stacks, pull-request information, logs, and other version-control tasks that generate lengthy output.
Why use it?
It reduces the amount of raw Git or Graphite output kept in the coding agent's working context.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions subagents; mentions Claude Code.

Part of the mad-skills plugin — 20 skills, 2 hooks shipped together

Good fit Use it for Git commands, Graphite stacks, pull-request information, logs, and other version-control tasks that generate lengthy output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slamb2k/mad-skills/graphite-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add slamb2k/mad-skills --skill graphite-skill
Clone the repo
git clone --depth 1 https://github.com/slamb2k/mad-skills

Made for: Claude Code.

Or install mad-skills, the plugin that ships this one along with the rest of its 20 skills, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for graphite-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/slamb2k/mad-skills/graphite-skill/github.svg)](https://agentmods.dev/skills/slamb2k/mad-skills/graphite-skill)
Your own site
<a href="https://agentmods.dev/skills/slamb2k/mad-skills/graphite-skill"><img src="https://agentmods.dev/badge/skills/slamb2k/mad-skills/graphite-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for graphite-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/slamb2k/mad-skills/graphite-skill"><img src="https://agentmods.dev/badge/skills/slamb2k/mad-skills/graphite-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Memory Poisoning · line 28
    Skill attempts to fill the context window with filler content, displacing legitimate instructions and safety constraints. This can degrade agent performance or bypass safety boundaries.
    Fix: Implement context-window management that detects and rejects padding or stuffing attempts. Prioritize system instructions over user-injected content.
  • medium Rogue Agent · line 89
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00075 $0.03137
Opus 5 $0.00037 $0.01569
Sonnet 5 $0.00015 $0.00627
Haiku 4.5 $0.00007 $0.00314

Measured 8d ago against content hash 39a10ff4fabd, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

graphite-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (hooks/session-start.sh, install.sh, test/verify-installation.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

archive/graphite-skill/SKILL.md · 439 lines

How it starts

The opening of the file, as written. The whole thing — 439 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Graphite Skill - Context-Efficient Git/Graphite Workflows

Stop drowning in verbose git/Graphite output. This skill automatically enables context-efficient workflows for all git and Graphite CLI operations in Claude Code through automatic delegation patterns.

Core Principles

  1. Automatic Delegation: Verbose git/Graphite operations are automatically delegated to Task subagents
  2. Context Isolation: Raw CLI output (15KB+) is processed in isolated context, summaries (<50 tokens) returned
  3. Zero Friction: SessionStart hooks inject patterns automatically - no manual invocation needed
  4. Team-Ready: Git-trackable configuration for team-wide distribution
  5. 225x Efficiency: Dramatic context window improvements (4,108 tokens → 18 tokens)

Problem Statement

Before Graphite Skill (Context Pollution)

You: "Check my Graphite stack"
Claude: [Returns 15KB of JSON → 4,000+ tokens consumed]
Result: Context polluted, reasoning degraded, 2-3 operations max

Traditional git/Graphite operations flood context:

  • gt stack → 15KB JSON (4,108 tokens)
  • git log --graph → 50KB output (12,000+ tokens)
  • gt pr info → 20KB JSON (5,000+ tokens)
  • Multiple queries → Context window exhaustion

After Graphite Skill (Context Efficiency)

You: "Check my Graphite stack"
Claude: [Automatically delegates to Task subagent]
Subagent: [Processes 15KB in isolated context]
Claude: "✓ feature/auth | 3 PRs | Review #456"
Result: Clean context, 18 tokens used, 100+ operations possible

Installation

Auto-Detection (Recommended)

The skill automatically detects if setup is needed!

When you have the carbon-flow plugin installed globally but haven't set up Graphite Skill in your project, the SessionStart hook will automatically prompt you with:

⚠️ Graphite Skill Setup Required

Would you like to set up Graphite Skill in this project now?

If yes, run: bash ~/.claude/plugins/mad-skills/graphite-skill/install.sh --project

Read the full file on GitHub · 439 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 439 lines · 75 tokens per session scan A 39a10ff4fabd

Subscribe to this mod's changes

graphite-skill is a skill published in the GitHub repository slamb2k/mad-skills (5 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 3,137 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

re0-merge

Review and land an external contribution the way this suite does: gate it against the thesis, land it with the author's credit intact, complete a new skill rather than merging it raw, then approve, credit, and explain before closing. Use when reviewing a pull request, as any collaborator or maintainer, not only the…

LilMGenius/paperthin · 70 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens