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.

Fe0437 Updated

File contents

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.

Fe0437/AgentSkills/tree/main/guidelines-clear commit 6d93ae0aab

Frequently asked questions

npx skillmds@latest add fe0437/guidelines-clear