explain-this-file
Skill0 starsChanged 3 months agoMITView on GitHub
Use when the user opens an unfamiliar file and asks what it does, how it works, or who calls it.
In this repository11 other files it gives its agents.
- api-docsSkill
- code-reviewSkill
- commit-messageSkill
- debug-loopSkill
- onboarding-mapSkill
- perf-passSkill
- pr-descriptionSkill
- refactor-safelySkill
- security-passSkill
- sql-reviewSkill
- write-testsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- Distinctive: line 12
Read the whole file. If it is over 800 lines, read it in parts before summarising anything.
- Distinctive: line 23
Do not narrate the code line by line.
- Distinctive: line 25
If a section is dead code, say it is dead code.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Explain this file
Explain one file well enough that the reader could safely change it.
Procedure
- Read the whole file. If it is over 800 lines, read it in parts before summarising anything.
- State its single responsibility in one sentence. If you cannot, say the file has more than one.
- List the public surface: exported functions, classes, routes or constants, with one line each.
- Trace the main path through the file from entry point to return value.
- Find the callers with a search for the file name and its exported symbols.
- Find what it depends on: imports, environment variables, database tables, network calls.
- Flag the parts that would surprise a new reader: hidden coupling, retries, caching, global state.
- Name the three changes most likely to break something else.
Rules
- Do not narrate the code line by line.
- Quote code only when the exact text carries the point.
- If a section is dead code, say it is dead code.
Output format
Purpose: <one sentence>
Public surface: <bullets>
Main flow: <numbered steps>
Depends on: <bullets>
Called by: <bullets, with paths>
Watch out for: <bullets>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
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.

