Agent Skills
› mksglu/context-mode
› ctx-stats
ctx-stats
GitHub展示当前会话的上下文窗口节省情况,包括Token消耗、节省比例及工具明细。通过调用MCP工具获取数据并完整输出,辅助用户了解上下文模式的效果。
Trigger Scenarios
/context-mode:ctx-stats
Install
npx skills add mksglu/context-mode --skill ctx-stats -g -y
SKILL.md
Frontmatter
{
"name": "ctx-stats",
"description": "Show how much context window context-mode saved this session.\nDisplays token consumption, context savings ratio, and per-tool breakdown.\nRead-only — shows stats only, no reset capability.\nTo wipe the knowledge base entirely, use ctx_purge instead.\nTrigger: \/context-mode:ctx-stats\n",
"user-invocable": true
}
Context Mode Stats
Show context savings for the current session.
Instructions
- Call the
mcp__context-mode__ctx_statsMCP tool (no parameters needed). - CRITICAL: You MUST copy-paste the ENTIRE tool output as markdown text directly into your response message. Do NOT summarize, do NOT collapse, do NOT paraphrase. The user must see the full tables without pressing ctrl+o. Copy every line exactly as returned by the tool.
- After the full output, add ONE sentence highlighting the key savings metric, e.g.:
- "context-mode saved 12.4x — 92% of data stayed in sandbox."
- If no data yet: "No context-mode calls yet this session."
Purge
ctx_purge(confirm: true)— Permanently deletes all indexed content from the knowledge base. Use/context-mode:ctx-purgefor this.
Version History
- 6aad62f Current 2026-07-24 17:38


