unrender-repolisted
Install: claude install-skill dimeloper/second-brain-workflow
# Unrender a repo
The inverse of `onboard-repo`. Removes what `render.py` wrote into a target
repo and takes that repo out of the registry, in one act.
**Preview by default.** This deletes files in a repo the engine does not own,
so the first run always reports and changes nothing.
## The command
```bash
~/second-brain-workflow/scripts/render.py --unrender "<TARGET>" # preview
~/second-brain-workflow/scripts/render.py --unrender --yes "<TARGET>" # act
```
Or `make unrender REPO=<TARGET>` / `make unrender REPO=<TARGET> YES=1`.
Show the user the preview output before running with `--yes`, unless they
already asked for it in the same breath ("unrender it", "just do it").
## What it removes
| Removed | Condition |
|---|---|
| `.cursor/rules/*.mdc`, `.claude/rules/*.md` | only files carrying the provenance marker |
| `AGENTS.md`, `CLAUDE.md` | only if they carry the marker |
| `.sbw-version` | always — the engine owns it outright |
| the `.git/info/exclude` block | only if the repo was rendered `--local` |
| the registry entry | if the registry names the repo |
| `.cursor` / `.claude` themselves | only if taking the rules directory out left them empty |
Anything without the marker is hand-written and is left alone — the same rule
`render.py` follows when writing. A hand-written `CLAUDE.md` survives; so does
a `.cursor/rules/local-only.mdc` a human put there.
**It never searches the repo for the marker.** Only the paths render.py itself
writes are candidates. A re