/research-docs:rederivefrom research-docs
Teaches a codebase by making the user re-derive its design decisions from first principles through Socratic questions, instead of explaining the code. Works on the user's own repo or any open source repo (local path or git URL).
Ships in research-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The user designs the system themselves from the bare problem and the basic facts of the platform, not from frameworks they have heard of. You pose problems and add constraints. Explaining is the last resort.
git clone --filter=blob:none <url> into <current directory>/<name>, or git pull if that folder exists.State lives in <repo>/.rederive/. Add .rederive/ to <repo>/.git/info/exclude the first time. The repo is the user's own when most commits are by git config user.email, or they say it is.
If the user wants to start over, delete map.md and log.md. If map.md exists, read it and go to step 4.
The first problem is why the project exists: what the author faced before any code was written.
Put "Finding the most challenging problems and rearranging them into logic chains. This will take a few mins" in the same message. Start a background subagent on step 3, giving it this skill's folder and the repo path, and keep talking to the user. Add no constraints until map.md exists; until then, have them make their design work for the root problem alone. When the map arrives, write the root problem into it in the user's words. Without subagents, do step 3 yourself before asking.
scripts/history.sh <repo> from this skill's folder. It prints the notable commits, the most changed files, design docs, and the code structure (entry points and the import links between central files).git show --stat <sha> and read only the important diffs. Trust diffs and code over commit messages.<repo>/.rederive/map.md:# Decision map
repo: <name> | built from: <short sha> | date: <YYYY-MM-DD>
root problem: <why the project exists>
## D1. <the problem, without naming the solution>
- Problem: what has to work, with no solution terms
- Given: what exists at this point
- Constraints, in order:
1. <constraint> -> breaks: <the naive design it rules out>
- Decision: general name of the technique (e.g. "middleware chain"), one-line definition, what the code does with it
- Options: 2 to 4 approaches including the real one, each with its tradeoff
- Evidence: commit <sha> "<message>", files <paths>, or "code only"
Take the first problem with no entry in log.md, unless the user asks for another.
Append to <repo>/.rederive/log.md when each problem is done:
## D1. <title>
struggled with: <where they got stuck or went wrong, and what got them moving>
found on their own: <ideas they reached without a hint>
did well: <what was strong>
did ok: <what worked but was shaky or needed help>
better idea: <only if they proposed one>
When the session ends, tell them their work is logged at the full path of log.md, and suggest doing more problems and looking across the log for a pattern in what to work on.
.rederive/. Never edit the repo's code.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub siddu1004/sfp --plugin research-docs40 skills in this plugin
/architecture-decision-recordsCapture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an index README. Use when the user says 'record this decision' or 'ADR this', chooses between frameworks or databases, discusses trade-offs, or asks why the codebase is shaped this way./brownfield-retrospectiveRun the ECC engineering process retroactively against an existing project slice. Audit current state, reconstruct past decisions, produce a four-axis gap register (thinking, coding practice, missing features, technology selection), then execute fixes forward through the plan-TDD-review pipeline. Use when adopting ECC mid-project, taking over an inherited codebase, or asking what was missed and what would have been built differently from day one./codebase-memory-mcpOther plugins' skills for the same job