Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add oaustegard/claude-skills --skill hallucinating-labelsgit clone --depth 1 https://github.com/oaustegard/claude-skillsWrote 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/oaustegard/claude-skills/hallucinating-labels)<a href="https://agentmods.dev/skills/oaustegard/claude-skills/hallucinating-labels"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/hallucinating-labels/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/oaustegard/claude-skills/hallucinating-labels"><img src="https://agentmods.dev/badge/skills/oaustegard/claude-skills/hallucinating-labels.svg" alt="Reviewed on agentmods" width="80" 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.00186 | $0.02962 |
| Opus 5.5 | $0.00074 | $0.01185 |
| Sonnet 5.5 | $0.00037 | $0.00592 |
| Haiku 4.5 | $0.00019 | $0.00296 |
Grade A, and why
hallucinating-labels 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 2mo 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 — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
hallucinating-labels
Ask a cheap model to write a plausible label for the item. Snap that label onto the real vocabulary with an embedder. The model never sees the label set.
Doug Turnbull's pattern (softwaredoug.com, 2026-08-10), with the two prompt and boundary corrections that measurement produced.
Check the boundary first
If the whole vocabulary fits in a prompt, do not use this skill. Ship the label list and ask for a constrained choice. Measured on WANDS (860 labels, 468 queries, one gold label each, gemini-3.5-flash-lite):
| approach | acc@1 | acc@3 | input tokens/item |
|---|---|---|---|
| structured output, all 860 labels shipped | 0.701 | 0.744 | 5,265 |
| this skill | 0.564 | 0.690 | 6 |
| embed the item directly, no model | 0.417 | 0.564 | 0 |
Shipping the vocabulary is 14 points more accurate and 880× more expensive. Take the accuracy unless the tokens are the problem. The tokens are the problem when the vocabulary does not fit, when a provider enum cap rejects it, or when per-call cost at volume dominates — a 5,000-label vocabulary is roughly 30k tokens on every single call.
This skill still beats every model-free baseline by a wide margin, so it is the right tool whenever shipping the vocabulary is off the table.
Procedure
1. Write the vocabulary to a file, one label per line, and index it once.
python3 scripts/snap.py build --vocab categories.txt --out .snap-index.pkl
Default backend is tfidf — sklearn only, no download. Pass --backend minilm when
sentence-transformers and a ~90 MB download are available and the items share no wording
with the labels; it scored 0.564 to tfidf's 0.528 on WANDS. Where items literally contain
their own label words, tfidf wins outright (0.416 vs 0.356 on a memory-tag corpus).
2. Write the labels yourself, in batches of 40, using the register prompt below. Write them to a file, one per line, in the same order as the items.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago First seen · 217 lines · 186 tokens per session scan A 504f0a4c678e
hallucinating-labels is a skill published in the GitHub repository oaustegard/claude-skills (423 stars, last pushed today), licensed MIT. It adds 186 tokens to every session and 2,962 once invoked, about $0.0007 per session on Opus 5.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-09-03.
hallucinating-labels compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hallucinating-labelsoaustegard/claude-skills | Skill | 423 | today | MIT | A | 186 | Claude Code, Codex |
| recsys-pipeline-architectmturac/recsys-pipeline-architect | Skill | 2 | 6mo ago | none | A | 166 | Claude Code, Codex |
| prompt-engineeringkongyo2/prompt-engineering-skill | Skill | 3 | 1y ago | none | A | 60 | Claude Code, Codex |
| optimize-for-gpuK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 151 | Claude Code, Codex |
| umap-learnK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 52 | Claude Code, Codex |
| shapK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 46 | Claude Code |
| arboretoK-Dense-AI/scientific-agent-skills | Skill | 59k | yesterday | MIT | A | 55 | Claude Code, Codex |