agentleFS
fabianmagrinifabianmagrini/skills/skills/explain-codebase/SKILL.md

explain-codebase

Skill1 starsChanged 7 months agoMITView on GitHub

Answer "what does this do?" for a codebase, directory, or file. Produces a concise inline explanation without writing a documentation file.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Keep it short. If the user wants comprehensive docs, they should use /research-codebase.

    line 69
  2. Distinctive:

    Do not speculate about intent — describe what the code actually does.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “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

Explain the target codebase, directory, or file clearly and concisely. Respond inline — do NOT write a file. This is a lightweight alternative to research-codebase when the user just wants to understand something quickly.

Determine the target

Accept any of:

  • A GitHub URL or owner/repo shorthand → fetch README and root manifest
  • A local directory path → list top-level structure, read README and manifest
  • A local file path → read the file directly
  • A function or class name → locate with Grep, read the containing file

Scope of explanation

Match the depth to the target:

TargetExplain
Full repoPurpose, architecture in one paragraph, key technologies, how to run
DirectoryWhat this directory is responsible for, how it fits into the larger project
FileWhat the file does, its main exports/functions, where it's used
Function/classWhat it does, its parameters and return value, any important side effects

Output format

For a repo or directory:

{Name}

What it does 1–2 paragraphs.

Key components Bullet list of the most important files/directories and what each does.

Tech stack One-liner: e.g. "Python 3.12 · FastAPI · PostgreSQL · deployed on AWS Lambda"

How to run The minimal steps to get it running locally, if discoverable.


For a file:

{path/to/file}

What this file does in 1–3 sentences. What it exports and how it's used.


For a function or class:

{FunctionName} in {path/to/file}

What it does, its signature, and any non-obvious behaviour or side effects.

Gotchas

  • Keep it short. If the user wants comprehensive docs, they should use /research-codebase.
  • Do not speculate about intent — describe what the code actually does.
  • For GitHub targets, try main then master for raw content URLs.
  • This skill pairs naturally with /research-codebase (when a full documentation file is needed rather than an inline explanation), /map-api-flow (when the user needs to visualize how API calls flow through the code), and /onboard-codebase (when a new engineer needs a complete structured guide rather than a quick answer).

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.