Agent Skillsmksglu/context-mode › ctx-stats

ctx-stats

GitHub

展示当前会话上下文模式节省的 token 消耗、节省比例及工具明细。通过调用 MCP 工具获取数据,原样输出完整结果并高亮关键节省指标,用于监控上下文窗口使用情况。

skills/ctx-stats/SKILL.md mksglu/context-mode

Trigger Scenarios

/context-mode:ctx-stats

Install

npx skills add mksglu/context-mode --skill ctx-stats -g -y
More Options

Use without installing

npx skills use mksglu/context-mode@ctx-stats

指定 Agent (Claude Code)

npx skills add mksglu/context-mode --skill ctx-stats -a claude-code -g -y

安装 repo 全部 skill

npx skills add mksglu/context-mode --all -g -y

预览 repo 内 skill

npx skills add mksglu/context-mode --list

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

  1. Call the mcp__context-mode__ctx_stats MCP tool (no parameters needed).
  2. 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.
  3. 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-purge for this.

Version History

  • 6aad62f Current 2026-07-24 17:38

Same Skill Collection

configs/antigravity-cli/skills/context-mode/SKILL.md
configs/copilot-cli/skills/context-mode/SKILL.md
skills/ctx-doctor/SKILL.md
skills/ctx-index/SKILL.md
skills/ctx-insight/SKILL.md
skills/ctx-purge/SKILL.md
skills/ctx-search/SKILL.md
skills/ctx-upgrade/SKILL.md
.claude/skills/context-mode-ops/SKILL.md
skills/context-mode/SKILL.md

Metadata

Files
0
Version
4d44f87
Hash
3babe498
Indexed
2026-07-24 17:38

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 21:39
浙ICP备14020137号-1 $Map of visitor$