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,…
Investigate source-code bugs, incidents, regressions, production issues, and failures to root cause with Memtrace symbol search, impact, call graph, and temporal history. Use when the user asks about root cause analysis, what broke, or what changed when debugging a failure. Do
$ npx -y skills add syncable-dev/memtrace-public --skill memtrace-incident-investigation --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/memtrace-incident-investigationContext preview
The summary Claude sees to decide when to auto-load this skill.
Investigate source-code bugs, incidents, regressions, production issues, and failures to root cause with Memtrace symbol search, impact, call graph, and temporal history. Use when the user asks about root cause analysis, what broke, or what changed when debugging a failure. Do
name: memtrace-incident-investigation description: "Investigate source-code bugs, incidents, regressions, production issues, and failures to root cause with Memtrace symbol search, impact, call graph, and temporal history. Use when the user asks about root cause analysis, what broke, or what changed when debugging a failure. Do not start with Grep, Glob, rg, find, or manual file search for code causes. For plain what-changed questions without a failure, use memtrace-evolution."
Root cause investigation workflow for incidents, regressions, and production issues. Uses `get_evolution` to list changes near the incident time, then traces blast radius and execution flows to identify the likely cause.
Determine:
Call `get_evolution`:
{
"repo_id": "<affected-repo>",
"from": "<incident_time minus lookback, e.g. 24h before>",
"to": "<incident_time ISO-8601>",
"mode": "recent",
"limit": 100
}**Why `recent` mode?** Returns a chronological per-episode changelog. Focus on episodes whose `reference_time` is closest to the incident — especially those with high `nodes_added` + `nodes_removed` or that touch files in the failure area.
Paginate with `cursor` if `next_cursor` is present in the response.
**Success criteria:** A list of episodes in the window, with touched files and change counts for each.
Call `get_evolution` again on the same window with `mode: "compound"`:
{
"repo_id": "<affected-repo>",
"from": "<same as step 2>",
"to": "<same as step 2>",
"mode": "compound"
}Review `top_changed_files` and `top_touched_symbols`. Cross-reference with the failure area (endpoint, module, error stack).
**Decision:** Prioritize symbols/files that appear in both the recent episode list (step 2) and the compound hotspots (step 3).
For hotspot symbols from step 3, resolve each with `find_symbol`:
{ "repo_id": "<affected-repo>", "name": "<symbol>", "limit": 10 }Then call `get_timeline` — stable code that suddenly changed is suspect:
{ "repo_id": "<affected-repo>", "scope_path": "<from find_symbol>", "file_path": "<from find_symbol>" }For the top 3–5 symbols, call `get_impact`:
{ "repo_id": "<affected-repo>", "target": "<symbol>", "direction": "upstream" }**Decision:** Prioritize symbols where the blast radius overlaps with the reported failure area.
Use `get_symbol_context` on the top suspects to see which processes (HTTP handlers, background jobs, etc.) they participate in.
**Decision:** If the incident is in a specific endpoint/flow, focus on suspects that are members of that process.
Once you have a primary suspect, call `get_timeline` with `repo_id`, `scope_path`, and `file_path`:
From the step 2 `recent` response, inspect each episode's `nodes_added` and `nodes_removed`:
For the primary suspect, call `get_cochange_context`:
{ "repo_id": "<affected-repo>", "target": "<symbol>", "limit": 10 }**Decision:** If a cochange partner is in the failure area but has no direct call relationship to the suspect, it's a hidden dependency — investigate both.
If the suspect's episode isn't clear, call `get_episode_replay`:
{
"repo_id": "<affected-repo>",
"episode_index": 0,
"symbol": "<suspect>",
"mode": "graph_summary"
}1. **Incident Timeline** — when it started, what was observed 2. **Most Likely Cause** — episodes and symbols closest to the incident with blast radius confirmation 3. **Supporting Evidence** — timeline sparsity (stable code suddenly changed?), blast radius overlap, process membership overlap 4. **Change History** — full timeline of the suspect symbol 5. **Affected Scope** — all processes and downstream consumers impacted 6. **Remediation** — revert the change, fix forward, or mitigate
| Phase | Tool / mode | Why | |---|---|---| | Initial triage | `get_evolution` `recent` | Per-episode changelog near the incident | | Hotspot identification | `get_evolution` `compound` | Top changed files and symbols in the window | | Scope assessment | `get_impact` | Blast radius of suspect symbols | | Hidden coupling | `get_cochange_context` | Behavioral coupling not in the call graph | | Symbol history | `get_timeline` | Full version history of a suspect | | Sub-commit intent | `get_episode_replay` | What was tried before the committed state | | Quick window check | `get_evolution` `overview` | Totals only — use before narrowing the w
Structural memory for AI coding agents. Bi-temporal graph, MCP-native, zero LLM calls. Cursor · Claude Code · Codex · DeepSeek Harness · Hermes · VS Code · Windsurf.
Repo: syncable-dev/memtrace-public
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,…
Compute what a planned source-code change will break — blast radius, affected processes, cross-repo callers, temporal stability, and Cortex decision-memory…
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…
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,…
Map an indexed source-code repo into a structured overview — scale, communities, central symbols, execution flows, API surface, recent activity. Use when the…
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,…