BF token-optimizer
智能模型路由 - 根据任务是否需要工具调用自动选择模型。需要工具(搜索/浏览器/文件/天气/股票等)使用百炼付费模型,纯聊天使用OpenRouter免费模型。V3.1.0新增route_by_tool_required()函数。
As a process F 50/100 · Will not run — References files that are not bundled: assets/cronjob-model-guide.md, references/PROVIDERS.md, assets/config-patches.json
How to improve
- Say in the description WHEN to use the skill ("use when…", example requests): that is the agent's main cue.
- The SKILL.md body is over 5,000 tokens: move reference detail into references/ and load it when needed.
- The text references files that are not there: add them or drop the references.
- 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 · 1
✓ No critical or high findings
Medium and low: 1
✓ Guard found no suspicious behaviour. 1 matches are attack strings quoted in this security skill's own documentation.
Files scanned: 11. 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
body-longSKILL.md body ≈ 5054 tokens (recommended < 5000); move details to references/ - warning
missing-refreference to a missing file: assets/cronjob-model-guide.md - warning
missing-refreference to a missing file: references/PROVIDERS.md - warning
missing-refreference to a missing file: assets/config-patches.json - note
frontmatter-keyunknown frontmatter key "homepage" - note
frontmatter-keyunknown frontmatter key "source" - note
frontmatter-keyunknown frontmatter key "security"
Process rating: all ten parameters 50/100
- 0Tools and files. 3 referenced file(s) missing: assets/cronjob-model-guide.md, references/PROVIDERS.md, assets/config-patches.json
- 0Inputs and preconditions. Does not say what the process needs to start
- 30Running it twice. 7 mutating operations with no state check
- 40Consistency. Frontmatter name (token-optimizer) differs from the folder (cmz-token-optimizer)
- 50When it triggers. No condition that starts the skill
- 60Result and completion. Output format stated, no completion criterion
- 70Execution cost. Instruction body is 5054 tokens
- 100Steps. 86 steps
- 100Failures and branches. 1 branches, has a failure section
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 13 top-level sections: this looks like several domains in one skill
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 114: 120–800 characters recommended
- -31 of 5 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +4Structure: 36 headings
- +3Step-by-step instructions: 86 items
- +3Output format is stated explicitly
- +4Has examples (34 code blocks)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 44.