Agent Skills
› mksglu/context-mode
› ctx-stats
ctx-stats
GitHub展示当前会话中 context-mode 节省的上下文窗口数据,包括 token 消耗、节省比例及按工具分解。只读功能,用于查看统计信息,不可重置知识库。
触发场景
/context-mode:ctx-stats
安装
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.
版本历史
- 6aad62f 当前 2026-07-24 17:38


