memtrace-codebase-exploration

Solid

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.

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

## Overview Full codebase exploration workflow — from indexing through architectural understanding. Chains indexing, graph algorithms, community detection, and temporal analysis into a structured onboarding experience. Use this when someone is new to a codebase and needs to build a mental model. ## Steps ### 1. Index the codebase Call `list_indexed_repositories` first. If the repo is already indexed, skip to step 2. Otherwise, call `index_directory` with the project path, then poll `check_job_status` until completion. **Success criteria:** Repo appears in `list_indexed_repositories` with non-zero node/edge counts. ### 2. Get the lay of the land Call `get_repository_stats` to understand scale: - How many functions, classes, methods, interfaces? - How many relationships (calls, imports, extends)? - How many communities and processes were detected? Report these numbers to the user — they set expectations for the codebase's size and complexity. ### 3. Map the architecture (communities) Call `list_communities` to see how the codebase naturally clusters into logical modules. **Decision:** If >10 communities, summarize the top 5–7 by size and let the user ask about specific ones. Each community represents a cohesive module — these are the "areas" of the codebase. ### 4. Find the most important symbols Call `find_central_symbols` — PageRank over CALLS/REFERENCES edges (no `method` param): ```json { "repo_id": "<repo>", "limit": 15 } ``` These are the symbols that the...

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