mcpbeat Sign in

Hivemind Graph Agent Skill

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).

735 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
1529
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/activeloopai/hivemind --skill hivemind-graph

The instruction itself

6 sections, as written by the author

Hivemind Code Graph (OpenClaw)

A deterministic, AST-derived map of the current repository — every function,

class, method, interface, type, enum, const, and module, plus the edges between

them (calls, imports, extends, implements, method_of).

The graph builds and refreshes automatically after each turn (gated by rate

limit + git diff). You never run a build command — just call the graph tools.

Set plugins.entries.hivemind.config.tuning.HIVEMIND_GRAPH_CWD in

~/.openclaw/openclaw.json to the git root of the project you want indexed

when the gateway's working directory is not the repo (then restart the gateway).

Use the graph as a fast INDEX to locate the few files/symbols that matter,

then use the host's read/exec tools on the real source. It is not a substitute

for reading source files.

When to use this skill

Activate when the user asks a *structural / relational* question about the code:

  • "What calls pushSnapshot?" / "Who uses this function?"
  • "What does deeplake-pull.ts import?" / "What depends on X?"
  • "Where is GraphSnapshot defined?" / "Find the function that handles Y."
  • "What are the main subsystems / the architecture here?"
  • "If I change this signature, what's affected?"

Tools

  • hivemind_graph_search({ pattern }) — search symbols by substring (or

multi-token AND with +, e.g. auth+handler). Returns matches with 1-hop

neighbors (callers, callees, imports). Start here.

  • hivemind_graph_neighborhood({ file }) — every symbol in a repo-relative

file path plus its cross-file neighbors.

Workflow

  • Broad structural question? hivemind_graph_search({ pattern: "<symbol>" }).
  • Know the file? hivemind_graph_neighborhood({ file: "src/hooks/capture.ts" }).
  • Need the actual code? Open the source_file:line from the tool output with

the host read tool — don't answer from the graph alone.

When NOT to use this skill

  • Reading the body of a symbol you already located → use the host read tool.
  • Code that isn't committed/built yet — the graph can lag uncommitted edits.
  • Languages outside TypeScript, JavaScript, and Python — fall back to grep.

Anti-patterns

  • Zero incoming callers does NOT mean dead code. Instance-method dispatch and

dynamic calls are not fully resolved.

  • The graph can be stale. Prefer live source for files edited in this session.
  • pattern is lexical, not semantic — try multiple keywords if the first misses.

Other skills for the same job

different authors, same section of the catalogue
MCP Builder
by anthropics
vendor ×13

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

30k tokens scripts
Changelog Generator
by frostant
×9

Automatically creates user-facing changelogs from git commits by analyzing commit history, categorizing changes, and transforming technical commits into clear, customer-friendly release notes. Turns hours of manual changelog writing into minutes of automated generation.

774 tokens
Finishing A Development Branch
by ZhanlinCui
×7

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup

1k tokens
MCP Builder
by JayZeeDesign
×7

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

37k tokens scripts
Vercel React Native Skills
by vercel-labs
vendor ×6

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

39k tokens
Vercel React Best Practices
by ratacat
×5

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

34k tokens
Next Best Practices
by vercel-labs
vendor ×4

Next.js best practices - file conventions, RSC boundaries, data patterns, async APIs, metadata, error handling, route handlers, image/font optimization, bundling

20k tokens
Using Git Worktrees
by ZhanlinCui
×4

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification

1k tokens

How to use it

Copy the folder

Take activeloopai/hivemind-openclaw-hivemind-graph from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.