BF token-optimizer
Reduce LLM API token consumption by 20-35% through pre-send estimation, memory extraction, and context compression.
As a process F 35/100 · Will not run — References files that are not bundled: references/token-formula.md, memory/topic-name.md, references/memory-extraction-pattern.md
IntegrationAI and agentsInfrastructuretype and topics are labelled automatically from the skill text
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- The text references files that are not there: add them or drop the references.
For the model run — optional
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 0
✓ No critical or high findings
Files scanned: 2. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
- warning
description-no-whendescription does not say WHEN to use the skill (no "use when") - warning
missing-refreference to a missing file: references/token-formula.md - warning
missing-refreference to a missing file: memory/topic-name.md - warning
missing-refreference to a missing file: references/memory-extraction-pattern.md
Process rating: all ten parameters 35/100
Will not run. References files that are not bundled: references/token-formula.md, memory/topic-name.md, references/memory-extraction-pattern.md
- 0Tools and files. 3 referenced file(s) missing: references/token-formula.md, memory/topic-name.md, references/memory-extraction-pattern.md
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 6 mutating operations with no state check
- 40Consistency. Frontmatter name (token-optimizer) differs from the folder (claude-code-api-optimizer-skill)
- 55Failures and branches. 1 branches
- 100Steps. 45 steps
- 100Execution cost. Instruction body is 1778 tokens
- 100Progress reporting. Reports progress
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +5Description has no quoted example phrases that should trigger the skill
- +4Description does not say when NOT to use the skill (false activations)
- +3Description length 115: 120–800 characters recommended
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +4Structure: 14 headings
- +3Step-by-step instructions: 45 items
- +4Has examples (4 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 57.
External checks
ClawHub: clean
This instruction-only token optimizer is coherent and low-risk, but users should understand that it may save selected conversation facts into local memory files.
LLM: benign (high) · VirusTotal: · 29 May 2026