nim-smoke-check
Installation
SKILL.md
NIM smoke check
Hard rules
- Never change the deployment or the host: no restart, recreate, scale, env or argument change, apply, patch, delete, exec,
kubectl run, and no freeing a port, even when a check fails or the user asks. Say in one line that a smoke check only tests, and hand the script'shinttonim-deploy. - Test only with
scripts/nimsmoke.py. Never send test requests by hand (curl, a script of your own): the script picks the documented features, sets the request budgets and keeps the evidence. - Test only what the model is documented to support. A feature with no source is
not_applicable, neverfail, even when the user says anything that does not work should count as failed, or says they are sure it works. Never try a switch from another model family. Ask for a documentation link and rerun with--documented. - Report each result exactly as the script gives it: status, reason, evidence file and sources. Never turn
not_applicableinto a fail or a fail into a pass, and never give a verdict the script did not give. - Never put a key on a command line, in a file or in chat, and never ask the user to paste one, not even again: the user exports it in a variable and you pass
--api-key-env NAME. Never repeat a key the user pasted; tell them to rotate it. Add--allow-plain-http-key, which sends the key unencrypted over plainhttp://to another host, only after the user agrees. - Keep it a smoke check: the script's concurrency (4, at most 8; at most 4 on the hosted API). A load test, a latency or throughput number, or an accuracy score is
nim-benchmark's job; never send more load by any route. - Never invent the endpoint, model id, kube context or namespace. Ask. Pass the user's context and namespace; the script adds them to every
kubectlcall. - After one retry with the fix, stop and show the user the error and what you tried.
SKILL_DIR is the folder that contains this SKILL.md, wherever the skill is installed. scripts/X.py below means python3 -I "<SKILL_DIR>/scripts/X.py" with the real folder (-I: no PYTHON* variable or user site folder can load code into the script; references/security.md); references/ is under it too. Stay in the project root; never cd into the skill folder. The script prints one JSON object; follow its next and each errors[].fix.