/memtrace-relationships
Map source-code relationships between symbols. Use when the user asks about callers, callees, references, imports, exports, type usages, class hierarchy, inheritance, implementations, overrides, or dependencies between symbols. Do not use Grep, Glob, rg, find, or manual text
$ npx -y skills add syncable-dev/memtrace-public --skill memtrace-relationships --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/memtrace-relationships
Context preview
The summary Claude sees to decide when to auto-load this skill.
Map source-code relationships between symbols. Use when the user asks about callers, callees, references, imports, exports, type usages, class hierarchy, inheritance, implementations, overrides, or dependencies between symbols. Do not use Grep, Glob, rg, find, or manual text
SKILL.md
memtrace-relationships.SKILL.mdname: memtrace-relationships
description: "Map source-code relationships between symbols. Use when the user asks about callers, callees, references, imports, exports, type usages, class hierarchy, inheritance, implementations, overrides, or dependencies between symbols. Do not use Grep, Glob, rg, find, or manual text search for references; Memtrace traverses typed AST graph edges."
Overview
Traverse the code knowledge graph to map relationships between symbols — callers, callees, class hierarchies, imports, exports, and type usages. Essential for understanding a symbol's neighbourhood before modifying it.
Quick Reference
| query_type | What it finds | |------------|---------------| | `find_callers` | What calls this function/method? | | `find_callees` | What does this function call? | | `class_hierarchy` | Parent classes, interfaces, mixins | | `overrides` | Which child classes override this method? | | `imports` | What modules does this file import? | | `exporters` | Which files import this module? | | `type_usages` | Where is this type/interface referenced? |
> **Parameter types:** Numbers (`depth`, etc.) must be JSON numbers — not strings.
Graph tool parameters
`get_symbol_context` (360° view — prefer this first)
Required: `repo_id`, `symbol`
{ "repo_id": "memdb", "symbol": "validateToken", "file_path": "src/auth.ts" }Returns: callers, callees, type references, community, processes, cross-repo API callers.
`analyze_relationships` (targeted traversal)
Required: `repo_id`, `target`, `query_type`
{
"repo_id": "memdb",
"target": "validateToken",
"query_type": "find_callers",
"depth": 3,
"file_path": "src/auth.ts"
}| Param | Default | Notes | |---|---|---| | `depth` | **3** (max 10) | Not 2 | | `file_path` | — | Disambiguates overloaded names |
Full parameter spec for every Memtrace tool: `references/mcp-parameters.md` (bundled at the memtrace-skills plugin root).
Steps
1. Get the symbol name
Use `find_symbol` or `find_code`. Save **`name`**, **`scope_path`**, and **`file_path`** from results — pass `symbol`/`target` plus optional `file_path` to graph tools.
2. Choose your approach
**Quick 360° view** → `get_symbol_context` (one call).
**Targeted traversal** → `analyze_relationships` when you need a specific `query_type` at custom `depth`.
3. Interpret results
Use `get_symbol_context` fields (callers, callees, community, processes) for blast-radius and architecture context. For degree-style metrics on a specific symbol, follow up with `get_impact`.
4. Follow up
- `get_impact(repo_id, target=...)` — quantify blast radius
- `get_timeline(repo_id, scope_path, file_path)` — full version history
- `get_evolution(repo_id, from=..., target=...)` — window-scoped activity
Output
`get_symbol_context` returns the symbol's 360° neighbourhood:
{
"symbol": "validateToken",
"callers": ["..."],
"callees": ["..."],
"type_references": ["..."],
"community": "...",
"processes": ["..."],
"api_callers_cross_repo": ["..."]
}`analyze_relationships` returns the symbols/edges matching the requested `query_type` (no degree metrics — see Common Mistakes).
Common Mistakes
| Mistake | Reality | |---------|---------| | Passing `symbol_id` | Use **`target`** (`analyze_relationships`) or **`symbol`** (`get_symbol_context`) | | Assuming default `depth: 2` | Default is **3** | | Expecting `in_degree` on `analyze_relationships` results | Use `get_symbol_context` or `get_impact` for centrality/risk context |
Read more
name: memtrace-relationships description: "Map source-code relationships between symbols. Use when the user asks about callers, callees, references, imports, exports, type usages, class hierarchy, inheritance, implementations, overrides, or dependencies between symbols. Do not use Grep, Glob, rg, find, or manual text search for references; Memtrace traverses typed AST graph edges."
Overview
Traverse the code knowledge graph to map relationships between symbols — callers, callees, class hierarchies, imports, exports, and type usages. Essential for understanding a symbol's neighbourhood before modifying it.
Quick Reference
| query_type | What it finds | |------------|---------------| | `find_callers` | What calls this function/method? | | `find_callees` | What does this function call? | | `class_hierarchy` | Parent classes, interfaces, mixins | | `overrides` | Which child classes override this method? | | `imports` | What modules does this file import? | | `exporters` | Which files import this module? | | `type_usages` | Where is this type/interface referenced? |
> **Parameter types:** Numbers (`depth`, etc.) must be JSON numbers — not strings.
Graph tool parameters
`get_symbol_context` (360° view — prefer this first)
Required: `repo_id`, `symbol`
{ "repo_id": "memdb", "symbol": "validateToken", "file_path": "src/auth.ts" }Returns: callers, callees, type references, community, processes, cross-repo API callers.
`analyze_relationships` (targeted traversal)
Required: `repo_id`, `target`, `query_type`
{
"repo_id": "memdb",
"target": "validateToken",
"query_type": "find_callers",
"depth": 3,
"file_path": "src/auth.ts"
}| Param | Default | Notes | |---|---|---| | `depth` | **3** (max 10) | Not 2 | | `file_path` | — | Disambiguates overloaded names |
Full parameter spec for every Memtrace tool: `references/mcp-parameters.md` (bundled at the memtrace-skills plugin root).
Steps
1. Get the symbol name
Use `find_symbol` or `find_code`. Save **`name`**, **`scope_path`**, and **`file_path`** from results — pass `symbol`/`target` plus optional `file_path` to graph tools.
2. Choose your approach
**Quick 360° view** → `get_symbol_context` (one call).
**Targeted traversal** → `analyze_relationships` when you need a specific `query_type` at custom `depth`.
3. Interpret results
Use `get_symbol_context` fields (callers, callees, community, processes) for blast-radius and architecture context. For degree-style metrics on a specific symbol, follow up with `get_impact`.
4. Follow up
- `get_impact(repo_id, target=...)` — quantify blast radius
- `get_timeline(repo_id, scope_path, file_path)` — full version history
- `get_evolution(repo_id, from=..., target=...)` — window-scoped activity
Output
`get_symbol_context` returns the symbol's 360° neighbourhood:
{
"symbol": "validateToken",
"callers": ["..."],
"callees": ["..."],
"type_references": ["..."],
"community": "...",
"processes": ["..."],
"api_callers_cross_repo": ["..."]
}`analyze_relationships` returns the symbols/edges matching the requested `query_type` (no degree metrics — see Common Mistakes).
Common Mistakes
| Mistake | Reality | |---------|---------| | Passing `symbol_id` | Use **`target`** (`analyze_relationships`) or **`symbol`** (`get_symbol_context`) | | Assuming default `depth: 2` | Default is **3** | | Expecting `in_degree` on `analyze_relationships` results | Use `get_symbol_context` or `get_impact` for centrality/risk context |
Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · Hermes · VS Code · Windsurf.
Repo: syncable-dev/memtrace-public
Other skills on memtrace-public.
- /memtrace-api-topology
Map API endpoints, outbound HTTP calls, and cross-repo service topology in indexed source code. Use when the user asks about API endpoints, HTTP routes, fetch/client calls, REST surface, service dependencies, cross-repo dependencies, or API topology. Do not use Grep, Glob, rg,
Open skill - /memtrace-change-impact-analysis
Compute what a planned source-code change will break — blast radius, affected processes, cross-repo callers, temporal stability, and Cortex decision-memory constraints — and produce a risk-rated change plan. Use for multi-symbol or multi-part edits, refactors, API changes,
Open skill - /memtrace-cochange
Find files that historically co-change with a target symbol or file, ranked by co-occurrence across git episodes. Use when the user asks about historical coupling, co-change, what changes with this, hidden dependencies, or what else needs to move for source code. Do not use git
Open skill - /memtrace-code-review
Review GitHub pull requests with Memtrace's local graph-backed review engine. Use when the user asks to review a GitHub pull request, run Memtrace code review, post Memtrace review comments, create a PR with a review step, or publish local graph-backed review findings to GitHub.
Open skill - /memtrace-codebase-exploration
Map an indexed source-code repo into a structured overview — scale, communities, central symbols, execution flows, API surface, recent activity. Use when the user wants to explore, understand, onboard to, map, or get an overview of an indexed source-code repo, architecture,
Open skill - /memtrace-continuous-memory
Keep the Memtrace index fresh while editing by watching a repo for live, incremental re-indexing. Use when the user asks to keep Memtrace fresh while editing, watch a repo, enable live or incremental indexing, set up always-on memory (meaning Memtrace index watching, not generic
Open skill

