# 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.

Source: https://fullbytedeveloper.com/blog/rederive-ai-code-design-skill
Published here: 2026-11-25

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](/blog/claude-code-first-custom-skill), [Distill a session into a skill with skill-distill](/blog/skill-distill-teacher-student-loop), [Run five checks before merging AI-written code](/blog/check-ai-code-before-merging) and [Choose the best Claude skill for each SEO job](/blog/choose-seo-skills-by-task). Browse the [Claude Code topic](https://fullbytedeveloper.com/blog/topic/claude-code).

## Install the skill

Per the README: [1]

```bash
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. [1]

Requirements: `git`, `bash` and `python3`. [1]

## Run a session on your repo

```text
/rederive
```

Point it at another local path or a GitHub URL when you need that:

```text
/rederive ~/code/myapp
/rederive https://github.com/expressjs/express
```

To 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.

## Sources

1. [EricJujianZou/rederive README](https://github.com/EricJujianZou/rederive)
2. [rederive project page](https://ericzou.dev/rederive/)
