cleanslate
Skill993 starsChanged 6 months agoApache-2.0View on GitHub
Use when the user asks to run or prepare the Almanac clean-slate workflow, uninstall all local codealmanac/Almanac CLI artifacts, or reset a machine to first-time Almanac install state.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- deep-refactor-auditSkill
- deep-refactor-auditSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Check for ~/.almanac, ~/.claude/almanac.md, ~/.claude/almanac-reference.md, legacy ~/.claude/codealmanac*.md, …
- Distinctive: line 20
If any Almanac CLI command exists, run the product uninstaller first:
- Very specific: line 22
If almanac is missing but codealmanac exists, run codealmanac uninstall --yes.
- Distinctive: line 23
If both fail, continue with manual cleanup.
- Distinctive: line 25
Remove npm/global installs and caches:
- Very specific: line 27
Remove codealmanac package directories under all local nvm global roots if they still exist.
- Very specific: line 28
Remove global bin shims named almanac, alm, and codealmanac only when they point at a codealmanac install.
- Very specific: line 29
Remove each ~/.npm/_npx/<hash> directory whose node_modules/codealmanac/package.json exists.
- Distinctive: line 31
Remove Almanac home/config artifacts:
- Very specific: line 33
Remove ~/.claude/almanac.md, ~/.claude/almanac-reference.md, ~/.claude/codealmanac.md, and ~/.claude/codealmanac-reference.md.
- Very specific: line 34
Remove ~/.claude/hooks/almanac-capture.sh if it exists.
- Distinctive: line 40
If a hook container becomes empty after removing Almanac's command, remove that empty container/key.
- Distinctive: line 45
If CLAUDE.md becomes empty after removing Almanac imports, remove it.
- Distinctive: line 47
Verify the clean slate:
- Very specific: line 52
Check that ~/.almanac, guide files, and almanac-capture.sh are gone.
- Very specific: line 53
Check that no hook command ending in almanac-capture.sh remains in Claude, Codex, or Cursor hook settings.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Almanac Clean Slate
Reset this machine to a first-time Almanac user state, then report exactly what changed.
Goal: remove every installed or cached codealmanac/Almanac CLI artifact from this laptop without touching unrelated user files, unrelated npm packages, or foreign editor hooks.
Work from safest to most direct:
- Record the starting state:
command -v almanac alm codealmanac || truenpm list -g codealmanac --depth=0 || truefind ~/.npm/_npx -path '*/node_modules/codealmanac/package.json' -print 2>/dev/null || true- Check for
~/.almanac,~/.claude/almanac.md,~/.claude/almanac-reference.md, legacy~/.claude/codealmanac*.md,~/.claude/hooks/almanac-capture.sh,~/.codex/hooks.json, and~/.cursor/hooks.json.
- If any Almanac CLI command exists, run the product uninstaller first:
- Prefer
almanac uninstall --yes. - If
almanacis missing butcodealmanacexists, runcodealmanac uninstall --yes. - If both fail, continue with manual cleanup.
- Prefer
- Remove npm/global installs and caches:
- Run
npm uninstall -g codealmanac || true. - Remove
codealmanacpackage directories under all local nvm global roots if they still exist. - Remove global bin shims named
almanac,alm, andcodealmanaconly when they point at acodealmanacinstall. - Remove each
~/.npm/_npx/<hash>directory whosenode_modules/codealmanac/package.jsonexists.
- Run
- Remove Almanac home/config artifacts:
- Remove
~/.almanac. - Remove
~/.claude/almanac.md,~/.claude/almanac-reference.md,~/.claude/codealmanac.md, and~/.claude/codealmanac-reference.md. - Remove
~/.claude/hooks/almanac-capture.shif it exists.
- Remove
- Clean editor hook settings safely:
- In
~/.claude/settings.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - In
~/.codex/hooks.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - In
~/.cursor/hooks.json, remove only hook commands whose command path ends withalmanac-capture.sh; preserve every foreign hook. - If a hook container becomes empty after removing Almanac's command, remove that empty container/key.
- In
- Clean Claude imports safely:
- In
~/.claude/CLAUDE.md, remove lines that are exactly@~/.claude/almanac.mdor@~/.claude/codealmanac.md, plus those same lines followed by spaces/tabs and annotations. - Preserve lines that merely mention those paths inside other prose.
- If
CLAUDE.mdbecomes empty after removing Almanac imports, remove it.
- In
- Verify the clean slate:
hash -r || truecommand -v almanac alm codealmanac || truenpm list -g codealmanac --depth=0 || truefind ~/.npm/_npx -path '*/node_modules/codealmanac/package.json' -print 2>/dev/null || true- Check that
~/.almanac, guide files, andalmanac-capture.share gone. - Check that no hook command ending in
almanac-capture.shremains in Claude, Codex, or Cursor hook settings.
Output:
- Show the exact commands/actions you ran in order.
- Mark each as
removed,already absent, orskippedwith the reason. - End with the remaining
command -vand npm/global/npx verification output.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

