/aif-skills:explain-codebasefrom aif-skills
Analyzes a repository end-to-end and explains architecture, modules, data flow, and key code paths in accurate technical terms using plain, easy-to-understand language, walking key code line by line with examples. Use when the user asks to understand the project, explain the codebase, onboard to a repo, map how things work, summarize architecture, explain a file or function line by line, or wants a technical walkthrough without reading every file.
Ships in aif-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Help the user understand how this project works — not just list files. Be technically correct, but write so someone new to the repo can follow without decoding jargon.
| User wants | Use |
|---|---|
| Whole project / "how does this app work?" | This skill |
| One file, function, or snippet | This skill — Line-by-line walkthrough only |
One module folder (e.g. src/auth/) in depth | backend-module-explainer |
| Cursor product features | cursor-guide |
Do not write files under docs/ unless the user asks for a saved artifact.
For every technical term you use, either:
HTTP handler → code that receives web requests), orORM (library that talks to the database using Python objects)).Avoid: long identifier dumps, unstated acronyms, assuming framework expertise.
Tone: Complete sentences, short paragraphs, concrete examples from this repo (real paths, real endpoint names).
Copy and track:
Progress:
- [ ] Orient from docs and layout
- [ ] Identify entry points and runtime
- [ ] Map major modules and responsibilities
- [ ] Trace 1–2 main user-visible flows
- [ ] Note config, deps, and tests
- [ ] Deliver structured explanation
Read in order when present (stop when enough context exists):
README.md, AGENTS.md, CONTEXT.mdcompose.yaml, render.yaml, requirements.txt, package.json, .env.example (never paste secrets from .env)src/, app/, lib/, or api/ tree (list directories only first)Grep only to fill gaps: create_app, main(, if __name__, route decorators, router., CLI argparse.
State in one sentence what the software does for users or operators (product purpose), then one sentence on shape (e.g. FastAPI API + CLI scripts, monorepo, library only).
Produce a small diagram when it helps (mermaid or ASCII). Show:
Name folders and modules by role, not by dumping every file.
| Area (path) | Role in plain language | Key files to open |
|---|
Keep to the 5–12 most important areas; link paths like src/app.py.
For each flow the user cares about (or the app's main job):
Use repo-specific names (routes, env vars, filenames).
Cover only what exists in this project:
Short bullets: multi-tenant rules, performance hooks, things not to change, known limitations from docs.
If something is unclear after search, say what you checked and what remains unknown — do not invent behavior.
Explain code line by line with examples. Quote the real code in small chunks (1–5 lines, as a code reference with path and line numbers), then under each chunk:
user_id="42" → int("42") → 42; "" → raises ValueError).Done when every line of the target is covered; group trivial lines (imports, braces, logging) into one sentence instead of skipping them. Finish with one end-to-end example running a realistic input through the whole function.
Use these headings:
One short paragraph.
Diagram optional; 3–5 bullets on structure.
Module table + one line each on how they cooperate.
Numbered flows with file pointers.
Bullets only; copy commands from the repo when possible.
Ordered list of 3–6 paths for self-guided reading.
Only if relevant (out of scope dirs, WIP auth, etc.).
Length: Proportional to repo size — small repos ~1 screen; large repos prioritize flows and map over exhaustive file lists.
sync_bytes() line by line"This repo is a FastAPI service that fills Lao financial Word templates from Excel uploads. The web layer in
src/app.pystays thin; document matching lives inlabel_index.pyandword_resolver.py, run in a background thread so uploads don't block the server. To trace a fill: POST/api/fill-template→sync_bytes()inupdate_word_from_excel.py→ …
The codebase uses FastAPI, SQLModel, Alembic, python-docx, xlrd, openpyxl, pytest, and uvicorn. See src/.
What SKILL.md sets; muted values are Claude Code's defaults
41 skills in this plugin
/ask-mattAsk which skill or flow fits your situation. A router over the skills in this repo./cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.
/cherry-pick-to-mainPrepare a feature branch created from `develop` for a selected target branch such as `main` or `uat`, creating a target-prefixed branch and cherry-picking only that feature's commits. Use when a feature needs a separate branch based on a chosen target.npx claudepluginhub aifgrouplaos/ai-skills --plugin aif-skills