Explain code that AI wrote for you, in an interview or at work. It asks how you would build each part of your repo, so you re-derive its design decisions yourself. It also works on open source repos you want to learn.
rederive helps you explain code that AI wrote for you, in an interview or at work. It is a skill for coding agents that asks how you would build each part of your repo, so you re-derive its design decisions yourself from first principles. It also works on open source repos you want to learn.
It only asks you questions to guide you to the right answer, and it won't explain things. We made this on purpose to aim for understanding through derivation, instead of memorizing what the agent says.
Install
npx skills add EricJujianZou/rederive
The 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.
The start of a session on Express (an example, shortened):
Use
/rederive # the repo you are in
/rederive ~/code/myapp # a local repo
/rederive https://github.com/expressjs/express # clones it into the current folder by default
To clone URLs somewhere else, set REDERIVE_CLONE_DIR in your shell before you start your agent, for example export REDERIVE_CLONE_DIR=~/src.
Talk to it in plain words. Tell it you're stuck, ask to skip a problem, or say you want to start over.