mpecan/tokf/tokf-discover
Claude Code and agent skill by mpecan/tokf
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Find missed token savings in Claude Code sessions and create filters for unfiltered commands
Install
npx vskill@latest install mpecan/tokf/tokf-discoverSKILL.md
tokf discover — Find Missed Token Savings
Use this skill to analyze Claude Code sessions and find commands that are running without tokf filtering, wasting tokens on verbose output.
Quick Start
Run tokf discover in the project directory to scan recent sessions:
Options
--all— scan all projects, not just the current one--since 7d— only scan sessions from the last 7 days (also24h,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 path
Interpreting Results
The output shows:
- COMMAND — the shell command pattern being run without filtering
- FILTER — the tokf filter that would handle it
- RUNS — how many times it appeared in sessions
- TOKENS — estimated token count of unfiltered output
- SAVINGS — estimated tokens that filtering would save
Workflow
- Run
tokf discoverto identify top savings opportunities - For commands with existing filters: run
tokf hook installto set up automatic filtering - For commands without filters: use
/tokf-filterskill to create a custom filter - Re-run
tokf discoverafter changes to verify improvement
Creating Filters for Unfiltered Commands
If tokf discover shows commands with no matching filter, create one:
JSON Output
Use --json for integration with other tools:
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
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcrates/tokf-cli/skills/tokf-discover/SKILL.md
Popularity
- Repository stars
- 175
- Repository forks
- 19
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 24 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mpecan/tokf/tokf-discover)