Agent skill

Graph Retrieval

by study8677 in study8677/repobrain

Exposes graph-based retrieval as a tool capability via querygraph.

MITAuto-check passed

Install Graph Retrieval

skills CLI
$ npx skills add study8677/repobrain --skill graph-retrieval -a claude-code

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

GitHub CLI
$ gh skill install study8677/repobrain graph-retrieval --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/study8677/repobrain.git skills-src && mkdir -p .claude/skills && cp -r skills-src/engine/repobrain_engine/skills/graph-retrieval .claude/skills/graph-retrieval && 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
graph-retrieval
GitHub stars
1.3k
Token cost
~255 tokens
SKILL.md length
62 words
Files
3
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Exposes graph-based retrieval as a tool capability via querygraph.

  • SKILL.md covers Purpose, Tool, Behavior and Output Contract, plus 1 more section
  • Runs Python scripts from its folder

What it does

Graph Retrieval is an agent skill from study8677/repobrain. Exposes graph-based retrieval as a tool capability via querygraph. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

Its SKILL.md is about 260 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `__init__.py` and `tools.py`).

It works with Model Context Protocol. The repository describes itself as: 🧠 RepoBrain (formerly Antigravity) — Give your repo a brain. ChatGPT for your codebase: works in Claude Code, Cursor, Codex, Windsurf & more. The licence is MIT.

Example prompts

  • “Use the graph-retrieval skill to expose graph-based retrieval as a tool capability via querygraph”
  • “/graph-retrieval”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ed8a5d0. 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

    Ships script files (Python), which the agent can run.

    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

Graph Retrieval loads about 255 tokens when it runs. Until then it costs about 58 tokens; SKILL.md has 62 words of instructions outside code blocks.

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

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 study8677/repobrain at commit ed8a5d0, republished under its MIT licence (© study8677). 62 words, ~255 tokens.

Download SKILL.mdSave it as .claude/skills/graph-retrieval/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
graph-retrieval
description
Exposes graph-based retrieval as a tool capability via `query_graph`. Reads normalized graph store files, builds a query-relevant subgraph, and returns LLM-friendly semantic triples with replayable evidence metadata.

Graph Retrieval Skill

Purpose

Expose graph-based retrieval as a tool capability without breaking the existing RepoBrain execution chain.

Tool

  • query_graph(query, max_hops=2, workspace='.')

Behavior

  • Reads normalized graph store files under .repobrain/graph/.
  • Builds a query-relevant subgraph.
  • Returns LLM-friendly semantic triples plus replayable evidence metadata.

Output Contract

json
{
  "summary": "...",
  "triples": [["subject", "predicate", "object"]],
  "evidence": [{"retrieval_id": "...", "tool_name": "..."}],
  "nodes": [...],
  "edges": [...]
}

Design Notes

  • Keeps tool-driven and replayable architecture.
  • Does not bypass pipeline.
  • Intended for structure/dependency questions and context enrichment.

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

Files

SKILL.md and 2 other files in engine/repobrain_engine/skills/graph-retrieval of study8677/repobrain.

  • SKILL.md
  • __init__.py
  • tools.py

Open the folder on GitHubat commit ed8a5d0

Compare with similar skills

Graph Retrieval 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.

Graph Retrieval compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Graph Retrieval this skillstudy8677/repobrain1.3k—~255Automated safety check: PassMIT
MCP Server Builderanthropics/skills180k64 repos~2.3kAutomated safety check: PassApache-2.0
MCP Server BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
MCP Integration for Pluginsanthropics/claude-plugins-official38k11 repos~3.1kAutomated safety check: PassApache-2.0
Figma use_figma Plugin API Ruleswarpdotdev/warp65k4 repos~4.4kAutomated safety check: PassAGPL-3.0
Stitch to Remotion Walkthrough Videosgoogle-labs-code/stitch-skills8.4k6 repos~3.2kAutomated safety check: NotesApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 64 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • MCP Integration for Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.

    38k GitHub starsUsed in 11 repos~3.1k tokens
    Agent WorkflowsAuto-check passed
  • Required groundwork before any use_figma call: the rules and reference files for running JavaScript in a Figma file through the Plugin API without common failures.

    65k GitHub starsUsed in 4 repos~4.4k tokens
    Frontend & DesignAuto-check passed
  • Stitch to Remotion Walkthrough Videos

    google-labs-code/stitch-skills

    Official

    Builds walkthrough videos from Stitch design projects using Remotion, with transitions, zoom effects and text overlays on each screen.

    8.4k GitHub starsUsed in 6 repos~3.2k tokens
    Media & CreativeAuto-check: notes
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed

More from study8677/repobrain

  • Agent Repo Init

    study8677/repobrain

    One-click initialization of a multi-agent repository from the RepoBrain template.

    1.3k GitHub starsUsed in 1 repo~404 tokens
    Auto-check: notes
  • Agent Repo Init

    study8677/repobrain

    Bootstraps a new multi-agent repository from the RepoBrain template via initagentrepo.

    1.3k GitHub stars~288 tokensUpdated 29 days ago
    Auto-check: notes
  • Knowledge Layer

    study8677/repobrain

    High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support.

    1.3k GitHub stars~324 tokensUpdated 29 days ago
    Auto-check passed
  • Research

    study8677/repobrain

    Performs deep research on a topic via deepresearch. An agent skill from study8677/repobrain.

    1.3k GitHub stars~128 tokensUpdated 29 days ago
    Auto-check passed

Questions about Graph Retrieval

What does Graph Retrieval do?

Exposes graph-based retrieval as a tool capability via querygraph. Graph Retrieval is an agent skill from study8677/repobrain. Exposes graph-based retrieval as a tool capability via querygraph.

How do I install Graph Retrieval in Claude Code?

Run `npx skills add study8677/repobrain --skill graph-retrieval -a claude-code`. Or copy the skill folder (engine/repobrain_engine/skills/graph-retrieval in study8677/repobrain) into .claude/skills/graph-retrieval in your project. Claude Code loads it when a task matches its description.

How do I install Graph Retrieval in Codex?

Run `npx skills add study8677/repobrain --skill graph-retrieval -a codex`. Or copy the skill folder (engine/repobrain_engine/skills/graph-retrieval in study8677/repobrain) into .agents/skills/graph-retrieval in your project. Codex loads it when a task matches its description.

Can I use Graph Retrieval 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 study8677/repobrain --skill graph-retrieval -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/graph-retrieval, .gemini/skills/graph-retrieval, .github/skills/graph-retrieval and .opencode/skills/graph-retrieval in your project.

What does Graph Retrieval need to run?

Going by SKILL.md and its folder, Graph Retrieval needs Python for the scripts in its folder. Our summary lists: Python 3.

Does Graph Retrieval 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 Graph Retrieval 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 Graph Retrieval use?

Graph Retrieval 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 Graph Retrieval use?

About 255 tokens (SKILL.md is roughly 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 Graph Retrieval?

Skills that share tags, products or a category with Graph Retrieval: MCP Server Builder (anthropics/skills, 180k stars), MCP Server Builder (shareAI-lab/learn-claude-code, 78k stars), MCP Integration for Plugins (anthropics/claude-plugins-official, 38k stars) and Figma use_figma Plugin API Rules (warpdotdev/warp, 65k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Graph Retrieval?

study8677 (a GitHub user) maintains it in study8677/repobrain, which has 1,325 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 9, 2026.

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