CODE
Your AI wrote it fast. CODE makes it readable: clear names, tidy folders, one job per function, and a map of where everything lives. Your app works exactly the same.
- Real parser, real referencesRenames and moves follow every import and call site. Never search-and-replace.
- Tested before and after every stepA step that breaks anything is put back on its own.
- A map of your code
CODEMAP.md: every feature, file and function, withfile:line.
Make your code readable
Paste this into your AI in the project, or run the command. It scans, writes a plan for you to check, then makes one tested change at a time.
Full prompt
Claude Code, Codex, Cursor or any coding AI. Hosted at /code/prompt.md. Commands are pinned to this release.
Find the one snippet.
Something broke and you need the exact spot. CODEMAP.md answers "where do I fix…?" with a file and a line, so you (or your AI) open one function instead of reading the whole app.
This is a sample map from a small vibe-coded app. Yours is written from your own code.
One change at a time. Tested every time.
CODE never changes your whole app in one go. Every rename, move or extract is its own step, with your build and tests run before and after it.
- TestYour build and tests pass before anything changes.
- ChangeOne rename, move or extract, with every call site.
- Test againSame build and tests, plus a check that nothing went missing.
- CommitOne git commit per step, so any step can be undone.
- Put backAnything failed? That step is reverted and reported. On to the next.
R1 rename valActCheck → startFaceScan · tests passed · committed
No tests? CODE writes a small smoke test first (does it build, do pages load, do exported functions keep their shape), so "nothing broke" is measured, not assumed.
A plan you can read, and a map you keep.
Plain Markdown files in your project. Your AI reads them too, so the next change it makes keeps the new names.
- PLAN
CODE-PLAN.mdEvery rename, move and extract, with its risk and the call sites it touches. Safe ones are checked; edit names or untick anything before it runs. - MAP
CODEMAP.mdFeatures, files and functions withfile:line, plus a "Where do I fix…?" list in plain English. - CALLS
docs/CALLS.mdEvery public function, endpoint and event, with its inputs and what it changes (network, storage, the page). - RULES
CODE-RULES.md+ AI rulesA short naming and folder guide, added toCLAUDE.md,AGENTS.mdor.cursorrules. Added at the end, never overwritten. - CI
code checkFails the build when new cryptic names or god files sneak back in, so the code stays readable. - UNDO
code undo <step|all>Put back one step, or everything. Each step is its own commit (or patch file without git).
What it does on its own, and what it leaves to you.
JavaScript and TypeScript today: JSX and TSX, React, Next.js, Vite and Node. Python is on the roadmap.
? and is skipped until someone fills it in.obj[name] can't be followed safely, so anything it might reach is marked risky and left unticked.