OpenParable
Skip to content
← Back to skills

Graph Retrieval

Research
graph-retrieval

Graph Retrieval is an Agent Skill for research published in the study8677/repobrain repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/study8677/repobrain/blob/HEAD/engine/repobrain_engine/skills/graph-retrieval/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/graph-retrieval, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

{
  "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.