/graft:recallfrom graft
Orchestrates graft search modes (query, retrieve, explore) based on question shape, escalating from exact match to exploration when results are weak. Presents findings ranked by confidence with evidence.
Ships in graft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
graft exposes three search modes and they have different sweet spots:
| Mode | Best when |
|---|---|
query | The user is asking for the answer to a specific problem. Cache-style gating: STRONG / WEAK / MISS. |
retrieve | The user is exploring; they want top-K hybrid (lexical + semantic) ranked results. |
explore | The user names a topic + keywords; they want to walk the graph from there. |
This skill orchestrates them. Do not ask the user which mode — pick based on the question.
The user invokes you with a free-form question or topic.
| Pattern | Strategy |
|---|---|
| "how do I X" / specific problem statement | query → escalate to retrieve if MISS. |
| "what do we know about X" / open-ended topic | retrieve --top-k 10. |
| "X with Y" / topic with keyword anchors | explore "X" --keyword Y. |
| "find related to " | explore from that node's keywords (read via get). |
| "recent stuff about X" | retrieve and re-rank by node created_at if shown. |
If the user provides a --keyword style flag, respect it.
┌─── STRONG → done; cite + use ───┐
graft query <Q> ──────────────┤ │
├─── WEAK → graft get <id> │── present
│ then continue │
└─── MISS → graft retrieve <Q>│
if 0 useful results: │
graft explore <Q>│
--keyword <inferred>│
querygraft query "<concise restatement of the user's question>"
Read result.hit:
title, body), state explicitly "this is from a previous session", and stop. Do NOT re-derive the answer.graft get <id_hex>, present it labeled as "WEAK match — review before using". Then proceed to Step 2 to find better candidates.Check result.state too (also on every retrieve / explore result): "stale" means the note was marked doubtful. Present it as "STALE note — verify before using" even on a STRONG hit, and do not stop at it until it is checked against the current code or sources.
retrievegraft retrieve "<question>" --top-k 10
Read each result's title. Drop those with low score. If 1-3 are clearly relevant: present them ranked. If 0 useful: go to Step 3.
explorePick 1-3 keywords from the question. Use the same vocabulary the graph likely uses (run graft stats once if you've never seen this graph; the keyword distribution is implicit there). Then:
graft explore "<question>" --keyword <kw1> --keyword <kw2> --depth 3 --beam 4
If still nothing: tell the user explicitly "the graph has nothing on this", don't fabricate. Suggest they consider /memoryze-ing the eventual solution.
If the user says "search across profiles" or you suspect the answer might be in a different profile:
for p in $(graft profile list | jq -r '.profiles[]'); do
echo "=== $p ==="
GRAFT_PROFILE=$p graft query "<question>"
done
Default behavior: stay in the current profile. Cross-profile is opt-in.
Present in descending confidence:
STRONG (cache hit, profile=work):
→ <title>
<body trimmed if very long>
[id: <short_hex>]
WEAK (1 candidate, score 0.78):
~ <title> ← review before reusing
[id: <short_hex>]
Top-K (retrieve fallback, profile=work):
• <title> (score 0.62)
• <title> (score 0.55)
Avoid wall-of-JSON output. The CLI prints JSON; your job is to summarize it for the human.
/memoryze of the new variant./memory-audit — the graph may be accumulating duplicates.query returned MISS but retrieve had a great hit, that means the saved title doesn't match how the user phrases this. Suggest the user re-save with a better title, or do it yourself with their permission.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-graph, search-orchestration, knowledge-retrieval, graft
npx claudepluginhub aendrix03/graft --plugin graft6 skills in this plugin
/graftPersistent graph memory shared across conversations and agents. Graft is a prompter, not a cache: it hands you notes that may be close to the problem in front of you, and a close note is already a win - it gives you a starting point and reminds you what was decided before. Search it before non-trivial work, and write to it whenever the answer you just produced was not already there. Companion skills: `/recall` (search), `/memoryze` (save), `/learn` (bulk ingest; `/learn docs` for a repository's documentation; `/learn bootstrap` for the unattended cold start of a project), `/memory-audit` (maintenance pass + health check). After `/graft-init` the agent runs the whole lifecycle itself (bootstrap, recall, repair, writeback, bounded maintenance) from one cheap `graft status` call, without asking the user. The daemon auto-starts on the first command./graft-initOne-shot wiring of graft into this agent. Installs the graft CLI first if it is missing (after asking), then asks a single question - global or project - then writes the graft usage rule into the right instruction file (CLAUDE.md or AGENTS.md) and, on Claude Code, a rule file under .claude/rules/graft.md that the instruction file imports. Triggered by `/graft-init`, "configura graft", "set up graft here", "enable graft globally". Idempotent: re-running replaces the previous block in place, it never duplicates or strips anything else./learnBatch knowledge ingestion from external sources (a folder, a codebase, a docs tree). Plans well-shaped nodes with reconciled keywords, shows the plan for approval, then executes idempotently. Triggered by `/learn`, "ingest this folder into memory", "porta questo codice nella memoria", "memorize this codebase". Docs mode (`/learn docs [path]`): all of a repository's documentation and nothing else, incremental on re-runs; "ingest the docs of this repo", "impara la documentazione del repo". Bootstrap mode (`/learn bootstrap [path]`): unattended, progressive cold start of a whole project's memory (topic map, bounded runs by importance, task area first, resumed via `graft project status`); "bootstrap graft for this project", "this project was never bootstrapped", "inizializza la memoria del progetto". Differs from `/memoryze` (1-5 nodes from conversation): `/learn` produces 10-200 nodes from external corpora./memory-auditMaintenance pass + health check of the graft graph. Runs the `graft maintain` loop: checks what is due, applies the mechanical cleanup, then adjudicates every maintenance candidate (near duplicates, supersessions, contradictions, memories whose source file changed or disappeared, keyword variants, stale low-value notes) against the current code and docs and resolves it with one audited, reversible action, without asking the user in the normal path. Ends with a short report (what was resolved, hit rate, reuse). Triggered by `/memory-audit`, "is the graph healthy", "audit memory", "clean up the memory", "check graft quality", or when `graft maintain status` recommends work./memoryzeDistill the current conversation (or a specified excerpt) into N high-quality graft nodes and save them. Triggered by `/memoryze`, "save this to memory", "ricorda questo", "memorize this", or whenever the user explicitly wants the agent to commit knowledge to the persistent graph. The user can hint at granularity ("split into 3 atomic nodes", "one comprehensive node"), focus ("save the WHY, not the diff"), and target profile. Auto-classifies keywords. Prefer this over a raw `graft insert` whenever you're saving more than a one-liner.Other plugins' skills for the same job