knowledge-graph

knowledge-graph is a skill for Claude Code from ariaxhan/kernel-claude. It costs 52 tokens per session (1,155 once invoked), scanned A, original, MIT.

A tool for building and maintaining a map of how code files, functions, and dependencies connect.

In plain words
What is it for?
Finding callers, tracing connections, locating highly connected code, and estimating the affected area of a change.
Why use it?
It reduces the amount of repository context an agent must read when navigating a large or tangled codebase. It helps with navigation, not with design or performance reasoning.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the kernel plugin — 27 skills, 10 agents, 4 hooks shipped together

Good fit Finding callers, tracing connections, locating highly connected code, and estimating the affected area of a change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaxhan/kernel-claude/knowledge-graph
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ariaxhan/kernel-claude --skill knowledge-graph
Clone the repo
git clone --depth 1 https://github.com/ariaxhan/kernel-claude

Made for: Claude Code.

Or install kernel, the plugin that ships this one along with the rest of its 27 skills, 10 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for knowledge-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaxhan/kernel-claude/knowledge-graph/github.svg)](https://agentmods.dev/skills/ariaxhan/kernel-claude/knowledge-graph)
Your own site
<a href="https://agentmods.dev/skills/ariaxhan/kernel-claude/knowledge-graph"><img src="https://agentmods.dev/badge/skills/ariaxhan/kernel-claude/knowledge-graph/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for knowledge-graph

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaxhan/kernel-claude/knowledge-graph"><img src="https://agentmods.dev/badge/skills/ariaxhan/kernel-claude/knowledge-graph.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,155 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01155
Opus 5.5 $0.00021 $0.00462
Sonnet 5.5 $0.00010 $0.00231
Haiku 4.5 $0.00005 $0.00115

Measured 2mo ago against content hash 498099244179, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

knowledge-graph scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/knowledge-graph/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The saving is CONDITIONAL on repo size × tangle, not a fixed multiplier. Measured on real repos: ~5.7x fewer tokens/query on a mid-size service, ~73x on a large interconnected one, ~13% on a tiny library. The graph query cost is ~constant; naive full-corpus cost scales with size — so reduction = corpus ÷ constant. Do the arithmetic on YOUR repo, don't quote a headline.

Hard boundary: the graph helps NAVIGATION, not REASONING. "Design a cache", "why is this slow" get zero lift. It gathers context efficiently; it does not think for the model.

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · -9 tokens per session 498099244179
  2. 3mo ago First seen · 89 lines · 61 tokens per session scan A c483f60f5409

Subscribe to this mod's changes

knowledge-graph is a skill published in the GitHub repository ariaxhan/kernel-claude (16 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 1,155 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

knowledge-graph compared with skills from other repositories

knowledge-graph next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
knowledge-graphariaxhan/kernel-claudeSkill16yesterdayMITA52Claude Code
graphifymycelium-hq/ai-brain-starterSkill61yesterdayMITA111Claude Code
deconstructmycelium-hq/ai-brain-starterSkill61yesterdayMITA140Claude Code
cartographer-kb-ingest-planBeppeTemp/cartographerSkill692d agoApache-2.0A88Claude Code, Codex
langchainsordi-ai/skill-everythingSkill216mo agoMITA24Claude Code, Codex
AgentDB Learning Pluginsjazz-max/ruflo-hubSkill43mo agononeA56Claude Code
AgentDB Performance Optimizationjazz-max/ruflo-hubSkill43mo agononeA53Claude Code