silkyland

Clean Slate — Development skill for Claude Code

Development community

Agent skill: safe re-initialization of project agent knowledge — salvage-verify old docs, backup-gated deletion, fresh codebase read, direction interview, rebuild cited AGENTS.md/ARCHITECTURE.md/ROADM.

How to install Clean Slate

This entry records only its repository, not the path inside it, so there is no exact command to give. Open silkyland/clean-slate and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Clean Slate does

Agent skill: safe re-initialization of project agent knowledge — salvage-verify old docs, backup-gated deletion, fresh codebase read, direction interview, rebuild cited AGENTS.md/ARCHITECTURE.md/ROADMAP.md

Alternatives in Development

README

![clean-slate social preview](assets/social-preview.png)

clean-slate

**Safe re-initialization of a project's agent knowledge — burn the rotten docs, rebuild from the code and the user's intent.**

`clean-slate` is an [agent skill](https://vercel.com/docs/agent-resources/skills) for the day your knowledge files stop helping: `CLAUDE.md` contradicts the code, three generations of agents left conflicting notes, the roadmap describes a project that no longer exists. Past that point, patching costs more than rebuilding.

What it does

/clean-slate .
  1. Inventory — finds every agent-knowledge file (CLAUDE.md, AGENTS.md, cursor rules, architecture docs, roadmaps, old plans) and classifies each delete / keep / ask. Human docs (README, CHANGELOG, end-user docs), code, and anything a build/CI/docs-site config references are never in scope.
  2. Salvage — mines the old files for load-bearing claims and tags each one: verified (fresh file:line citation — survives), refuted (becomes a "common wrong assumption" warning), or unverifiable from code (deploy quirks, house rules — carried to the interview or the roadmap's open questions, never silently dropped).
  3. Backup gate ⛔ — presents the exact delete list and asks where to back it up (recommended: docs/_archive// + a git tag). The question is only asked when the invocation didn't already authorize the reset — but nothing is ever deleted without a count-verified backup: headless runs and pre-authorized invocations take the recommended backup automatically, and if it can't be verified, they stop instead of deleting.
  4. Clean — backs up, count-verifies the backup against the delete list (a command, not a judgment call), deletes only the confirmed list.
  5. Fresh read — inventories the codebase from source: structure, wiring, data flow, git trajectory. Old docs are gone and are not trusted from memory.
  6. *Direction interview