memtrace-first

Solid

Route code discovery, debugging, flow tracing, how-code-works questions, and pre-edit rationale checks in indexed source-code repos to Memtrace graph plus Cortex decision tools. Use first before searching/reading code, and before editing, refactoring, deleting, or re-picking an approach that may have a recorded decision, ban, convention, or contract. Do not use Grep, Glob, rg, find, or manual file browsing for code discovery when Memtrace is indexed. Zero results are not permission to grep; diagnose/reindex with Memtrace.

AI & Automation 469 stars 41 forks Updated 5 days ago NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Memtrace First ## The Iron Law ``` IF THE REPO IS INDEXED IN MEMTRACE → USE MEMTRACE TOOLS FIRST. After a search hit, route to GRAPH tools (get_symbol_context, get_impact, analyze_relationships) — that's what Memtrace uniquely provides. Read source ONLY when you're about to edit or quote, and read only the bounded span returned by Memtrace (start_line .. end_line + small context). Do not Grep/Glob/Find to "locate" anything already in the graph, and do not read the whole file when Memtrace has given you exact lines. BEFORE you edit/refactor/delete existing code or choose/re-pick a pattern, call Cortex decision memory: recall_decision for the symbol/subsystem/approach, and use provenance/contracts when a symbol_id is available. Use Memtrace's graph tools for structure and blast radius; use Cortex for rationale, bans, and contracts. ``` Memtrace is the **memory layer** of the codebase, not a search engine that returns code. It has the full knowledge graph — every symbol, call, import, community, process, and API — with a time dimension. The point is to navigate that graph: who calls this, what's the blast radius, when did this change, what community is it part of. File tools are blind to all of that. **No exceptions for what's in the graph.** ## Value Tracking Do not print usage receipts in normal answers. Memtrace records tool usage, graph facts, file references, and estimated context avoided internally. Users can inspect that in the local UI's Value panel. ## What Me...

Details

Author
syncable-dev
Repository
syncable-dev/memtrace-public
Created
5 months ago
Last Updated
5 days ago
Language
Python
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Solid

memtrace-decision-memory

Use Cortex decision memory through the normal Memtrace MCP tools. Trigger for free-text questions about what was decided, chosen, rejected, banned, or established as a convention; for why a symbol exists or which contracts constrain it; for whether a known decision held, drifted, or was violated; and for the implementation arc behind a decision. Use before non-trivial edits, refactors, deletions, or re-picking a library, pattern, architecture, or subsystem behavior. Routes internally across recall_decision, why_is_this_here, governing_contracts, verify_intent, and get_arc. Do not guess rationale from a diff or git log.

469 Updated 5 days ago
syncable-dev
AI & Automation Solid

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 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.

469 Updated 5 days ago
syncable-dev
AI & Automation Solid

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, modules, or major flows. Do not use Glob, find, tree, rg, or manual file browsing as the first exploration path; Memtrace provides structured graph briefing. Do NOT use for change history / what-changed questions — use memtrace-evolution.

469 Updated 5 days ago
syncable-dev