/memtrace-graph
Map source-code architecture with graph algorithms — PageRank centrality, bridge symbols, Louvain communities, dependency paths, and execution flows over the AST graph. Use when the user asks about source-code architecture, important symbols, centrality, PageRank, bridge
$ npx -y skills add syncable-dev/memtrace-public --skill memtrace-graph --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-graph
Context preview
The summary Claude sees to decide when to auto-load this skill.
Map source-code architecture with graph algorithms — PageRank centrality, bridge symbols, Louvain communities, dependency paths, and execution flows over the AST graph. Use when the user asks about source-code architecture, important symbols, centrality, PageRank, bridge
SKILL.md
memtrace-graph.SKILL.mdname: memtrace-graph
description: "Map source-code architecture with graph algorithms — PageRank centrality, bridge symbols, Louvain communities, dependency paths, and execution flows over the AST graph. Use when the user asks about source-code architecture, important symbols, centrality, PageRank, bridge functions, communities, logical modules, chokepoints, service boundaries, or dependency path questions. Do not use Glob, find, tree, or directory browsing to infer architecture; Memtrace runs graph algorithms over the AST graph."
Overview
Graph algorithms over the knowledge graph — communities (Louvain), PageRank centrality, bridge symbols (articulation points), shortest paths, and execution flows.
Quick Reference
| Tool | Required params | Key optional | |------|-----------------|--------------| | `find_central_symbols` | `repo_id` | `limit` (def 25), `kinds[]` | | `find_bridge_symbols` | `repo_id` | `limit` | | `find_dependency_path` | `repo_id`, `source`, `target` | `max_depth` (def 20), `edge_type` | | `list_communities` | `repo_id` | `min_size`, `limit` | | `list_processes` | `repo_id` | `limit` | | `get_process_flow` | `repo_id`, `process` | `branch` |
Full parameter spec for every Memtrace tool: `references/mcp-parameters.md` (bundled at the memtrace-skills plugin root).
Steps
1. Understand the architecture
`list_communities` — natural module partitions.
2. Find critical infrastructure
`find_central_symbols` runs **PageRank** internally. There is **no `method` param** (no degree-centrality switch).
{ "repo_id": "memdb", "limit": 25, "kinds": ["Function", "Method"] }3. Find chokepoints
{ "repo_id": "memdb", "limit": 15 }4. Path between two symbols
{
"repo_id": "memdb",
"source": "handleLogin",
"target": "DatabaseClient.query",
"max_depth": 20
}Params are **`source`** and **`target`** (symbol names) — not `from`/`to`.
5. Execution flows
{ "repo_id": "memdb" }
{ "repo_id": "memdb", "process": "POST /login" }Output
`find_central_symbols` — each result carries the PageRank `score` plus degree counts:
[
{ "name": "DatabaseClient.query", "score": 0.0142, "in_degree": 38, "out_degree": 5 },
{ "name": "handleLogin", "score": 0.0097, "in_degree": 21, "out_degree": 9 }
]`find_dependency_path` returns the ordered symbol chain from `source` to `target`; `list_communities` returns module partitions with their member symbols.
Common Mistakes
| Mistake | Reality | |---------|---------| | `find_central_symbols(method: "degree")` | **No `method` param** — always PageRank | | `find_dependency_path(from=..., to=...)` | Use **`source`** and **`target`** |
Read more
name: memtrace-graph description: "Map source-code architecture with graph algorithms — PageRank centrality, bridge symbols, Louvain communities, dependency paths, and execution flows over the AST graph. Use when the user asks about source-code architecture, important symbols, centrality, PageRank, bridge functions, communities, logical modules, chokepoints, service boundaries, or dependency path questions. Do not use Glob, find, tree, or directory browsing to infer architecture; Memtrace runs graph algorithms over the AST graph."
Overview
Graph algorithms over the knowledge graph — communities (Louvain), PageRank centrality, bridge symbols (articulation points), shortest paths, and execution flows.
Quick Reference
| Tool | Required params | Key optional | |------|-----------------|--------------| | `find_central_symbols` | `repo_id` | `limit` (def 25), `kinds[]` | | `find_bridge_symbols` | `repo_id` | `limit` | | `find_dependency_path` | `repo_id`, `source`, `target` | `max_depth` (def 20), `edge_type` | | `list_communities` | `repo_id` | `min_size`, `limit` | | `list_processes` | `repo_id` | `limit` | | `get_process_flow` | `repo_id`, `process` | `branch` |
Full parameter spec for every Memtrace tool: `references/mcp-parameters.md` (bundled at the memtrace-skills plugin root).
Steps
1. Understand the architecture
`list_communities` — natural module partitions.
2. Find critical infrastructure
`find_central_symbols` runs **PageRank** internally. There is **no `method` param** (no degree-centrality switch).
{ "repo_id": "memdb", "limit": 25, "kinds": ["Function", "Method"] }3. Find chokepoints
{ "repo_id": "memdb", "limit": 15 }4. Path between two symbols
{
"repo_id": "memdb",
"source": "handleLogin",
"target": "DatabaseClient.query",
"max_depth": 20
}Params are **`source`** and **`target`** (symbol names) — not `from`/`to`.
5. Execution flows
{ "repo_id": "memdb" }
{ "repo_id": "memdb", "process": "POST /login" }Output
`find_central_symbols` — each result carries the PageRank `score` plus degree counts:
[
{ "name": "DatabaseClient.query", "score": 0.0142, "in_degree": 38, "out_degree": 5 },
{ "name": "handleLogin", "score": 0.0097, "in_degree": 21, "out_degree": 9 }
]`find_dependency_path` returns the ordered symbol chain from `source` to `target`; `list_communities` returns module partitions with their member symbols.
Common Mistakes
| Mistake | Reality | |---------|---------| | `find_central_symbols(method: "degree")` | **No `method` param** — always PageRank | | `find_dependency_path(from=..., to=...)` | Use **`source`** and **`target`** |
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

