Borrowing it
Nothing to install: this file belongs to guoqingbao/xinfer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/guoqingbao/xinfer/main/.cursor/skills/test-model/SKILL.mdgit clone --depth 1 https://github.com/guoqingbao/xinferWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/guoqingbao/xinfer/test-model)<a href="https://agentmods.dev/skills/guoqingbao/xinfer/test-model"><img src="https://agentmods.dev/badge/skills/guoqingbao/xinfer/test-model.svg" alt="Measured on agentmods" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00093 | $0.02985 |
| Opus 5 | $0.00046 | $0.01492 |
| Sonnet 5 | $0.00019 | $0.00597 |
| Haiku 4.5 | $0.00009 | $0.00298 |
Grade A, and why
test-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Model — Validate and Benchmark LLM Models on xinfer
Phase 0: Gather Model List
Collect the models to test. The user provides one or both of:
| Input | Format | Example |
|---|---|---|
| Local folder | Absolute path to a directory containing model weights | /data/models or /data/Qwen3.5-27B-FP8 |
| HuggingFace IDs | Comma-separated model IDs | AxionML/Qwen3.5-2B-NVFP4, Qwen/Qwen3-4B |
Detecting models in a local folder
If the user provides a parent directory (not a single model), scan it to find testable models:
# List subdirectories that look like model folders
for d in /data/*/; do
if [ -f "$d/config.json" ] || ls "$d"/*.gguf 2>/dev/null | head -1 >/dev/null; then
echo "$d"
fi
done
For each candidate directory, determine the model type by reading config.json:
import json, os, sys, glob
def detect_model(path):
"""Detect model type and quantization from a local directory."""
config_path = os.path.join(path, "config.json")
gguf_files = glob.glob(os.path.join(path, "*.gguf"))
info = {"path": path, "name": os.path.basename(path.rstrip("/"))}
if gguf_files:
info["format"] = "gguf"
info["gguf_file"] = os.path.basename(gguf_files[0])
return info
if not os.path.exists(config_path):
return None
cfg = json.load(open(config_path))
arch = (cfg.get("architectures") or ["Unknown"])[0]
supported = [
"LlamaForCausalLM", "MistralForCausalLM", "Ministral3ForConditionalGeneration",
"Qwen2ForCausalLM", "Qwen3ForCausalLM", "Qwen3MoeForCausalLM",
"Qwen3_5ForCausalLM", "Qwen3_5MoeForCausalLM",
"Qwen3_5ForConditionalGeneration", "Qwen3_5MoeForConditionalGeneration",
"Qwen3NextForCausalLM",
"Qwen3VLForConditionalGeneration",
"Gemma3ForConditionalGeneration", "Gemma3ForCausalLM",
"Gemma4ForCausalLM", "Gemma4ForConditionalGeneration",
"Phi3ForCausalLM", "Phi4ForCausalLM",
"Glm4ForCausalLM", "Glm4MoeForCausalLM",
]
if arch not in supported:
info["skip"] = f"Unsupported architecture: {arch}"
return info
info["arch"] = arch
info["format"] = "safetensors"
qcfg = cfg.get("quantization_config", {})
qm = qcfg.get("quant_method", "")
if qm in ("fp8", "modelopt", "compressed-tensors"):
algo = qcfg.get("quant_algo", "")
fmt = qcfg.get("format", "")
if algo and ("nvfp4" in algo.lower() or "fp4" in algo.lower()):
info["quant"] = "nvfp4"
elif "nvfp4" in fmt.lower():
info["quant"] = "nvfp4"
elif "mxfp4" in fmt.lower():
info["quant"] = "mxfp4"
elif qm == "fp8":
info["quant"] = "fp8"
else:
info["quant"] = qm
elif qm in ("gptq", "awq"):
info["quant"] = qm
elif qm == "mxfp4":
info["quant"] = "mxfp4"
else:
info["quant"] = "bf16"
return info
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 8d ago First seen · 299 lines · 93 tokens per session scan A b62e2d8bff42
test-model is a skill published in the GitHub repository guoqingbao/xinfer (316 stars, last pushed today), licensed MIT. It adds 93 tokens to every session and 2,985 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
tool-abuse-detection
Detect tool misuse and unexpected code execution via dialogue testing. Use when the agent exposes file, code-execution, or network tools.
vllm-test-generator
A test-writing guide for vLLM, an open-source system for running large language models. It helps create unit, integration, and end-to-end tests that match the project’s existing style.
review
Review code changes, pull requests, patches, or a scoped code area for actionable correctness, security, compatibility, and test risks with file and line evidence. Use for review or audit requests; do not use for general proofreading, feature implementation, or debugging a reported failure when the user wants a fix.
debug
Diagnose a concrete failure, regression, crash, hang, flaky test, or incorrect runtime behavior by reproducing it, testing hypotheses, and identifying the evidence-backed root cause. Use when symptoms or failing output exist; do not use for feature implementation without a failure, general code review, or a conceptual…
hello-world
Minimal reference skill bundled with the hello-plugin example. Use when demonstrating or testing the plugin system's in-place skill discovery.
fetch-llm-papers
Workflow for updating the LLM landscape paper pool (section/xllmpapers.md) using fetchllmpapers.py. Covers full re-fetch, resume from checkpoint, and adding new topics. USE FOR: Refreshing citation counts, expanding topic coverage. DO NOT USE FOR: Adding hand-curated entries to section files (use…