workflow-repomap
Skill1 starsChanged 6 months agoMITView on GitHub
Use repo_map at the START of a coding task to orient to an unfamiliar codebase structure. Pass the files you plan to edit as focus_files. The map ranks the most structurally important symbols (PageRank over the call/def graph) and their relationships — use it to find the relevant classes/functions before reading whole files. Trigger when entering a new repo or subsystem you haven't mapped yet.
In this repository33 other files it gives its agents.
- skill-process-gotchasSkill
- workflow-cache-disciplineSkill
- workflow-codegraphSkill
- workflow-conductorSkill
- workflow-context-condenserSkill
- workflow-context-hygieneSkill
- workflow-criticSkill
- workflow-deadline-disciplineSkill
- workflow-deep-researchSkill
- workflow-done-definitionSkill
- workflow-edit-formatSkill
- workflow-effort-routingSkill
- workflow-escalateSkill
- workflow-execute-from-planSkill
- workflow-filesystem-offloadSkill
- workflow-learn-frameworkSkill
- workflow-long-running-processesSkill
- workflow-lspSkill
- workflow-memory-curationSkill
- workflow-plan-contractSkill
- workflow-plan-firstSkill
- workflow-planSkill
- workflow-quality-barSkill
- workflow-retrieve-before-actSkill
- workflow-spec-drivenSkill
- workflow-stuck-detect-resetSkill
- workflow-stuckSkill
- workflow-subagent-isolationSkill
- workflow-subtask-loopSkill
- workflow-task-finishSkill
- workflow-task-startSkill
- workflow-tool-selectionSkill
- workflow-verify-enhancedSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 31
Read the ranked symbols to find the classes/functions that matter, then open only those files — instead of blindly reading the tree.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
workflow-repomap
<!-- TRIGGERS WHEN: starting work in an unfamiliar repo/subsystem, before reading full files -->repo_map(repo_path, focus_files, token_budget) (mcp-repomap) returns Aider's
PageRank repo-map: the most structurally central symbols in the repo, ranked by
how connected they are in the tree-sitter symbol graph. It answers "what's the
important code I haven't been told about?" — a different question from the other two
context tools, and best used together:
| Tool | Question it answers |
search_code (RAG) | "what is semantically similar to my query?" |
lsp_* (LSP) | "where exactly is this symbol defined / used?" |
repo_map | "what is structurally most important here?" |
How
- At task start, call
repo_map(repo_path="<repo>", focus_files=[<files you'll edit>]).focus_filesbias the ranking toward what's relevant to your task (weighted 50×). - Read the ranked symbols to find the classes/functions that matter, then open only those files — instead of blindly reading the tree.
- The map is cached 60s (structure changes slowly); re-call with different
focus_filesas your edit target shifts.
Pure static analysis — no model call, fast. Degrades to nothing if the server is
down (fall back to search_code + reading files).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

