Skip to content
Back to skills

Kg Traverse

ASecurity

Pathfinder traversal of the knowledge graph starting from a seed entity

  • 73,733 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
data-aibashnode

Works with

  • cli
  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add ruvnet/ruflo --skill kg-traverse --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kg Traverse?

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

Security grade badge for Kg Traverse
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ruvnet-kg-traverse/badge)](https://www.skillsdirectory.com/skills/ruvnet-kg-traverse)

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: kg-traverse
description: Pathfinder traversal of the knowledge graph starting from a seed entity
argument-hint: "<entity> [--depth N]"
allowed-tools: mcp__claude-flow__agentdb_hierarchical-recall mcp__claude-flow__agentdb_causal-edge mcp__claude-flow__agentdb_pattern-search mcp__claude-flow__agentdb_context-synthesize Bash
---

# KG Traverse

Perform pathfinder graph traversal starting from a seed entity. Expands outward through causal edges, scores paths by relevance, and prunes low-similarity branches.

## When to use

When you need to explore the knowledge graph starting from a specific entity -- finding what depends on it, what it depends on, or discovering indirect relationships. Useful for impact analysis, dependency chains, and understanding code structure.

## Steps

1. **Seed** -- call `mcp__claude-flow__agentdb_hierarchical-recall` to look up the target entity by name
2. **Expand** -- call `mcp__claude-flow__agentdb_causal-edge` to find all edges connected to the seed entity, then recursively expand outward to the specified depth (default: 3)
3. **Score** -- for each path, compute relevance: `cumulative_score = product(edge_weight * keyword_similarity(query, node))` using `mcp__claude-flow__agentdb_pattern-search` (the `semanticRouter` controller is `enabled: false` in current AgentDB builds; pattern-search is the available substitute and works fine for entity-name + relation-type keyword matches — see ruvnet/ruflo#2049). For higher-fidelity semantic similarity, callers can fall back to `mcp__claude-flow__embeddings_generate` + manual cosine, but that's not required for step 3 to function.
4. **Prune** -- remove paths with cumulative score below 0.3
5. **Rank** -- sort remaining paths by cumulative score descending
6. **Synthesize** -- call `mcp__claude-flow__agentdb_context-synthesize` to combine the top paths into a coherent summary
7. **Report** -- display the top 10 paths with: path (entity chain), relation types, cumulative score, and synthesized context

## CLI alternative

```bash
npx @claude-flow/cli@latest memory search --query "relations for ENTITY_NAME" --namespace knowledge-graph
```

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.