Skip to content
Back to skills

Obsidian Graph Traversal

ASecurity

Semantic link traversal for Obsidian Vaults. Builds an in-memory graph index from wikilinks and provides instant forward-link, backlink, and multi-degree connection queries. Use when exploring note relationships or finding orphaned notes.

  • 7 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentspythongobashrefactoringperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned October 3, 2026

npx -y skills add richfrem/agent-plugins-skills --skill obsidian-graph-traversal --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Obsidian Graph Traversal?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Obsidian Graph Traversal
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/richfrem-obsidian-graph-traversal-agent-plugins-skills/badge)](https://www.skillsdirectory.com/skills/richfrem-obsidian-graph-traversal-agent-plugins-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: obsidian-graph-traversal
plugin: obsidian-wiki-engine
description: "Semantic link traversal for Obsidian Vaults. Builds an in-memory graph index from wikilinks and provides instant forward-link, backlink, and multi-degree connection queries. Use when exploring note relationships or finding orphaned notes."
allowed-tools: Bash, Read
---

# Obsidian Graph Traversal (obsidian-graph-traversal)

Constructs an in-memory graph index from vault wikilinks to query forward links, backlinks, and multi-degree connection paths.

## Contents
- [Critical Constraints](#critical-constraints)
- [Dependencies](#dependencies)
- [Quick start](#quick-start)
- [Workflow](#workflow)
- [Verification](#verification)
- [References](#references)

## Critical Constraints
- **Read-Only Traversal**: Graph query and index construction operations must never modify vault note files.
- **Timestamp Cache Invalidation**: The `.graph-index.json` cache must automatically invalidate and re-index notes whose `mtime` has changed.
- **Embed Distinction**: Disambiguate semantic links (`[[Note]]`) from embed transclusions (`![[Note]]`) to prevent false graph edges.
- **Query Performance**: Traversal operations must return within a sub-2-second budget across vaults with 1,000+ notes.

## Dependencies

Requires `obsidian-parser` and Python 3.8+ (standard library only for traversal operations).

## Quick start

```bash
# Build the graph index for a vault
python3 plugins/obsidian-wiki-engine/scripts/graph_ops.py build --vault-root <vault-path>

# Query backlinks for a specific note
python3 plugins/obsidian-wiki-engine/scripts/graph_ops.py backlinks --note "Note Name"

# Find orphaned notes without incoming or outgoing links
python3 plugins/obsidian-wiki-engine/scripts/graph_ops.py orphans --vault-root <vault-path>
```

## Workflow

1. **Phase 1: Index Building**: Parse vault notes via `obsidian-parser`, extract wikilinks, and cache adjacency lists in `.graph-index.json`.
2. **Phase 2: Topology Querying**: Execute forward-link, backlink, or multi-degree connection traversals from the in-memory graph.
3. **Phase 3: Orphan & Cluster Detection**: Identify isolated notes lacking connections or discover tightly coupled concept clusters.
4. **Phase 4: Impact Evaluation**: Assess upstream and downstream dependencies before executing multi-file refactoring operations.

## Verification

```bash
# Verify graph CLI commands
python3 plugins/obsidian-wiki-engine/scripts/graph_ops.py build --help

# Audit skill compliance
python3 plugins/agent-scaffolders/scripts/audit_skill.py plugins/obsidian-wiki-engine/skills/obsidian-graph-traversal --mode source
```

## References
- [acceptance-criteria.md](references/acceptance-criteria.md) - Graph traversal invariants and performance targets.
- [fallback-tree.md](references/fallback-tree.md) - Recovery procedures for missing indices or cyclic link paths.

Files in this skill

  • SKILL.md2.4 KB
  • acceptance-criteria.md690 B
  • assets/resources/architecture-background.md55 B
  • assets/resources/kepano-analysis-summary.md55 B
  • assets/resources/safety-learnings.md48 B
  • evals/evals.json706 B
  • evals/results.tsv301 B
  • fallback-tree.md877 B
  • references/acceptance-criteria.md25 B
  • references/fallback-tree.md19 B
  • requirements.txt22 B
  • scripts/graph_ops.py29 B
  • scripts/parser.py42 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…