/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: Context usage
There is no on-disk estimate. Claude Code's built-in /context shows actual usage; tell the user to run it for the number.
Step 2: Find Active Plan
Search common plan locations:
ls -lt quality_reports/plans/*.md .planning/*.md plans/*.md 2>/dev/null | head -3
Step 3: Find Session Log
ls -lt quality_reports/session_logs/*.md .planning/logs/*.md 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: [plan path]
Status: [draft | approved | in_progress | completed]
Task: [current unchecked task or "none"]
Session Log
File: [log path]
Preservation Check
- Pre-compact hook: [configured | missing]
- Post-compact restore: [configured | missing]
- Session state will be saved before compaction
Notes
- Context usage comes from
/context - Actual compaction is triggered by Claude Code automatically
- All important state is saved to disk (plans, logs, MEMORY.md)
Scan to join WeChat group