BF skill-to-http-flash
把单个 Skill 编译成独立 HTTP REST API 微服务(v2.0 subprocess 直执行)。当用户说「skill 暴露成 HTTP 接口」「flash 一个 skill」「skill 起 API 服务」「skill 输入输出结构化」「standalone 跑 skill」 「skill-to-http-flash」时使用。JSON → Python 入口 → 统一 envelope(success/exit_code/data|output/stderr)。 毫秒冷启,运行期不依赖 Gateway/LLM,多 agent runtime 通用(OpenClaw/Claude Code/Cursor)。默认 HTTP,按需 HTTPS。
把单个 Skill 编译成独立 HTTP REST API 微服务(v2.0 subprocess 直执行)。当用户说「skill 暴露成 HTTP 接口」「flash 一个 skill」「skill 起 API 服务」「skill 输入输出结构化」「standalone 跑 skill」…
As a process F 38/100 · Will not run — References files that are not bundled: scripts/<skill-name>.py, scripts/cli.py, scripts/main.py
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.
- 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 · 2
✓ No critical or high findings
Medium and low: 2
-
low Dangerous commands
cmd-background-processscripts/flash.py:753Starts a background / autostarted process (string literal in code, not executed)nohup python3 server.py start > "$DATA_DIR/logs/{skill_name}.log" 2>&1 &code literal -
low Dangerous commands
cmd-background-processscripts/flash.py:1105Starts a background / autostarted process (string literal in code, not executed)print(f" sudo systemctl enable {skill_name}-api")code literal
Files scanned: 9. 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: scripts/<skill-name>.py - warning
missing-refreference to a missing file: scripts/cli.py - warning
missing-refreference to a missing file: scripts/main.py - warning
missing-refreference to a missing file: scripts/run.py
Process rating: all ten parameters 38/100
- 0Tools and files. 4 referenced file(s) missing: scripts/<skill-name>.py, scripts/cli.py, scripts/main.py
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 0Progress reporting. Says nothing while it works
- 20When it triggers. No condition that starts the skill
- 30Running it twice. 5 mutating operations with no state check
- 50Failures and branches. 0 branches, has a failure section
- 100Steps. 40 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 2826 tokens
- low 20 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (7 tags): a typed call is more reliable
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)
- +3Output format is not stated: the model decides each time
- -2localhost URLs: will not work for another user
- -31 of 3 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +3Description length 330: enough signal without eating the budget
- +4Structure: 26 headings
- +3Step-by-step instructions: 40 items
- +4Has examples (12 code blocks)
- +4Reference files are cited in the instructions (2 of 2)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 59.