agentleFS
rafeeqinearafeeqinea/claude-academic-toolkit/skills/learning/explain-file/SKILL.md

explain-file

Skill0 starsChanged 9 months agoMITView on GitHub

Read a source file and explain every line in depth. Use when user says "explain this file", "walk me through", "teach me this code", or "what does this do". Designed for learning, not just reading.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the entire file with the Read tool.

    line 18
  2. Distinctive:

    Check imports to understand dependencies

    line 22
  3. Distinctive:

    Use the Insight block format for key educational points:

    line 40
  4. Distinctive:

    Never skip "obvious" lines — the user wants EVERYTHING explained

    line 48
  5. Distinctive:

    If a function calls another function in the codebase, briefly explain what that function does too

    line 49
  6. Distinctive:

    Use analogies where helpful

    line 50
  7. Distinctive:

    If you see a potential bug or improvement, mention it but don't derail the explanation

    line 51

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

Explain File — Deep Learning Mode

Trigger

/explain-file <path> or /explain-file (prompts for path)

Instructions

You are teaching a researcher who wants to understand every line. Not a summary — a deep walkthrough.

Step 1: Read the file

Read the entire file with the Read tool.

Step 2: Context scan

  • Identify the language, framework, and libraries used
  • Check imports to understand dependencies
  • Identify the file's role in the larger project

Step 3: Section-by-section explanation

Break the file into logical sections. For each section:

  1. What it does — plain English, no jargon first
  2. How it works — the actual mechanism, line by line
  3. Why this approach — design decisions, alternatives considered
  4. Math/Theory — if there's underlying math (linear algebra, calculus, ML theory), explain it fully with equations
  5. Connections — how this section connects to other parts of the codebase

Step 4: Key takeaways

  • Summarise the 3-5 most important things to remember
  • Note any gotchas or subtle behaviours
  • Suggest what to read next in the codebase

Output Format

Use the Insight block format for key educational points:

`Insight ─────────────────────────────────────`
[educational point]
`─────────────────────────────────────────────────`

Rules

  • Never skip "obvious" lines — the user wants EVERYTHING explained
  • If a function calls another function in the codebase, briefly explain what that function does too
  • Use analogies where helpful
  • If you see a potential bug or improvement, mention it but don't derail the explanation

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.