agentleFS
roerohanroerohan/skills/repo-walkthrough/SKILL.md

repo-walkthrough

Skill29 starsChanged 7 months agoMITView on GitHub

Walk a user through how a repository works, explaining critical flows at a calibrated simplicity level. Use when user says "walk me through this repo", "explain this repo", "how does this codebase work", or asks to understand a repo. Accepts a simplicity level argument (novice, pro, brief, detailed, etc.).

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no level is specified, default to novice.

    line 22
  2. Very specific:

    Use the Task tool with the explore agent (thoroughness: "very thorough") to gather repo context.

    line 30
  3. Very specific:

    Read key files: README, package.json/Cargo.toml/go.mod/pyproject.toml, main entry points, config

    line 34
  4. Very specific:

    If the explore agent is not available, fall back to using Glob/Read/Grep directly.

    line 38
  5. Distinctive:

    Do NOT dump raw file listings at the user.

    line 40
  6. Distinctive:

    After covering the critical flows, ask the user:

    line 79
  7. Distinctive:

    If the user names a focus area, dive into it with the same level-appropriate depth.

    line 85
  8. Distinctive:

    Ground everything in code: never speculate about behavior you haven't inspected.

    line 97
  9. Distinctive:

    One flow at a time: do not overwhelm with a wall of text.

    line 98
  10. Distinctive:

    Ask, don't assume understanding: after each explanation block, check in with the user.

    line 99
  11. Distinctive:

    Adapt on the fly: if the user says "too much detail" or "can you simplify?", adjust immediately.

    line 100

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Repo Walkthrough

Guide the user through a repository's architecture and critical flows, calibrated to their level.

Invocation

The user may specify a simplicity level. Parse it from their prompt. Examples:

User saysLevelBehavior
"novice", "beginner", "eli5"NovicePlain language, no jargon without definition, analogies welcome
"intermediate", "familiar"IntermediateAssume basic programming literacy, define domain-specific terms
"pro", "expert", "senior"ProConcise, use precise terminology, skip fundamentals
"brief", "quick", "overview"BriefHigh-level summary only, minimal detail
"detailed", "deep", "thorough"DetailedExhaustive coverage of each flow

If no level is specified, default to novice.

The level controls vocabulary and depth, not correctness. Never simplify to the point of being wrong.

Workflow

Phase 1: Reconnaissance

Use the Task tool with the explore agent (thoroughness: "very thorough") to gather repo context. Ask it to:

  1. Map the repo structure: root files, directory layout, config files, entry points
  2. Identify the tech stack (languages, frameworks, build tools, package managers)
  3. Read key files: README, package.json/Cargo.toml/go.mod/pyproject.toml, main entry points, config
  4. Identify the primary domain: what does this software do for its users?
  5. List the 3-5 most important code paths / critical flows

If the explore agent is not available, fall back to using Glob/Read/Grep directly.

Do NOT dump raw file listings at the user. Synthesize what you find.

Phase 2: Orientation

Present a concise summary to the user:

  • What this repo is: one-sentence purpose
  • Tech stack: languages, frameworks, key dependencies
  • Repo shape: how the code is organized (e.g., "monorepo with packages/", "standard Go project layout", "single SPA with src/")
  • Key entry points: where execution begins, where requests arrive, where the CLI dispatches

Adjust detail to the user's level. For novice, explain why the structure exists. For pro, just name the conventions.

Phase 3: Critical Flows

Identify and explain the critical flows -- the 3-5 most important paths through the code that define what this software does. Examples:

  • How an HTTP request is handled end-to-end
  • How data is ingested, transformed, and stored
  • How the CLI parses a command and executes it
  • How the build pipeline works
  • How auth/session management works

For each critical flow:

  1. Name the flow clearly
  2. Trace the path through the code: entry point -> key functions/modules -> output/side-effect
  3. Reference specific files and line ranges (e.g., src/server.ts:45)
  4. At novice level: use analogies, explain why each step exists
  5. At pro level: focus on non-obvious design decisions, tradeoffs, and gotchas

Present one flow at a time. After each flow, pause and ask the user:

  • "Does this make sense?"
  • "Want me to go deeper on any part of this?"
  • "Ready for the next flow, or want to explore something specific?"

Phase 4: Check Understanding

After covering the critical flows, ask the user:

  • Which parts feel clear vs. fuzzy?
  • Is there a specific area they want to focus on (e.g., "how does auth work?", "what happens when I run X?")?
  • Whether they want to trace a specific scenario end-to-end

If the user names a focus area, dive into it with the same level-appropriate depth.

Phase 5: Wrap-Up

Offer a brief recap of what was covered and suggest next steps:

  • Files worth reading in detail
  • Areas of the codebase that are complex or under-documented
  • Good first tasks if the user wants to contribute

Rules

  • Ground everything in code: never speculate about behavior you haven't inspected. Read the files.
  • One flow at a time: do not overwhelm with a wall of text. Pause for interaction.
  • Ask, don't assume understanding: after each explanation block, check in with the user.
  • Adapt on the fly: if the user says "too much detail" or "can you simplify?", adjust immediately.
  • Stay focused on critical paths: skip boilerplate, config minutiae, and generated code unless the user asks about them.
  • Use the Task tool and Explore agent for broad codebase searches to keep context lean.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.