session-guardlisted
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