AgentSkillsCN

context-status

查看当前会话中剩余的上下文窗口大小。在希望了解Token预算、上下文使用情况,或预估距离下一次压缩还有多少空间时使用此功能。在处理长期任务时,也可主动使用此功能,以及时把握剩余容量。

SKILL.md
--- frontmatter
name: context-status
description: Check how much context window remains in this session. Use when you want to know token budget, context usage, or how much room is left before compaction. Also use proactively when working on long tasks to gauge remaining capacity.
allowed-tools: Bash

Context Status

Run this to check your remaining context window budget:

bash
~/.claude/scripts/context-usage.sh "${CLAUDE_PROJECT_DIR:-$PWD}"

Report the result to the user in plain language, e.g.:

"About 98k tokens remaining (50% of the 200k window)."

If the remaining percentage is below 20%, mention that compaction is approaching and suggest wrapping up or prioritizing remaining work.