kg-traverse
Installation
SKILL.md
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
- Seed -- call
mcp__claude-flow__agentdb_hierarchical-recallto look up the target entity by name - Expand -- call
mcp__claude-flow__agentdb_causal-edgeto find all edges connected to the seed entity, then recursively expand outward to the specified depth (default: 3) - Score -- for each path, compute relevance:
cumulative_score = product(edge_weight * semantic_similarity(query, node))usingmcp__claude-flow__agentdb_semantic-routefor similarity - Prune -- remove paths with cumulative score below 0.3
- Rank -- sort remaining paths by cumulative score descending
- Synthesize -- call
mcp__claude-flow__agentdb_context-synthesizeto combine the top paths into a coherent summary - Report -- display the top 10 paths with: path (entity chain), relation types, cumulative score, and synthesized context
CLI alternative
npx @claude-flow/cli@latest memory search --query "relations for ENTITY_NAME" --namespace knowledge-graph
Related skills
More from ruvnet/ruflo
agent-swarm
Agent skill for swarm - invoke with $agent-swarm
301agent-workflow
Agent skill for workflow - invoke with $agent-workflow
276agent-arch-system-design
Agent skill for arch-system-design - invoke with $agent-arch-system-design
276workflow-automation
>
265security-audit
>
264agent-architecture
Agent skill for architecture - invoke with $agent-architecture
264