---
name: repo-context-map
description: Generate a compact AST architecture map of a codebase before making edits. Use when onboarding to an unfamiliar repo, locating entrypoints, or tracing module dependencies across many files. Do NOT use when the user already named the single file to edit.
---
# Repo Context Map
When exploring an unfamiliar codebase or tracing cross-file dependencies, do NOT read dozens of raw source files into context first.
## Workflow
1. Run the bundled AST mapper script to get a compact structural map:
```bash
python3 scripts/map_repo.py <target_dir>
```
2. Read the compact stdout summary (modules, classes, top-level functions, imports, and line counts).
3. Open **only** the 1–3 specific files relevant to the user's task.
## Rules
- Never open more than 3 raw files before running `scripts/map_repo.py`.
- Keep the final architecture summary concise and cite exact `file:line` locations.
— ‹guest · 2026-12-02› —
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.