AI & agents · Analysis
context-status
/context-status
显示当前上下文状态与会话健康状况。用于查看上下文用量/检查会话状态,判断自动压缩是否临近,以及哪些状态已被确认保留。
For whom
- Author
- Sellyew ↗
- Repository
- Workbuddy-workflow ↗
- Licence
- MIT
- Last repository change
- 10.11.2026
Assessment and security
96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
显示当前上下文状态与会话健康状况。用于查看上下文用量/检查会话状态,判断自动压缩是否临近,以及哪些状态已被确认保留。
Original author description
显示当前上下文状态与会话健康状况。用于查看上下文用量/检查会话状态,判断自动压缩是否临近,以及哪些状态已被确认保留。
How it works
- 本技能显示什么
- 工作流
- 说明
Original SKILL.md headings · 69 lines, 169 words
SKILL.md preview
---
name: context-status
description: 显示当前上下文状态与会话健康状况。用于查看上下文用量/检查会话状态,判断自动压缩是否临近,以及哪些状态已被确认保留。
description_zh: 显示当前上下文状态与会话健康状况。用于查看上下文用量/检查会话状态,判断自动压缩是否临近,以及哪些状态已被确认保留。
allowed-tools: ["Read", "Bash", "Glob"]
metadata:
author: Claude Code Academic Workflow
version: 1.0.0
---
# /context-status —— 检查会话健康状况
本技能汇总当前会话状态,包括上下文用量估计、生效中的计划和保留下来的状态。
**只读诊断:**本技能只读取状态,不修改任何文件。
## 本技能显示什么
1. **上下文用量估计**:上下文窗口大约已使用多少
2. **在用计划**:当前计划文件及其状态
3. **会话日志**:最近的会话日志
4. **保留状态**:哪些内容能在压缩后继续保留
## 工作流
### 第 1 步:查看上下文估计值
上下文监视钩子把估计值写入本项目会话目录下的 `context-pct.txt`,并把计数器与阈值旗标写入 `context-monitor-cache.json`:
```bash
d=~/.workbuddy/sessions/$(printf '%s' "${CODEBUDDY_PROJECT_DIR:-$PWD}" | python -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
```
### 第 2 步:找在用计划
```bash
ls -lt quality_reports/plans/*.md 2>/dev/null | head -3
```
### 第 3 步:找会话日志
```bash
ls -lt quality_reports/session_logs/*.md 2>/dev/null | head -1
```
### 第 4 步:报告状态
实际读取并确认 PreCompact 钩子与压缩后恢复配置是否存在,不能仅凭文档或命令名称推断。只有两者都确认存在时,才能输出「已配置压缩前保存与压缩后恢复;执行是否成功仍需实际核验」;组件存在只说明已配置保存/恢复,不代表执行必然成功。任一缺失或无法确认时,必须明确输出「Session state preservation is NOT guaranteed」,并指出未确认的组件。
按下面的格式输出:
```
📊 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: [confirmed present | missing/unconfirmed]
• Post-compact restore: [confirmed present | missing/unconfirmed]
• Session state: [已配置保存/恢复;执行是否成功仍需实际核验 | preservation is NOT guaranteed]
```
## 说明
- 上下文百分比取自 WorkBuddy 自己的 `context_window.used_percentage`(状态行显示它的地方)。钩子的 `context-pct.txt` 保存的是按转录文本大小估算的值,必要时退化为工具调用次数计数。内建的 `/context` 显示精确用量
- WorkBuddy 自动触发实际压缩
- 计划、日志和 MEMORY.md 等文件若已实际存在,会保存在磁盘上;这不证明 PreCompact 与恢复机制会保存当前会话状态,必须按第 4 步分别确认
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Sellyew/Workbuddy-workflow | 96 | MIT |
| pedrohcgs/claude-code-my-workflow | 100 | MIT |
Database snapshot: 13.11.2026 · package version 32cf97c0843e (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100session-health
Check your current session's health — real context usage from JSONL token data, compaction proximity, session weight, and rate limit status. Use when asking about session size, compaction, context window, rate limits, "how big is my session", "how close to compaction", or "should I checkpoint". - 100context-report
Analyze Claude Code context efficiency. Use when evaluating session token usage. - 100context-optimization
Apply compaction, masking, and caching strategies to optimize context windows. Use when reducing token usage or improving LLM context efficiency. - 96xploit-status
Displays real-time operational status, active profile verification, rule health, and loaded capabilities of the Xploit Core Suite. Triggers on /xploit-status, /profile, status check, verify profile. - 100compress
Use when the user says 'tokenstack', 'compression', 'token savings', 'proxy status', or asks about context window usage. - 90live
Use when the user asks about running sessions, agent status, what needs attention — e.g. 'what's running', 'live status', 'which sessions need me', 'agent status', 'check on my agents', 'are my sessions done', 'anything stuck