Agent skill

Graft

by m4r1k in m4r1k/Eneru

This repo is indexed by graft/. An agent skill from m4r1k/Eneru.

MITAuto-check passedDevOps & Cloud

Install Graft

skills CLI
$ npx skills add m4r1k/Eneru --skill graft -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install m4r1k/Eneru graft --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/m4r1k/Eneru.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/graft .claude/skills/graft && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
graft
GitHub stars
149
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
1,388 words
Files
1
Skills in repo
3
Repo updated
First seen
Licence
MIT

At a glance

This repo is indexed by graft/. An agent skill from m4r1k/Eneru.

  • Works in 6 steps: graft ask "" --source: locate +… → graft grep "": exhaustive find → graft skeleton : a file's API at a glance → …
  • Tasks that involve Monitoring and alerting
  • SKILL.md covers The tools, Scenarios: the shortest path…, Spend the fewest calls and Report what graft saved, every…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Graft is an agent skill from m4r1k/Eneru. This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Monitoring and alerting. It works with Docker, Prometheus, Linux and Grafana. The repository describes itself as: ⚡ UPS monitoring and shutdown orchestration for NUT: multi-UPS policy, VM/container/remote shutdown, TUI, API, Prometheus, MQTT, Grafana, and persistent notifications. The licence is MIT.

When your agent uses it

  • Tasks that involve Monitoring and alerting

Example prompts

  • “/graft”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. graft ask "" --source: locate + understand (the default)
  2. graft grep "": exhaustive find
  3. graft skeleton : a file's API at a glance
  4. graft callers : the exact edges
  5. graft map: orientation for an unfamiliar repo or area
  6. Lifecycle: graft build / graft check

What it can do on your machine

Read from SKILL.md and the folder at commit e2a4f30. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Graft loads about 2.3k tokens when it runs. Until then it costs about 67 tokens; SKILL.md has 1,388 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~67
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from m4r1k/Eneru at commit e2a4f30, republished under its MIT licence (© m4r1k). 1,388 words, ~2,272 tokens.

Download SKILL.mdSave it as .claude/skills/graft/SKILL.md (or your agent's skills folder).
name
graft
description
This repo is indexed by graft/. For ANY task here, whether understanding how something works, finding where code lives, tracing what calls a symbol or what a change breaks, or scoping an edit, get your context from graft before grepping or reading source files.

graft

graft/ holds a graph of this repo: small markdown nodes that each explain one part in prose and name the exact file:line spans they cover, plus a wiring graph of who-calls-what. Querying a node costs a few hundred tokens; rebuilding that understanding by reading source costs thousands, and misses the edges.

Each command below is a local graft command, needs no API key, and returns in under a second. There are six of them. Pick the one that fits the task, run it, act on the answer; don't chain tools hoping for more. Most tasks need one call.

The tools

1 · graft ask "<question>" --source: locate + understand (the default)

Ranked retrieval over the graph, routed automatically between prose nodes and the wiring graph, returning the top hits with exact file:line.

  • --source inlines the code at each hit, the ≤8-line crux of each definition, so the result IS the code you need, no follow-up file read. Add --full only when the crux is too small to act on.
  • --in <path> narrows to a subtree before ranking; -n N caps results (default 8).
  • Use it when the question is conceptual or locational: "how does auth work", "where is rate-limiting handled", "what assembles the request pipeline".
  • One ask usually answers. A genuinely multi-part question needs one ask per distinct sub-aspect, never the same question reworded. Few or weak hits mean switch tool (grep / skeleton / callers), don't re-ask.
2 · graft grep "<pattern>": exhaustive find

Regex (or --fixed for a literal) over every indexed file, hits grouped by enclosing symbol and ranked by coupling; it also reports files it couldn't read.

  • Use it when you need every occurrence: all call sites, all uses of a constant, all providers. ask is ranked top-N and will miss instances; grep won't. One grep replaces a spray of asks.
  • Search a short symbol name or literal, not a full guessed signature: an over-specific regex (func (s *Server) GenerateHandler) returns nothing even when the code is indexed. If a grep misses, loosen it (drop the receiver and signature, keep the bare name) and retry graft grep — do NOT switch to raw grep -rn, which is slower and unranked.
  • -i case-insensitive; --in <path> scopes to a subtree. Raw grep -rn is only for files graft genuinely doesn't index (docs, configs, brand-new files).
3 · graft skeleton <file>: a file's API at a glance

Signatures-only view of one file (every function / method / type with its span) in ~200 tokens, ~10x cheaper than reading the file.

  • Use it when you need "what's in this file / what can I call here" before editing or wiring into it. One skeleton is the whole answer for a file; don't re-skeleton the same file, and don't skeleton every file map already named.
4 · graft callers <symbol>: the exact edges

Precomputed call/reference edges, not a text search. Symbol can be bare (Foo), qualified (Class.method), or package-qualified (pkg.Fn).

  • default --direction in: who calls/references this; run before you rename, delete, or change its signature.
  • --direction out: what this symbol itself calls/depends on (the old callees).
  • --depth N: walk transitively N hops for the full blast radius (the old impact); --depth 2 is the usual "what breaks if I touch this".
  • --depth all: the entire connected closure — every source reachable through the edges. Reach for this before a refactor, rename, or any multi-file change: it surfaces the sibling and downstream files (platform variants, a module you must split out) that a single-file edit would miss.
5 · graft map: orientation for an unfamiliar repo or area

A token-budgeted tour: directory clusters, per-directory hubs, and global hotspots, straight from the wiring graph.

  • Use it when you land in a repo cold or are asked for "the architecture". map alone is the answer: read the hub cards it names; do NOT then skeleton or ask your way through every subsystem it lists. --max-dirs N widens it.
6 · Lifecycle: graft build / graft check

Every tool above refreshes the graph itself before answering, so what those tools return always describes the code as it is right now — including edits you just made and have not committed. You do not need to run build after editing.

One caveat, if you grep the markdown under graft/ directly: those cards are a projection, rebuilt at the end of the turn rather than on each query, so after an edit they can lag. The tools above never do — prefer them, and treat a card's spans as stale if you have edited that file this turn.

build is for the LLM layer (--deep adds a concept map; skip unless asked); check fails when graft/ is stale, for CI.

Show full SKILL.md (621 more words)Show less

Scenarios: the shortest path through a coding task

When you're…Reach forCalls
Onboarding / "explain this codebase"graft map, then read the named hub cards1
Understanding a flow ("how does X work")graft ask "<flow>" --source1
Finding where a change belongsgraft ask "where is <behavior>" --source1
Editing a symbol you can already namegraft grep "<symbol>", edit at the file:line (skip ask — you know where it is)1
Renaming / deleting / changing a signaturegraft callers <sym> --depth 2 first1
Refactor / multi-file change (before editing)graft callers <sym> --depth all — map every connected file, don't stop at the first1
"What does this depend on?"graft callers <sym> --direction out1
Finding every occurrence of a patterngraft grep "<literal>"1
"What's the API of this file?"graft skeleton <file>1
Debugging a failure in area Xgraft ask "<symptom>" --source, then callers on the suspect1–2
Judging a diff's risk before mergegraft callers <changed sym> --depth 21 / symbol
Working inside one repo of a monorepoadd --in <scope>/ to ask / grep / callersn/a

In a multi-repo workspace, graft ranks fairly so the biggest repo can't drown the rest, and every hit carries a [scope/] label naming its sub-project; when you already know where you're working, narrow with graft ask "<task>" --in <scope>/.

Spend the fewest calls

  • A node's covers: list already gives exact file:line for every symbol, so cite straight from it. The spans are generated from source and authoritative; don't re-open or re-grep files to "double-check".
  • When the task already names the file or symbol to change, go straight there: graft grep "<symbol>" for the exact file:line, then edit. Reserve graft ask for when you don't yet know where the code lives — an ask round-trip is wasted on a target you can already name.
  • Trust the answer and act. Reach for a second tool only when the first genuinely fell short: weak hits, a truncated span, or a need to be exhaustive.
  • If graft names a path that isn't on disk, its index is ahead of your checkout (a branch switch or unpulled move). Don't read the missing file — graft grep the symbol to find where it lives now, or run graft build to refresh.

Report what graft saved, every turn

Each retrieval tool opens its output with a [graft] tokens saved ≈ N line: the estimated tokens that call saved versus reading the files it covers whole. Whenever you used any graft tool in a turn, close your reply with a one-line tally summing those numbers across every graft call you made, e.g. 🌱 graft saved ~12,400 tokens this turn (3 calls). A call with no such line (tiny files, where the pointers cost as much as the source) saved nothing, so skip it. This is the per-turn figure; the statusline carries the running session total.

Never pipe a graft command through head, tail, or sed -n. Every tool is already capped and states what it dropped; clipping it costs you hits you asked for, and it silently drops the savings line the statusline's running total is parsed from.

When graft isn't enough

  • Span truncated ("+N more lines"): open the file at that exact range.
  • A node lacks a detail: ask a more specific question; only then read source at the exact file:line, never a whole file to rebuild understanding graft gives.
  • You may also grep / ls / cat inside graft/ directly (plain markdown; graft/INDEX.md indexes the nodes), but the tools above are faster and exhaustive where it matters, so reach for them first.

When the graft MCP server is connected, these are exposed as tools too: graft_find_code, graft_find_all, graft_file_api, graft_trace_calls (with direction / depth), graft_repo_map, graft_check_freshness. Use whichever surface is available; the guidance is identical.

© m4r1k, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/graft of m4r1k/Eneru.

Open the folder on GitHubat commit e2a4f30

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in m4r1k/Eneru, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Graft next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Graft compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Graft this skillm4r1k/Eneru1491 repos~2.3kAutomated safety check: PassMIT
Aqua Metricsoracle/accelerated-data-science125—~1.5kAutomated safety check: PassUPL-1.0
Alloygrafana/skills282—~1.3kAutomated safety check: PassApache-2.0
Beylagrafana/skills282—~1.1kAutomated safety check: PassApache-2.0
Grafanamagnus919/agent-skills115—~2.4kAutomated safety check: PassMIT
Syncmetapawurb/hotpath-rs1.9k—~1.2kAutomated safety check: NotesMIT

Similar skills

  • Aqua Metrics

    oracle/accelerated-data-science

    Official

    Set up Prometheus and Grafana monitoring for AQUA vLLM model deployments on OCI.

    125 GitHub stars~1.5k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Alloy

    grafana/skills

    Official

    Build a unified telemetry pipeline with Grafana Alloy — one OpenTelemetry-compatible binary that collects metrics, logs, traces, and profiles and ships to Grafana Cloud / Prometheus / Loki / Tempo /…

    282 GitHub stars~1.3k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Beyla

    grafana/skills

    Official

    Auto-instrument an application's HTTP / gRPC / DB traffic with Grafana Beyla eBPF — no code changes, no SDK, no restart.

    282 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Grafana

    magnus919/agent-skills

    Operate, configure, provision, secure, and troubleshoot Grafana OSS, Enterprise, and Cloud, including dashboards, folders, data sources, annotations, alert rules, contact points, notification…

    115 GitHub stars~2.4k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Syncmeta

    pawurb/hotpath-rs

    Sync changes from the hotpath, hotpath-macros and hotpath-drain crates to their meta counterparts (hotpath-meta, hotpath-macros-meta and hotpath-drain-meta).

    1.9k GitHub stars~1.2k tokensUpdated today
    DevOps & CloudAuto-check: notes
  • Optimize AlpaSim Slurm topology throughput using persistent local Prometheus/Grafana telemetry and run artifacts.

    1.3k GitHub stars~1.6k tokensUpdated 23 days ago
    DevOps & CloudAuto-check passed

More from m4r1k/Eneru

  • Visually verify Eneru browser-dashboard changes against a live daemon or audit an exact deployment.

    149 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Release Review

    m4r1k/Eneru

    Mandatory pre-release deep review for minor/major releases (X.Y.0 / X.0.0).

    149 GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Graft

What does Graft do?

This repo is indexed by graft/. An agent skill from m4r1k/Eneru. Graft is an agent skill from m4r1k/Eneru. This repo is indexed by graft/.

When should I use Graft?

Graft fits situations like: tasks that involve Monitoring and alerting.

How do I install Graft in Claude Code?

Run `npx skills add m4r1k/Eneru --skill graft -a claude-code`. Or copy the skill folder (.claude/skills/graft in m4r1k/Eneru) into .claude/skills/graft in your project. Claude Code loads it when a task matches its description.

How do I install Graft in Codex?

Run `npx skills add m4r1k/Eneru --skill graft -a codex`. Or copy the skill folder (.claude/skills/graft in m4r1k/Eneru) into .agents/skills/graft in your project. Codex loads it when a task matches its description.

Can I use Graft in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add m4r1k/Eneru --skill graft -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/graft, .gemini/skills/graft, .github/skills/graft and .opencode/skills/graft in your project.

What does Graft need to run?

SKILL.md names no scripts, command-line tools or credentials: Graft is instructions for the agent only.

Does Graft access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Graft safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Graft use?

Graft is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Graft use?

About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Graft?

Skills that share tags, products or a category with Graft: Aqua Metrics (oracle/accelerated-data-science, 125 stars), Alloy (grafana/skills, 282 stars), Beyla (grafana/skills, 282 stars) and Grafana (magnus919/agent-skills, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Graft?

m4r1k (a GitHub user) maintains it in m4r1k/Eneru, which has 149 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on October 8, 2026.

Source: m4r1k/Eneru on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.