make-ai-code-legible
Skill0 starsChanged 5 months agoMITView on GitHub
Helps a founder understand and document the code an ai wrote for them, before the day it breaks and they cannot read it. Produces a plain-language map of what the app is doing, where the important pieces live, and short comments and notes so the codebase stays legible to a non-engineer. Use when someone has vibe-coded an app they do not fully understand, is afraid to touch their own code, or is onboarding to a codebase an ai generated. Builds understanding, not a rewrite.
In this repository8 other files it gives its agents.
- build-in-public-engineSkill
- first-ten-usersSkill
- founder-pain-minerSkill
- launch-that-convertsSkill
- moat-finderSkill
- prelaunch-security-passSkill
- save-your-workSkill
- ship-it-for-realSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
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
- Distinctive: line 39
Plain language always: Every explanation should make sense to someone who cannot code.
- Very specific: line 45
Do save-your-work first. Pairs with prelaunch-security-pass, since you cannot secure what you cannot read.
≈ “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.
Files
Make AI Code Legible
The biggest self-posts in vibe coding are often a founder admitting the app works and they have no idea why. That is fine for a toy and quietly fatal for a business, because the day it breaks you cannot read your own code. This skill makes the code legible without rewriting it.
When to use
- You shipped something an ai built and you could not explain how it works.
- You are afraid to change your own code in case it all falls apart.
- You want to be able to hand the project to someone, or to your future self.
Process
- Map the app in plain language. Walk the project and write a short map: what the app does, the handful of parts that matter (where data comes in, where it is stored, where the main logic lives, where it goes out), and how they connect. One page, no jargon.
- Find the load-bearing pieces. Identify the few files or functions that would break the most if they changed. These are what the founder must understand, and the rest can stay a black box for now.
- Explain the load-bearing pieces, in comments. For each, add a short plain-language comment at the top: what it does, what it expects, what it returns, and what breaks if it is wrong. Written for a smart non-engineer, not for a compiler.
- Write a "how this works" note. A README-style doc in the founder's own words, capturing the map and the key flows, so understanding survives past this session.
- Leave a question list. The parts still unclear, named honestly, so the founder knows the edges of their own understanding instead of assuming they know it all.
Output
- A one-page plain-language map of the app.
- Short top-of-file comments on the load-bearing pieces.
- A "how this works" note in the repo.
- An honest list of the parts still not understood.
Guardrails
- Understand, do not rewrite. The goal is legibility. Do not refactor or "improve" the code as a side effect; that is a different, riskier job.
- Plain language always. Every explanation should make sense to someone who cannot code. If it needs a term of art, define it in the same breath.
- Honest about the black boxes. It is better to say "I do not fully understand this part yet" than to paper over it. Name the edges.
- Change nothing that works without a saved version first. Pair with
save-your-workso any edits are reversible.
Related
Do save-your-work first. Pairs with prelaunch-security-pass, since you cannot secure what you cannot read.
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.

