graph
Direct knowledge graph operations — traverse neighbors, find shortest paths, and analyze shared concepts across papers.
Skill by UynajGI
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/uynajgi-graph
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/graph
What's inside
- Skill name
graph- Description
- Direct knowledge graph operations — traverse neighbors, find shortest paths, and analyze shared concepts across papers. Use this skill whenever the user asks about "graph neighbors", "connections between concepts", "find a path from X to Y", "how are these papers connected?", "are these concepts related?", "traverse the knowledge graph", "show me the subgraph around...", "related papers by concept", or wants to explore concept-to-concept relationships directly without BM25 text search. Also use when the user asks "what does this concept connect to?", "is there a path between A and B?", "what do these papers have in common?", or wants an LLM-generated natural language description of a subgraph. Trigger proactively when the user discusses concept relationships or paper-to-paper concept overlap.
- License
- MIT
- Instructions
- 113 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Knowledge Graph
Query the knowledge graph directly — traverse from a node, find shortest paths between concepts,
analyze shared concepts across papers, and generate LLM-powered subgraph descriptions. All operations
work on the directed graph of concepts and relations extracted from the library.
## Prerequisites
Knowledge graph must be built (`kg-build` skill). For `query` (TransE complex queries), embeddings must be trained (`drbrain graph embed`). For `traverse-from`, the PageIndex tree must exist (`drbrain ingest`).
## Operations
### neighbors — Graph traversal
Traverse from a starting node (concept label or paper ID):
```bash
drbrain graph neighbors "Attention Mechanism" --hops 2
drbrain graph neighbors "Backpropagation" --direction both --json
drbrain graph neighbors "Transformer" --relation solves,extends
```
Options: `--hops` / `-n` (depth), `--relation` / `-R` (filter by type), `--direction` / `-D`
(forward/backward/both), `--json`, `--workspace` / `-w`.
Valid relation types: `addresses`, `leaves_open`, `points_to`, `proposes`, `extends`, `replaces`,
`solves`, `supports`, `challenges`, `limits`, `constrains`, `affiliated_with`.
### path — Shortest path
Find the shortest path between two nodes (BFS on undirected copy, recovers edge direction):
```bash
drbrain graph path "Transformer" "BERT"
drbrain graph path "Attention" "Gradient Descent" --max-length 4
```
### related — Cross-paper concept analysis
Analyze shared concepts across two or more papers:
```bash
drbrain graph related p3f8a2 p7b1c4 # label intersection
drbrain graph related p3f8a2 p7b1c4 --mode graph # 1-hop traversal intersection
drbrain graph related p3f8a2 p7b1c4 p9d2e5 --mode edges # shared edge patterns
```
### describe — LLM subgraph summary
Generate a natural language description of a subgraph centered on a node:
```bash
drbrain graph describe "Attention Mechanism" --depth 2
```
### query — Complex embedding queries
Execute TransE embedding-based complex queries with ∧ (intersect), ∨ (union), ¬ (negate)
operators. Requires trained embeddings (`drbrain graph embed`):
```bash
drbrain graph query '{"type": "project", "entity": "Attention", "relation": "addresses"}'
drbrain graph query '{"type": "intersect", "queries": [...]}' --top 20
drbrain graph query '{"type": "union", "queries": [...]}' --json
drbrain graph query '{"type": "negate", "query": {...}}' -k 5
```
### traverse-from — Hybrid tree+graph traversal
Start from a document section, find concepts anchored there, then traverse the graph:
```bash
drbrain graph traverse-from "Methods" -w my-workspace
drbrain graph traverse-from "Results" --depth 3 --direction forward --json
```
## Examples
**Explore around a concept:**
```bash
drbrain graph neighbors "Backpropagation" --hops 2 --direction both --json | jq '.'
```
**Check if two papers share concepts:**
```bash
drbrain graph related p3f8a2 p7b1c4
# Zero shared concepts suggests disjoint research domains
```
**Find the connection path between two concepts:**
```bash
drbrain graph path "Self-Attention" "Cross-Entropy Loss"
# No path means these concepts live in separate subgraphs
```
## CLI Reference
| Command | What it does |
|---------|--------------|
| `drbrain graph neighbors <node>` | 1-hop traversal from a node |
| `drbrain graph neighbors <node> -n 3` | Multi-hop traversal |
| `drbrain graph neighbors <node> -R solves,extends` | Filtered by relation type |
| `drbrain graph path <src> <dst>` | Shortest path between two nodes |
| `drbrain graph related <id...>` | Shared concept analysis across papers |
| `drbrain graph related <id...> -m graph` | Graph-traversal shared concepts |
| `drbrain graph related <id...> -m edges` | Shared edge patterns |
| `drbrain graph describe <node>` | LLM subgraph description |
| `drbrain graph query '<json>'` | TransE complex query (∧∨¬) |
| `drbrain graph query '<json>' -k 20` | More results |
| `drbrain graph traverse-from <section>` | Hybrid tree+graph traversal |
| `drbrain graph traverse-from <s> -d 3 -D forward` | Directed deep traversal |From UynajGI/drbrain, MIT.
More from UynajGI/drbrain
- 0.529score
neat-freak
UynajGI
End-of-session knowledge cleanup with OCD-level rigor — reconciles project docs (CLAUDE.md, README.md, docs/) and agent memory against the code so nothing rots.
SkillBFreshness: BClaude Code +9 - 0.524score
kg-build
UynajGI
Build the knowledge graph from ingested papers — 5-stage LLM extraction, TransE graph embeddings, and rule-based closure inference.
SkillBFreshness: BClaude Code +9 - 0.524score
audit
UynajGI
Scan the entire library for data quality issues across 15 severity-graded rules.
SkillBFreshness: BClaude Code +9 - 0.524score
fsearch
UynajGI
Search local evidence and external sources (arXiv) in one command, with ingested annotation.
SkillBFreshness: BClaude Code +9 - 0.524score
index
UynajGI
Prepare, inspect and verify the searchable index.
SkillBFreshness: BClaude Code +9 - 0.524score
ingest-link
UynajGI
Ingest web URLs and online PDFs by extracting rendered content via an external qt-web-extractor service.
SkillBFreshness: BClaude Code +9 - 0.524score
kg-reason
UynajGI
Reason over the knowledge graph using LLM agents — natural language Q&A and tool-calling iterative reasoning with bidirectional LLM↔KG validation.
SkillBFreshness: BClaude Code +9 - 0.474score
backup
UynajGI
Create and manage backups of DrBrain data — local tar.gz archives and rsync remote sync.
SkillCFreshness: CClaude Code +9 - 0.474score
citation-tracking
UynajGI
Track and analyze citation relationships between papers.
SkillCFreshness: CClaude Code +9 - 0.474score
document
UynajGI
Inspect Office documents (DOCX, PPTX, XLSX) and output structured text summaries.
SkillCFreshness: CClaude Code +9 - 0.474score
enrich
UynajGI
Enrich paper metadata by backfilling missing fields from CrossRef and detecting records that need cleanup.
SkillCFreshness: CClaude Code +9 - 0.474score
explore
UynajGI
Manage explore silos — lightweight literature discovery collections separate from the main library.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 16, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/UynajGI/drbrain
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from UynajGI
- 0.529score
neat-freak
UynajGI
End-of-session knowledge cleanup with OCD-level rigor — reconciles project docs (CLAUDE.md, README.md, docs/) and agent memory against the code so nothing rots.
SkillBFreshness: BClaude Code +9 - 0.524score
index
UynajGI
Prepare, inspect and verify the searchable index.
SkillBFreshness: BClaude Code +9 - 0.524score
kg-build
UynajGI
Build the knowledge graph from ingested papers — 5-stage LLM extraction, TransE graph embeddings, and rule-based closure inference.
SkillBFreshness: BClaude Code +9 - 0.524score
fsearch
UynajGI
Search local evidence and external sources (arXiv) in one command, with ingested annotation.
SkillBFreshness: BClaude Code +9 - 0.524score
audit
UynajGI
Scan the entire library for data quality issues across 15 severity-graded rules.
SkillBFreshness: BClaude Code +9 - 0.524score
ingest-link
UynajGI
Ingest web URLs and online PDFs by extracting rendered content via an external qt-web-extractor service.
SkillBFreshness: BClaude Code +9
Cite this page
graph skill. Agent Mart. https://agentmart.dev/skills/uynajgi-graph (last updated 2026-10-24)