Context Status
Show current context status and session health.
Install
npx skills add pedrohcgs/claude-code-my-workflow --skill context-status -g -a claude-code -y- Repository
- pedrohcgs/claude-code-my-workflow1.7k
- Category
- Engineering
- Updated
- 1mo ago
- License
- MIT
- Context cost
- Lightabout 521 tokens
- Runs scripts
- No, instructions only
What it does
Show current context status and session health. Use to check how much context has been used, whether auto-compact is approaching, and what state will be preserved.
/context-status, Check Session Health
Show the current session status including context usage estimate, active plan, and preservation state.
What This Skill Shows
- Context usage estimate, Approximate % of context window used
- Active plan, Current plan file and status
- Session log, Most recent session log
- Preservation state, What will survive compaction
Workflow
Step 1: Check the Context Estimate
The context-monitor hook writes its estimate to context-pct.txt (and its counters and threshold flags to context-monitor-cache.json) in this project's session directory:
d=~/.claude/sessions/$(printf '%s' "${CLAUDE_PROJECT_DIR:-$PWD}" | python3 -c 'import sys,hashlib;print(hashlib.md5(sys.stdin.read().encode()).hexdigest()[:8])')
cat "$d/context-pct.txt" 2>/dev/null; cat "$d/context-monitor-cache.json" 2>/dev/null | head -20
Step 2: Find Active Plan
ls -lt quality_reports/plans/*.md 2>/dev/null | head -3
Step 3: Find Session Log
ls -lt quality_reports/session_logs/*.md 2>/dev/null | head -1
Step 4: Report Status
Format the output:
š Session Status
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Context Usage: ~XX% (estimated)
Auto-compact: [approaching | not imminent]
š Active Plan
File: quality_reports/plans/YYYY-MM-DD_description.md
Status: [draft | approved | in_progress | completed]
Task: [current unchecked task or "none"]
š Session Log
File: quality_reports/session_logs/YYYY-MM-DD_description.md
ā Preservation Check
⢠Pre-compact hook: [configured | missing]
⢠Post-compact restore: [configured | missing]
⢠Session state will be saved before compaction
