obsidian-graph-traversal

obsidian-graph-traversal is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 53 tokens per session (596 once invoked), scanned A, original, MIT.

A tool for exploring links between notes in an Obsidian vault, showing outgoing links, backlinks, and multi-step connections.

In plain words
What is it for?
Use it to build a link index, find what a note connects to, inspect backlinks, explore deeper relationships, and locate orphaned notes.
Why use it?
It makes relationships between notes easier to query and helps find notes that are disconnected from the rest of the vault.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the obsidian-wiki-engine plugin — 8 skills, 1 command, 2 agents shipped together

Good fit Use it to build a link index, find what a note connects to, inspect backlinks, explore deeper relationships, and locate orphaned notes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/obsidian-graph-traversal
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 richfrem/agent-plugins-skills --skill obsidian-graph-traversal
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install obsidian-wiki-engine, the plugin that ships this one along with the rest of its 8 skills, 1 command, 2 agents.

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 obsidian-graph-traversal

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal/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 obsidian-graph-traversal

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/obsidian-graph-traversal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.
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.00053 $0.00596
Opus 5 $0.00026 $0.00298
Sonnet 5 $0.00011 $0.00119
Haiku 4.5 $0.00005 $0.00060

Measured 9d ago against content hash d3f934f7d934, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

obsidian-graph-traversal 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 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/graph_ops.py, scripts/parser.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/obsidian-wiki-engine/skills/obsidian-graph-traversal/SKILL.md · 77 lines

How it starts

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

Dependencies

This skill requires Python 3.8+ and standard library only. No external packages needed.

To install this skill's dependencies:

pip-compile ./requirements.in
pip install -r ./requirements.txt

See ./requirements.txt for the dependency lockfile (currently empty — standard library only).


Obsidian Graph Traversal

Status: Active Author: Richard Fremmerlid Domain: Obsidian Integration Depends On: obsidian-markdown-mastery (WP05, obsidian-parser)

Purpose

This skill transforms static vault notes into a queryable semantic graph. It answers questions like "What connects to Note X?" and "What are the 2nd-degree connections of Concept A?" — instantly, without rescanning the vault.

Performance Target: < 2 seconds for deep queries across 1000+ notes.

Available Commands

Build the Graph Index

python ./graph_ops.py build --vault-root <path>

Get Forward Links (outbound)

python ./graph_ops.py forward --note "Note Name"

Get Backlinks (inbound)

python ./graph_ops.py backlinks --note "Note Name"

Get N-Degree Connections

python ./graph_ops.py connections --note "Note Name" --depth 2

Find Orphaned Notes

python ./graph_ops.py orphans --vault-root <path>

Architecture

In-Memory Graph Index

  • On build, every .md file in the vault is parsed using the obsidian-parser
  • Wikilinks are extracted; embeds (![[...]]) are filtered out
  • A bidirectional adjacency map is built: {source: [targets], ...} and {target: [sources], ...}
  • The index is cached as .graph-index.json at the vault root
  • Invalidation uses file mtime — if a file changed since last build, only that file is re-indexed

The Primary Agent as Librarian

The graph index enables the agent to:

  • Detect blind spots: Orphaned notes indicate areas where agents act without historical context
  • Resolve conflicts: If two agents update the same note, the graph shows the impact radius
  • Enforce schema: Frontmatter metadata (status, trust_score) tracked across linked notes

Read the full file on GitHub · 77 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. 9d ago First seen · 77 lines · 53 tokens per session scan A d3f934f7d934

Subscribe to this mod's changes

obsidian-graph-traversal is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed today), licensed MIT. It adds 53 tokens to every session and 596 once invoked, about $0.0003 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.