YurunChen/repo-docs-skills / docs
repo-docs
FlaggedBuild and maintain a Markdown guide that helps humans understand a repository through real behavior, concepts, and evidence. Use when a user asks to understand a repo, generate or update repo-docs, answer repo-architecture/onboarding questions, seed docs for a new project, sync docs after code changes, or delete generated repo docs.
case-studies/generated/aider/repo-docs/code-map.md
View on GitHub# Aider CLI Edit Code Map
This map covers the first-party source areas that own the documented CLI edit workflow. Read [how one terminal request becomes an edit](walkthroughs/one-real-run.md) first if the runtime behavior is not clear yet.
| Path | Responsibility | Key code | Connection to the main path |
| --- | --- | --- | --- |
| `aider/` | Turns terminal, config, model, file, and git state into one configured coding session. | [`main.py`](https://github.com/Aider-AI/aider/blob/5dc9490bb35f9729ef2c95d00a19ccd30c26339c/aider/main.py#L451) | Owns startup and the policy passed into the coder. |
| `aider/coders/` | Runs the model turn and constrains model text into permitted, checkable file edits. | [`base_coder.py`](https://github.com/Aider-AI/aider/blob/5dc9490bb35f9729ef2c95d00a19ccd30c26339c/aider/coders/base_coder.py#L124), [`editblock_coder.py`](https://github.com/Aider-AI/aider/blob/5dc9490bb35f9729ef2c95d00a19ccd30c26339c/aider/coders/editblock_coder.py) | Owns the request-to-edit lifecycle after session assembly. |
| `tests/basic/` | Verifies edit parsing, dry runs, dirty-file protection, and commit scope. | [`test_editblock.py`](https://github.com/Aider-AI/aider/blob/5dc9490bb35f9729ef2c95d00a19ccd30c26339c/tests/basic/test_editblock.py), [`test_coder.py`](https://github.com/Aider-AI/aider/blob/5dc9490bb35f9729ef2c95d00a19ccd30c26339c/tests/basic/test_coder.py) | Proves the main local mechanics without requiring a live provider. |
## `aider/`
| Important code | Function | Key symbols | Called by / used by |
| --- | --- | --- | --- |
| `aider/main.py` | Resolves git/config context and assembles the objects and options for a coding session. | `main()`, `Coder.create()` call site | Console entrypoint and `python -m aider`; followed by the session-assembly module. |
## `aider/coders/`
| Important code | Function | Key symbols | Called by / used by |
| --- | --- | --- | --- |
| `aider/coders/base_coder.py` | Selects coder implementations, runs model turns, gates edits, protects dirty work, reflects failures, and commits accepted changes. | `Coder.create()`, `apply_updates()`, `allowed_to_edit()` | The configured session; verified by `tests/basic/test_coder.py`. |
| `aider/coders/editblock_coder.py` | Parses diff-style SEARCH/REPLACE blocks and reports non-matching edits. | `EditBlockCoder`, `get_edits()` | The default diff path documented by the walkthrough; verified by `tests/basic/test_editblock.py`. |
## `tests/basic/`
| Important code | Function | Key symbols | Called by / used by |
| --- | --- | --- | --- |
| `tests/basic/test_editblock.py` | Checks parsing, full edits, and dry-run behavior. | `test_full_edit`, `test_full_edit_dry_run` | First verification point for edit-format changes. |
| `tests/basic/test_coder.py` | Checks dirty-file baselines and edited-file-only commits. | `test_gpt_edit_to_dirty_file`, `test_only_commit_gpt_edited_file` | First verification point for persistence and commit-scope changes. |
## Coverage
Covered: CLI session assembly, the diff-style coder lifecycle, and the focused tests that prove edit and commit boundaries. GUI launch, watch and copy/paste modes, browser and voice input, repo-map ranking, model metadata registration, OAuth onboarding, and architect/editor splits are excluded because this guide does not trace those workflows.
Read [how session policy is assembled](modules/session-assembly.md) or [why model output is gated before writes](modules/edit-lifecycle.md) for mechanism detail.
Evidence status: Confirmed unless noted.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-changelog-updatemorluto/reaPrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| academy-guideanthropics/skillsStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| claude-apianthropics/skillsReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file). | Stars: 198k | Updated | Claude CodeCodex | Unverified | Install |
| doc-coauthoringanthropics/skillsGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |