# Wiki Graph Query

> SOP wrapping vault_query_graph — traverse knowledge graph from a node to explore its neighborhood and context.

- Skill: `yogsoth-ai/wiki-graph-query` (Agent Skill)
- Install (CLI): `npx skillmds@latest add yogsoth-ai/wiki-graph-query`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yogsoth-ai/wiki-graph-query/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: yogsoth-ai (https://skillmd.com/u/yogsoth-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yogsoth-ai/wiki-graph-query

---


# Wiki Graph Query

Explore the neighborhood of a node in the knowledge graph. Used for understanding context before updates, finding connection opportunities, and identifying orphans.

## HARD-GATE

<HARD-GATE>
Node path must reference an existing file in the vault.
Verify the file exists before calling vault_query_graph.
</HARD-GATE>

## Tool

`vault_query_graph`

## Parameters

| Param | Required | Description |
|-------|----------|-------------|
| node | yes | Starting node path (e.g., "concepts/attention.md") |
| direction | yes | Traversal direction: "in", "out", or "both" |
| edge_type | no | Filter by edge type |
| depth | no | Traversal depth (default 1, max 3) |

## Protocol

1. Confirm node file exists in vault
2. Call `vault_query_graph` with node, direction, and optional filters
3. Analyze subgraph: identify clusters, orphan branches, missing connections
4. Return subgraph data to calling tactic

## Yield

Returns: `{ nodes_found: number, edges_found: number, subgraph: object }`

