Tooluck logoTooluck
SKILL.md

hivemind-graph

Agent skill fromactiveloopai/hivemind

Query the local AST-derived code graph (functions, classes, calls, imports) for structural codebase questions — what calls X, what does Y import, where is Z defined, blast radius of a change. The graph rebuilds automatically after each agent turn; use hivemind_graph_search and hivemind_graph_neighborhood tools (no manual build step).

How to install hivemind-graph

install hivemind-graph
# install the hivemind pack with the skills CLI
npx skills add activeloopai/hivemind

# or add only this skill to Claude Code: copy the folder

harnesses/openclaw/skills/hivemind-graph/

# into

~/.claude/skills/hivemind-graph/ (all projects)

.claude/skills/hivemind-graph/ (one project)

harnesses/openclaw/skills/hivemind-graph/SKILL.md

Apache-2.0Full file
1# Hivemind Code Graph (OpenClaw)
2
3A deterministic, AST-derived map of the current repository — every function,
4class, method, interface, type, enum, const, and module, plus the edges between
5them (`calls`, `imports`, `extends`, `implements`, `method_of`).
6
7The graph **builds and refreshes automatically** after each turn (gated by rate
8limit + git diff). You never run a build command — just call the graph tools.
9
10Set `plugins.entries.hivemind.config.tuning.HIVEMIND_GRAPH_CWD` in
11`~/.openclaw/openclaw.json` to the git root of the project you want indexed
12when the gateway's working directory is not the repo (then restart the gateway).
13
14Use the graph as a fast **INDEX** to locate the few files/symbols that matter,
15then use the host's read/exec tools on the real source. It is not a substitute
16for reading source files.
17
18## When to use this skill
19
20Activate when the user asks a *structural / relational* question about the code:
21
22- "What calls `pushSnapshot`?" / "Who uses this function?"
23- "What does `deeplake-pull.ts` import?" / "What depends on X?"
24- "Where is `GraphSnapshot` defined?" / "Find the function that handles Y."
25- "What are the main subsystems / the architecture here?"
26- "If I change this signature, what's affected?"
27
28## Tools
29
30- `hivemind_graph_search({ pattern })` — search symbols by substring (or
31 multi-token AND with `+`, e.g. `auth+handler`). Returns matches with 1-hop
32 neighbors (callers, callees, imports). **Start here.**
33…

Excerpt shown under the repository's Apache-2.0 license.

More skills in hivemind

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates