exploring-knowledge-graph

exploring-knowledge-graph is a skill for Claude Code from rjmurillo/ai-agents. It costs 47 tokens per session (1,248 once invoked), scanned A, original, MIT.

A method for exploring a knowledge graph, a network of connected facts, entities, and memories. It follows links between related items to build broader context around a topic.

In plain words
What is it for?
Use it to investigate a topic, answer what is known about it, map related knowledge, or gather context before planning complex work.
Why use it?
A simple search may miss useful connections stored elsewhere in the knowledge base. Following related entities and memories can reveal how concepts, decisions, and projects connect.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Part of the project-toolkit plugin — 95 skills, 26 commands, 33 agents, 4 hooks shipped together

Good fit Use it to investigate a topic, answer what is known about it, map related knowledge, or gather context before planning complex work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjmurillo/ai-agents/exploring-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 rjmurillo/ai-agents --skill exploring-knowledge-graph
Clone the repo
git clone --depth 1 https://github.com/rjmurillo/ai-agents

Made for: Claude Code.

Or install project-toolkit, the plugin that ships this one along with the rest of its 95 skills, 26 commands, 33 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 exploring-knowledge-graph

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjmurillo/ai-agents/exploring-knowledge-graph.svg)](https://agentmods.dev/skills/rjmurillo/ai-agents/exploring-knowledge-graph)
Your own site
<a href="https://agentmods.dev/skills/rjmurillo/ai-agents/exploring-knowledge-graph"><img src="https://agentmods.dev/badge/skills/rjmurillo/ai-agents/exploring-knowledge-graph.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,248 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.00047 $0.01248
Opus 5 $0.00023 $0.00624
Sonnet 5 $0.00009 $0.00250
Haiku 4.5 $0.00005 $0.00125

Measured 4d ago against content hash 6180becfe29b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

exploring-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 4d 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.

.claude/skills/exploring-knowledge-graph/SKILL.md · 178 lines

How it starts

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

Exploring the Knowledge Graph

Forgetful stores knowledge as an interconnected graph: memories link to other memories, entities link to memories, and entities relate to each other. Deep exploration reveals context that simple queries miss.

Triggers

Trigger Phrase Operation
what do you know about X Full knowledge graph traversal
how do I explore the knowledge graph Graph exploration workflow
how are these concepts connected Entity relationship traversal
give me comprehensive context on X Deep multi-phase exploration
map out related knowledge for X Entity discovery and memory linking

When to Explore

Explore the knowledge graph when:

  • Starting complex work that spans multiple topics
  • User asks "what do you know about X"
  • Planning requires understanding existing decisions/patterns
  • Investigating how concepts connect across projects
  • Need comprehensive context, not just top search results

Exploration Phases

Track visited IDs to prevent cycles. Execute phases sequentially.

Phase 1: Semantic Entry Point

execute_forgetful_tool("query_memory", {
  "query": "<topic>",
  "query_context": "Exploring knowledge graph for comprehensive context",
  "k": 5,
  "include_links": true,
  "max_links_per_primary": 5
})

Collect: primary_memories + linked_memories (1-hop connections).

Phase 2: Expand Memory Details

For key memories, get full details:

execute_forgetful_tool("get_memory", {"memory_id": <id>})

Extract: document_ids, code_artifact_ids, project_ids, additional linked_memory_ids.

Phase 3: Entity Discovery

Find entities in discovered projects:

execute_forgetful_tool("list_entities", {
  "project_ids": [<discovered project ids>]
})

Phase 4: Entity Relationships

For relevant entities, map relationship graph:

execute_forgetful_tool("get_entity_relationships", {
  "entity_id": <id>,
  "direction": "both"
})

Read the full file on GitHub · 178 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 178 lines · 47 tokens per session scan A 6180becfe29b

Subscribe to this mod's changes

exploring-knowledge-graph is a skill published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 1,248 once invoked, about $0.0002 per session on Opus 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-09-03.