← ClaudeAtlas

session-guardlisted

Prevents long-session corruption AND context compaction amnesia. Monitors session health, detects instruction drift, enforces critical-rule recitation, and splits proactively before degradation hits. Use when working on complex multi-step tasks, when a session is getting long, when the agent starts ignoring rules it followed earlier, when CLAUDE.md conventions drift, when output quality seems to degrade, or after any context compaction event.
Adit-Jain-srm/skill-forge · ★ 1 · AI & Automation · score 74
Install: claude install-skill Adit-Jain-srm/skill-forge
# Session Guard ## Overview Long sessions corrupt silently. Context compaction drops your instructions without warning. This skill prevents both: monitors health, anchors critical rules through compaction, and splits before damage occurs. No packages, no SQLite, no MCP — pure behavioral enforcement that works in Cursor AND Claude Code. ## Process Monitor session health passively. At checkpoints, RECITE critical rules to self-anchor. Split BEFORE corruption appears — once it occurs, it's invisible and irreversible. ## Persistence ACTIVE every session. Monitors passively. Escalates on threshold breach. Recites critical rules at checkpoints. ## The Problem (June 2026, confirmed across platforms) Two distinct failure modes: **1. Tool Call Degradation (50+ calls):** - Hallucinated tool results (content that doesn't match files on disk) - Tool results duplicated (same read echoed 2-8x) - False progress (agent claims "done" for incomplete work) **2. Context Compaction Amnesia:** - CLAUDE.md instructions silently dropped after compaction - Naming conventions, architectural rules, file structure constraints forgotten - Agent operates from "degraded mental model" without knowing it - Compaction summary creates "narrative momentum" that overrides re-injected rules Both are PLATFORM limitations. Smart session management mitigates both completely. ## Health Signals | Signal | Threshold | Action | |--------|-----------|--------| | Tool call count | >40 | YELLOW: checkpoint + r