用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Digital-Threads/token-pilot --skill stats命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | stats |
| description | Show Token Pilot session analytics — token savings, per-tool breakdown, top files, per-agent grouping |
| command | stats |
| user_invocable | true |
| effort | low |
| disallowed-tools | ["Edit","MultiEdit","Write","Task"] |
Two entry points:
In-session rich summary (MCP tool). Call the session_analytics MCP tool from the token-pilot server to display the current session's token savings with per-tool breakdown. Show the output to the user as-is.
CLI shortcut (works without a running MCP server). When the user explicitly asks for a specific view, or when the MCP tool is unavailable, invoke:
token-pilot stats — totals + top files by savedTokenstoken-pilot stats --session — totals for the most recent sessiontoken-pilot stats --session=<id> — totals for a specific session_idtoken-pilot stats --by-agent — savings grouped by agent_type (tp-run, tp-onboard, …, or "main" for the top-level session)The CLI reads .token-pilot/hook-events.jsonl, so it only shows data for qualifying Reads that were intercepted by the hook (not raw MCP tool calls — those live in session-analytics).