用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mpecan/tokf --skill tokf-discover命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | tokf-discover |
| description | Find missed token savings in Claude Code sessions and create filters for unfiltered commands |
| user_invocable | true |
Use this skill to analyze Claude Code sessions and find commands that are running without tokf filtering, wasting tokens on verbose output.
Run tokf discover in the project directory to scan recent sessions:
tokf discover
--all — scan all projects, not just the current one--since 7d — only scan sessions from the last 7 days (also 24h, 30m)--limit 0 — show all results (default: top 20)--json — output as JSON for programmatic use--session <path> — scan a specific session file--project <path> — scan sessions for a specific project pathThe output shows:
tokf discover to identify top savings opportunitiestokf hook install to set up automatic filtering/tokf-filter skill to create a custom filtertokf discover after changes to verify improvementIf tokf discover shows commands with no matching filter, create one:
# See what a filter would look like
tokf which "the-command --args"
# Use the tokf-filter skill to create a proper filter
# /tokf-filter
Use --json for integration with other tools:
tokf discover --json | jq '.results[] | select(.estimated_savings > 1000)'
The JSON schema includes:
sessions_scanned — number of JSONL files processedtotal_commands — all Bash commands foundalready_filtered — commands already using tokffilterable_commands — commands with available filtersno_filter_commands — commands with no matching filterestimated_total_savings — total estimated token savingsresults[] — per-command breakdown sorted by savings