Agent skill

Kg Traverse

by ruvnet in ruvnet/ruflo

Pathfinder traversal of the knowledge graph starting from a seed entity

MITAuto-check: notesKnowledge Management

Install Kg Traverse

skills CLI
$ npx skills add ruvnet/ruflo --skill kg-traverse -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ruvnet/ruflo kg-traverse --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ruvnet/ruflo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/ruflo-knowledge-graph/skills/kg-traverse .claude/skills/kg-traverse && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
kg-traverse
GitHub stars
74k
Token cost
~566 tokens
SKILL.md length
209 words
Files
1
Skills in repo
264
Repo updated
First seen
Licence
MIT

At a glance

Pathfinder traversal of the knowledge graph starting from a seed entity

  • Works in 7 steps: Seed -- call… → Expand -- call… → Score -- for each path, compute… → …
  • Tasks that involve Knowledge graphs
  • SKILL.md covers When to use, Steps and CLI alternative
  • Calls npx

What it does

Kg Traverse is an agent skill from ruvnet/ruflo. Pathfinder traversal of the knowledge graph starting from a seed entity

Its SKILL.md is about 570 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Knowledge graphs. It works with Model Context Protocol. The repository describes itself as: 🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory…. The licence is MIT.

When your agent uses it

  • Tasks that involve Knowledge graphs

Example prompts

  • “/kg-traverse”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall, mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search, mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize, Bash

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Seed -- call mcpplugin_ruflo-core_rufloagentdb_hierarchical-recall to look up the target entity by name
  2. Expand -- call mcpplugin_ruflo-core_rufloagentdb_causal-edge to find all edges connected to the seed entity, then recursively expand…
  3. Score -- for each path, compute relevance: cumulative_score = product(edge_weight * keyword_similarity(query, node)) using…
  4. Prune -- remove paths with cumulative score below 0.3
  5. Rank -- sort remaining paths by cumulative score descending
  6. Synthesize -- call mcpplugin_ruflo-core_rufloagentdb_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

What it can do on your machine

Read from SKILL.md and the folder at commit 58e0ae7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall
    • mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge
    • mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search
    • mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize
    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Kg Traverse loads about 566 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 209 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~566

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall, mcp__plugin_ruflo-core_ruflo__agentdb_cau

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ruvnet/ruflo at commit 58e0ae7, republished under its MIT licence (© ruvnet). 209 words, ~566 tokens.

Download SKILL.mdSave it as .claude/skills/kg-traverse/SKILL.md (or your agent's skills folder).
name
kg-traverse
description
Pathfinder traversal of the knowledge graph starting from a seed entity
allowed-tools
mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall, mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search, mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize, Bash
argument-hint
<entity> [--depth N]

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__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall to look up the target entity by name
  2. Expand -- call mcp__plugin_ruflo-core_ruflo__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__plugin_ruflo-core_ruflo__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__plugin_ruflo-core_ruflo__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__plugin_ruflo-core_ruflo__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

© ruvnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/ruflo-knowledge-graph/skills/kg-traverse of ruvnet/ruflo.

Open the folder on GitHubat commit 58e0ae7

Compare with similar skills

Kg Traverse next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Kg Traverse compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Kg Traverse this skillruvnet/ruflo74k—~566Automated safety check: NotesMIT
Gitnexus Guideaws-samples/sample-kolya-br-proxy10611 repos~867Automated safety check: PassMIT-0
Sage Wikixoai/sage-wiki622—~2.4kAutomated safety check: PassMIT
Remnic Entitiesjoshuaswarren/remnic217—~612Automated safety check: PassMIT
Knowledge Layerstudy8677/repobrain1.3k—~424Automated safety check: PassMIT
Memex Best Practicesiamtouchskyer/memex143—~2.9kAutomated safety check: PassMIT

Similar skills

  • Gitnexus Guide

    aws-samples/sample-kolya-br-proxy

    Official

    A skill your agent uses when the user asks about GitNexus itself — available tools, how to query the knowledge graph, MCP resources, graph schema, or workflow reference.

    106 GitHub starsUsed in 11 repos~867 tokens
    Knowledge ManagementAuto-check passed
  • Sage Wiki

    xoai/sage-wiki

    Reference skill for sage-wiki — local-first knowledge graph with MCP server, REST API, compiled wiki, and Obsidian-compatible output.

    622 GitHub stars~2.4k tokensUpdated 3 days ago
    Knowledge ManagementAuto-check passed
  • Remnic Entities

    joshuaswarren/remnic

    Browse entities in the Remnic knowledge graph and surface their facts and relationships.

    217 GitHub stars~612 tokensUpdated 2 days ago
    Knowledge ManagementAuto-check passed
  • Knowledge Layer

    study8677/repobrain

    High-level deployment wrapper over RepoBrain core with graph-first knowledge injection and all-file support.

    1.3k GitHub stars~424 tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Memex Best Practices

    iamtouchskyer/memex

    Zettelkasten best practices for building a high-quality knowledge graph.

    143 GitHub stars~2.9k tokensUpdated 1 mo ago
    Knowledge ManagementAuto-check passed
  • Ask

    agenticnotetaking/arscontexta

    Query the bundled research knowledge graph for methodology guidance.

    3.5k GitHub stars~5.7k tokensUpdated 7 mo ago
    Knowledge ManagementAuto-check passed

More from ruvnet/ruflo

All 264 skills in this repo
  • Stores, searches, and retrieves successful patterns with HNSW-indexed semantic search so agents can reuse past solutions instead of relearning them.

    74k GitHub starsUsed in 2 repos~830 tokens
    Auto-check passed
  • Runs claude-flow CLI security scans for input validation, path traversal, SQL injection, XSS, hardcoded secrets and known CVEs, and writes an audit report.

    74k GitHub starsUsed in 2 repos~823 tokens
    Auto-check passed
  • Applies the SPARC method (specification, pseudocode, architecture, refinement, completion) with 17 specialized modes and multi-agent orchestration, from research to deployment.

    74k GitHub starsUsed in 2 repos~829 tokens
    Auto-check passed
  • Coordinates a hierarchical swarm of specialized agents through the claude-flow CLI for work that spans several files or modules at once.

    74k GitHub starsUsed in 2 repos~779 tokens
    Auto-check passed
  • Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.

    74k GitHub starsUsed in 1 repo~975 tokens
    Auto-check passed
  • Agent Coordination

    ruvnet/ruflo

    Reference for spawning, listing, monitoring and stopping agents with claude-flow commands, with agent type families, routing codes and coordination tips.

    74k GitHub starsUsed in 2 repos~519 tokens
    Auto-check passed

Questions about Kg Traverse

What does Kg Traverse do?

Pathfinder traversal of the knowledge graph starting from a seed entity. Kg Traverse is an agent skill from ruvnet/ruflo.

When should I use Kg Traverse?

Kg Traverse fits situations like: tasks that involve Knowledge graphs.

How do I install Kg Traverse in Claude Code?

Run `npx skills add ruvnet/ruflo --skill kg-traverse -a claude-code`. Or copy the skill folder (plugins/ruflo-knowledge-graph/skills/kg-traverse in ruvnet/ruflo) into .claude/skills/kg-traverse in your project. Claude Code loads it when a task matches its description.

How do I install Kg Traverse in Codex?

Run `npx skills add ruvnet/ruflo --skill kg-traverse -a codex`. Or copy the skill folder (plugins/ruflo-knowledge-graph/skills/kg-traverse in ruvnet/ruflo) into .agents/skills/kg-traverse in your project. Codex loads it when a task matches its description.

Can I use Kg Traverse in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ruvnet/ruflo --skill kg-traverse -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/kg-traverse, .gemini/skills/kg-traverse, .github/skills/kg-traverse and .opencode/skills/kg-traverse in your project.

What does Kg Traverse need to run?

Going by SKILL.md and its folder, Kg Traverse needs the command-line tools its instructions call (npx). Our summary lists: Node.js. Its frontmatter pre-approves these tools: mcp__plugin_ruflo-core_ruflo__agentdb_hierarchical-recall, mcp__plugin_ruflo-core_ruflo__agentdb_causal-edge, mcp__plugin_ruflo-core_ruflo__agentdb_pattern-search, mcp__plugin_ruflo-core_ruflo__agentdb_context-synthesize, Bash.

Does Kg Traverse access the network?

SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Kg Traverse safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Kg Traverse use?

Kg Traverse is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Kg Traverse use?

About 566 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Kg Traverse?

Skills that share tags, products or a category with Kg Traverse: Gitnexus Guide (aws-samples/sample-kolya-br-proxy, 106 stars), Sage Wiki (xoai/sage-wiki, 622 stars), Remnic Entities (joshuaswarren/remnic, 217 stars) and Knowledge Layer (study8677/repobrain, 1.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Kg Traverse?

ruvnet (a GitHub user) maintains it in ruvnet/ruflo, which has 74,159 GitHub stars. The repository holds 264 skills in this directory. The repository was last updated on October 9, 2026.

Source: ruvnet/ruflo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.