# Guidelines Clear

> Delete the cached guideline scripts and compacted docs generated by the guidelines-check-all / guidelines-check-diff skills, forcing their next run to rebuild everything from API_GUIDELINES.md / ARCHITECTURE.md. Use after the guideline documents change.

- Skill: `fe0437/guidelines-clear` (Agent Skill)
- Install (CLI): `npx skillmds@latest add fe0437/guidelines-clear`
- Raw SKILL.md: https://api.skillmd.com/api/skills/fe0437/guidelines-clear/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: Fe0437 (https://skillmd.com/u/fe0437)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/fe0437/guidelines-clear

---


# Clear the guidelines cache

1. `ROOT=$(git rev-parse --show-toplevel)`; the cache is `$ROOT/.guidelines-cache/`.
2. If it does not exist, tell the user there is nothing to clear and stop.
3. List its contents. Only proceed if they look like the generated cache
   (`GUIDELINES_COMPACT.md`, `check_guidelines.py`, `fix_guidelines.py`,
   `manifest.json`); if unexpected files are present, show them and ask before deleting.
4. `rm -rf "$ROOT/.guidelines-cache"` (if the cache was committed to git, the deletion
   will show up in `git status` — that is expected; leave staging to the user).
5. Confirm to the user: cache cleared; the next `guidelines-check-all` or
   `guidelines-check-diff` run will re-read the guideline documents and regenerate the
   scripts.

