agentleFS
cdeustcdeust/Cortex/skills/cortex-navigate-knowledge/SKILL.md

cortex-navigate-knowledge

Skill73 starsChanged 4 months agoMITView on GitHub

Navigate the knowledge graph — trace entity relationships, explore causal chains, drill into memory clusters, and traverse co-access paths. Use when the user asks 'how are these related', 'what connects X to Y', 'show me the knowledge graph', 'trace the relationship', 'what caused X', 'drill down into', 'explore connections', or when you need to understand the web of relationships between concepts, entities, and memories.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow entity relationships through the knowledge graph:

    line 21
  2. Distinctive:

    Start broad, go narrow: Use hierarchical recall first, then drill down and navigate from specific memories

    line 99

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Navigate Knowledge — Graph Exploration and Causal Chains

Keywords

knowledge graph, relationships, connections, causal chain, how are these related, what connects, drill down, explore, navigate, entity graph, trace, cause and effect, related to, linked to, co-access, cluster

Overview

Cortex maintains a knowledge graph of entities (people, technologies, concepts, files) and their relationships extracted from memories. This skill lets you traverse that graph — follow causal chains, explore co-access patterns, drill into fractal memory clusters, and understand how different pieces of knowledge connect.

Use this skill when: You need to understand relationships between concepts, trace cause-and-effect chains, or explore a topic area systematically.

Workflow

Step 1: Trace Causal Chains

Follow entity relationships through the knowledge graph:

cortex:get_causal_chain({
  "entity": "PostgreSQL",
  "direction": "both",
  "max_depth": 3
})

Returns a chain of entities connected by typed relationships (causes, uses, depends_on, related_to, etc.). Direction can be "forward" (effects), "backward" (causes), or "both".

Step 2: Navigate Co-Access Paths

Find memories frequently accessed together using Successor Representation:

cortex:navigate_memory({
  "memory_id": <starting_memory_id>,
  "depth": 2,
  "max_nodes": 20
})

Returns a graph of memories connected by co-access frequency — revealing implicit relationships that aren't in the explicit knowledge graph.

Step 3: Hierarchical Exploration

Browse memories through fractal clusters (L0 = broad, L1 = mid, L2 = specific):

cortex:recall_hierarchical({
  "query": "authentication system",
  "levels": 3
})

Then drill into any interesting cluster:

cortex:drill_down({
  "cluster_id": "<cluster from hierarchical recall>",
  "level": "L1"
})

Step 4: Detect Structural Gaps

Find disconnected or under-connected areas:

cortex:detect_gaps({
  "domain": "<optional>"
})

Returns isolated entities, sparse domains, and temporal drift — areas where your knowledge graph has holes.

Use Cases

Understanding a new codebase:

  1. Recall hierarchical to get broad topic clusters
  2. Drill down into the most relevant cluster
  3. Navigate co-access paths from key memories
  4. Trace causal chains for core entities

Debugging with context:

  1. Recall memories about the error/module
  2. Get causal chain for the affected entity
  3. Navigate to co-accessed memories (past fixes, related patterns)

Architecture review:

  1. Get causal chains for key components
  2. Detect gaps in architectural documentation
  3. Assess coverage for each module

Tips

  • Start broad, go narrow: Use hierarchical recall first, then drill down and navigate from specific memories
  • Causal chains reveal architecture: The knowledge graph captures how components depend on each other — useful for impact analysis
  • Co-access reveals workflow: Memories accessed together often represent a workflow or related concern, even if they're not explicitly linked

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.