EricJujianZou/rederive
소개
AI가 작성한 코드를 면접이나 업무에서 설명할 수 있도록 도와줍니다. 저장소의 각 부분을 어떻게 직접 구축할지 질문해 설계 결정을 스스로 다시 도출하게 하는 오픈 소스 Claude Code 스킬입니다. 학습하려는 오픈 소스 저장소에도 사용할 수 있습니다.
학습 및 교육측정된 스타 증가
- in 24h
- +203
- in 7 days
- +421
- in 15 days
- +1,092
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original
An attempt by a frustrated developer to restore humanity's curiosity
Install · A session · How it works · License
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.
It needs git, bash and python3.
Other ways to install
As a Claude Code plugin:
/plugin marketplace add EricJujianZou/rederive
/plugin install rederive@rederive
By hand, clone the repo and copy skills/rederive into your agent's skills folder, such as ~/.claude/skills/ or ~/.agents/skills/:
git clone https://github.com/EricJujianZou/rederive
cp -r rederive/skills/rederive ~/.agents/skills/
A session
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.
How it works
- It starts from why the project exists. On your own repo it asks you why you built it. On someone else's repo it works out the original problem and asks how you would solve it.
- A background agent maps the repo while you answer. It reads the code, the import links between files and the commits where the design changed. It doesn't trust commit messages, so repos built with AI in a few big commits work too.
- The map holds 5 to 10 problems in the order the system would be built, each with its constraints and the real design. It lives in
.rederive/map.md. Don't open it until you're done, because it has the answers. - When you're stuck, it narrows the problem to a few approaches to choose from. After two wrong answers in a row it offers to sketch the problem for you.
- After each problem, it offers to show where the design lives in the code: the files and functions to read, in order, and the commit that added them. No code is shown, so you read it yourself.
- It keeps notes on how you did in
.rederive/log.md: where you struggled and what you worked out alone. Read it at the end to see what to practice.
Everything stays on your machine. .rederive/ goes in the repo's local git exclude list, so it never shows up in your commits. rederive sends no telemetry.
License
MIT
관련 프로젝트 살펴보기
불러오는 중…