setup-curator-three-layer-self-maintenance-architecture

Three-layer automation enforces setup hygiene: (1) Hookify UserPromptSubmit auto-loader fires on 25+ keywords (remember, audit memory, MEMORY.md, CLAUDE.md, refactor, pristine sweep, curator) injecting mandatory skill invocation; (2) PreToolUse guard checks for session marker /tmp/.setup-curator-invoked-<session_id> before Write/Edit on setup files — injects routing reminder if marker absent; (3) nightly 03:00 IST cron setup-pristine-sweep.py runs 7-step sweep, appends [DRIFT] entries to session-learnings.md when issues found. System is skill-aware and advisory — not hard-blocking.