원클릭으로
context-health-monitor
Monitors context complexity and triggers state dumps before quality degrades
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Monitors context complexity and triggers state dumps before quality degrades
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Analyzes existing codebases to understand structure, patterns, and technical debt
Strategies for compressing context to maximize token efficiency
Search-first skill to reduce unnecessary file reads by searching before loading
Systematic debugging with persistent state and fresh context advantages
Requires proof before marking work complete — no "trust me, it works"
Executes GSD plans with atomic commits, deviation handling, checkpoint protocols, and state management
| name | Context Health Monitor |
| description | Monitors context complexity and triggers state dumps before quality degrades |
Prevent "Context Rot" — the quality degradation that occurs as the agent processes more information in a single session.
The agent should self-monitor for these warning signs:
| Signal | Threshold | Action |
|---|---|---|
| Repeated debugging | 3+ failed attempts | Trigger state dump |
| Going in circles | Same approach tried twice | Stop and reassess |
| Confusion indicators | "I'm not sure", backtracking | Document uncertainty |
| Session length | Extended back-and-forth | Recommend /pause |
If debugging the same issue fails 3 times:
.gsd/STATE.md:
If the same approach is being tried again:
/pause for fresh perspectiveWhen uncertain about an approach:
.gsd/DECISIONS.md:
When triggered, write to .gsd/STATE.md:
## Context Health: State Dump
**Triggered**: [date/time] **Reason**: [3 failures / circular / uncertainty]
### What Was Attempted
1. [Approach 1] — Result: [outcome]
2. [Approach 2] — Result: [outcome]
3. [Approach 3] — Result: [outcome]
### Current Hypothesis
[Best guess at root cause]
### Recommended Next Steps
1. [Fresh perspective action]
2. [Alternative approach to try]
### Files Involved
- [file1.ext] — [what state it's in]
- [file2.ext] — [what state it's in]
Critical: When any warning signal triggers, the agent must save state BEFORE
recommending /pause to the user. This ensures state persists even if the
session hard-terminates.
.gsd/STATE.md immediately when a threshold is
hit/pauseSessions can terminate abruptly (usage limits, context limits, network errors).
If the agent waits for the user to type /pause, it may never get the chance.
By saving first and recommending second, state is always preserved.
This skill integrates with:
/pause — Triggers proper session handoff (includes proactive auto-save)/resume — Loads the state dump contextGEMINI.md — Context Hygiene enforcement