rederive: defend AI-built code by redesigning it
Install the rederive skill, run /rederive, and answer design questions until you can rebuild the system yourself.
Published here · 2 sources · Resume reading
AI-written repos are easy to ship and hard to defend in an interview or a design review. rederive is a public skill that forces you to rebuild the design decisions yourself. It asks questions. It does not lecture. [1]
Related reading: Turn a repeated prompt into a Claude Code skill, Distill a session into a skill with skill-distill, Run five checks before merging AI-written code and Choose the best Claude skill for each SEO job. Browse the Claude Code topic.
Install the skill
Per the README: [1]
npx skills add EricJujianZou/rederiveThe same command installs it in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, opencode, Windsurf, Amp, Goose and about 70 other agents. It puts the skill in every agent folder it finds in your project. Add -g to install it for every project instead. Then type /rederive in your agent. [1]
Requirements: git, bash and python3. [1]
Run a session on your repo
/rederivePoint it at another local path or a GitHub URL when you need that:
/rederive ~/code/myapp
/rederive https://github.com/expressjs/expressTo clone URLs somewhere else, set REDERIVE_CLONE_DIR in your shell before you start your agent. [1]
Talk in plain words. Tell it you are stuck, ask to skip a problem, or say you want to start over. [1]
Let the map stay closed until you finish
How it works, per the README: [1]
- It starts from why the project exists (your reason on your repo, or the original problem on someone else's).
- A background agent maps the repo while you answer: code, import links and commits where the design changed. It does not trust commit messages, so AI-built repos with a few big commits still work.
- The map holds 5 to 10 problems in build order, each with constraints and the real design, in
.rederive/map.md. Do not open it until you are done. - When you are stuck, it narrows the problem. After two wrong answers in a row it offers to sketch the problem.
- After each problem, it can show where the design lives (files and functions to read, in order, and the commit that added them). No code is shown, so you read it yourself.
- Notes on how you did land in
.rederive/log.md.
Everything stays on your machine. .rederive/ goes in the repo's local git exclude list. No telemetry. License: MIT. [1][2]
Your next design review should start from answers you derived, not from a pasted agent summary.
Send this to the teammate who cannot explain the AI-written repo they are about to demo.
Keep this guide
Filed under Claude Code, AI agents
Questions about this guide
What does rederive do?
It is an MIT Agent Skills-compatible skill that asks how you would build each part of a repo from first principles. It guides with questions and does not explain the answers for you.
How do I install it?
Per the README: npx skills add EricJujianZou/rederive. Then type /rederive in your agent. It needs git, bash and python3.
Where do the answers live?
A background map of 5 to 10 design problems lives in .rederive/map.md. Session notes live in .rederive/log.md. The README says not to open the map until you are done, because it has the answers.
Does it send telemetry?
The README states everything stays on your machine, .rederive/ is added to the repo local git exclude list, and rederive sends no telemetry.
Sources
- EricJujianZou/rederive READMEgithub.com
- rederive project pageericzou.dev