Agent skill

Knowledge Graph

by vibeeval in vibeeval/vibecosystem

Knowledge graph integration for token-efficient codebase understanding.

MITAuto-check passedKnowledge Management

Install Knowledge Graph

skills CLI
$ npx skills add vibeeval/vibecosystem --skill knowledge-graph -a claude-code

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

GitHub CLI
$ gh skill install vibeeval/vibecosystem knowledge-graph --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/vibeeval/vibecosystem.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/knowledge-graph .claude/skills/knowledge-graph && 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
knowledge-graph
GitHub stars
531
Token cost
~744 tokens
SKILL.md length
223 words
Files
1
Skills in repo
144
Repo updated
First seen
Licence
MIT

At a glance

Knowledge graph integration for token-efficient codebase understanding.

  • Works in 6 steps: Index a Repository → Check Index Status → Search Code → …
  • Tasks that involve Knowledge graphs
  • SKILL.md covers Overview, Setup, Core Operations and When to Use, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Knowledge Graph is an agent skill from vibeeval/vibecosystem. Knowledge graph integration for token-efficient codebase understanding. Uses codebase-memory MCP for AST indexing, dependency graphs, and smart context selection. 6-71x token savings vs raw file reading.

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Knowledge graphs. It works with Model Context Protocol. The repository describes itself as: AI software team for Claude Code - 138 agents, 295 skills, 73 hooks. Self-learning, multi-agent swarm, autonomous skill evolution. The licence is MIT.

When your agent uses it

  • Tasks that involve Knowledge graphs

Example prompts

  • “/knowledge-graph”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Index a Repository
  2. Check Index Status
  3. Search Code
  4. Get Architecture Overview
  5. Trace Call Paths
  6. Query Dependency Graph

What it can do on your machine

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    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

Knowledge Graph loads about 744 tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 223 words of instructions outside code blocks.

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

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 vibeeval/vibecosystem at commit 3b763b1, republished under its MIT licence (© vibeeval). 223 words, ~744 tokens.

Download SKILL.mdSave it as .claude/skills/knowledge-graph/SKILL.md (or your agent's skills folder).
name
knowledge-graph
description
Knowledge graph integration for token-efficient codebase understanding. Uses codebase-memory MCP for AST indexing, dependency graphs, and smart context selection. 6-71x token savings vs raw file reading.

Knowledge Graph Integration

Overview

Transform any codebase into a queryable knowledge graph using codebase-memory MCP server. Instead of reading entire files, query the graph for exactly the context you need.

Token savings: 6-71x reduction compared to raw file reading.

Setup

Prerequisites
  • codebase-memory MCP server installed (~/bin/codebase-memory-mcp or via npm)
  • MCP config in ~/.mcp.json:
json
{
  "mcpServers": {
    "codebase-memory": {
      "command": "/path/to/codebase-memory-mcp",
      "args": []
    }
  }
}

Core Operations

1. Index a Repository
mcp__codebase-memory__index_repository
  project_name: "my-project"
  repo_path: "/path/to/repo"

First index takes 30-120s depending on repo size. Subsequent updates are incremental.

2. Check Index Status
mcp__codebase-memory__index_status
  project_name: "my-project"
3. Search Code
mcp__codebase-memory__search_code
  project_name: "my-project"
  query: "authentication middleware"

Returns relevant code snippets without reading entire files.

4. Get Architecture Overview
mcp__codebase-memory__get_architecture
  project_name: "my-project"

Returns high-level architecture: modules, dependencies, entry points.

5. Trace Call Paths
mcp__codebase-memory__trace_call_path
  project_name: "my-project"
  from_symbol: "handleLogin"
  to_symbol: "validateToken"
6. Query Dependency Graph
mcp__codebase-memory__query_graph
  project_name: "my-project"
  query: "what depends on auth module?"

When to Use

ScenarioWithout GraphWith Graph
Code reviewRead all changed files + importsQuery impact of changes
Bug investigationRead 10-20 files manuallyTrace call path to bug
RefactoringRead entire moduleQuery all dependents
Architecture reviewRead project top-downGet architecture overview

Integration with Agents

code-reviewer

Before reviewing, query the graph for the blast radius of changes:

search_code("functions that call {changed_function}")
architect

Get architecture overview before proposing changes:

get_architecture("project")
sleuth

Trace call paths to understand bug propagation:

trace_call_path("buggy_function", "entry_point")

Token Savings Examples

OperationRaw ReadingGraph QuerySavings
Find all callers of function~50K tokens~700 tokens71x
Architecture overview~200K tokens~3K tokens67x
Impact analysis for PR~30K tokens~2K tokens15x
Find related tests~20K tokens~1.5K tokens13x

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

Files

Just SKILL.md in skills/knowledge-graph of vibeeval/vibecosystem.

Open the folder on GitHubat commit 3b763b1

Compare with similar skills

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

Knowledge Graph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Knowledge Graph this skillvibeeval/vibecosystem531—~744Automated safety check: PassMIT
Gitnexus Guideaws-samples/sample-kolya-br-proxy10610 repos~867Automated safety check: PassMIT-0
Sage Wikixoai/sage-wiki620—~2.4kAutomated safety check: PassMIT
Remnic Entitiesjoshuaswarren/remnic215—~612Automated safety check: PassMIT
Knowledge Layerstudy8677/repobrain1.3k—~324Automated safety check: PassMIT
Memex Best Practicesiamtouchskyer/memex142—~2.9kAutomated safety check: PassMIT

Similar skills

  • Gitnexus Guide

    aws-samples/sample-kolya-br-proxy

    Official

    A skill your agent uses when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference.

    106 GitHub starsUsed in 10 repos~867 tokens
    Knowledge ManagementAuto-check passed
  • Sage Wiki

    xoai/sage-wiki

    Reference skill for sage-wiki — local-first knowledge graph with MCP server, REST API, compiled wiki, and Obsidian-compatible output.

    620 GitHub stars~2.4k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Remnic Entities

    joshuaswarren/remnic

    Browse entities in the Remnic knowledge graph and surface their facts and relationships.

    215 GitHub stars~612 tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • 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 28 days ago
    Knowledge ManagementAuto-check passed
  • Memex Best Practices

    iamtouchskyer/memex

    Zettelkasten best practices for building a high-quality knowledge graph.

    142 GitHub stars~2.9k tokensUpdated 29 days ago
    Knowledge ManagementAuto-check passed
  • Ask

    agenticnotetaking/arscontexta

    Query the bundled research knowledge graph for methodology guidance.

    3.5k GitHub starsUsed in 1 repo~5.7k tokens
    Knowledge ManagementAuto-check passed

More from vibeeval/vibecosystem

All 144 skills in this repo
  • Agent Benchmark

    vibeeval/vibecosystem

    Framework for measuring and tracking agent response quality over time.

    531 GitHub stars~2.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Differential Review

    vibeeval/vibecosystem

    Security-focused differential code review with blast radius analysis, risk-adaptive depth (DEEP/FOCUSED/SURGICAL), git history correlation, and structured finding format.

    531 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • Factcheck Guard

    vibeeval/vibecosystem

    A skill your agent uses when making any factual claim about the codebase — existence, absence, or behavior.

    531 GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed
  • Fp Check

    vibeeval/vibecosystem

    Systematic false positive verification for security findings.

    531 GitHub stars~1.6k tokensUpdated 2 mo ago
    Auto-check passed
  • N8n Workflows

    vibeeval/vibecosystem

    n8n otomasyon workflow'lari. An agent skill from vibeeval/vibecosystem.

    531 GitHub stars~3.3k tokensUpdated 2 mo ago
    Auto-check passed
  • Notepad System

    vibeeval/vibecosystem

    A skill your agent uses when context compression is imminent, when resuming a session, or when preserving critical decisions across long tasks.

    531 GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Knowledge Graph

What does Knowledge Graph do?

Knowledge graph integration for token-efficient codebase understanding. Knowledge Graph is an agent skill from vibeeval/vibecosystem. Knowledge graph integration for token-efficient codebase understanding.

When should I use Knowledge Graph?

Knowledge Graph fits situations like: tasks that involve Knowledge graphs.

How do I install Knowledge Graph in Claude Code?

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

How do I install Knowledge Graph in Codex?

Run `npx skills add vibeeval/vibecosystem --skill knowledge-graph -a codex`. Or copy the skill folder (skills/knowledge-graph in vibeeval/vibecosystem) into .agents/skills/knowledge-graph in your project. Codex loads it when a task matches its description.

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

What does Knowledge Graph need to run?

SKILL.md names no scripts, command-line tools or credentials: Knowledge Graph is instructions for the agent only.

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

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

About 744 tokens (SKILL.md is roughly 3k 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 Knowledge Graph?

Skills that share tags, products or a category with Knowledge Graph: Gitnexus Guide (aws-samples/sample-kolya-br-proxy, 106 stars), Sage Wiki (xoai/sage-wiki, 620 stars), Remnic Entities (joshuaswarren/remnic, 215 stars) and Knowledge Layer (study8677/repobrain, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Knowledge Graph?

vibeeval (a GitHub user) maintains it in vibeeval/vibecosystem, which has 531 GitHub stars. The repository holds 144 skills in this directory. The repository was last updated on August 8, 2026.

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