plugins/ruflo-knowledge-graph/skills/kg-traverse/SKILL.md
Perform pathfinder graph traversal starting from a seed entity. Expands outward through causal edges, scores paths by relevance, and prunes low-similarity branches.
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.
mcp__claude-flow__agentdb_hierarchical-recall to look up the target entity by namemcp__claude-flow__agentdb_causal-edge to find all edges connected to the seed entity, then recursively expand outward to the specified depth (default: 3)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.mcp__claude-flow__agentdb_context-synthesize to combine the top paths into a coherent summarynpx @claude-flow/cli@latest memory search --query "relations for ENTITY_NAME" --namespace knowledge-graph