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 moonlight-lupin/agent-skills --skill skill-retrievalgit clone --depth 1 https://github.com/moonlight-lupin/agent-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/moonlight-lupin/agent-skills/skill-retrieval)<a href="https://agentmods.dev/skills/moonlight-lupin/agent-skills/skill-retrieval"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/skill-retrieval/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/moonlight-lupin/agent-skills/skill-retrieval"><img src="https://agentmods.dev/badge/skills/moonlight-lupin/agent-skills/skill-retrieval.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.00081 | $0.02882 |
| Opus 5.5 | $0.00032 | $0.01153 |
| Sonnet 5.5 | $0.00016 | $0.00576 |
| Haiku 4.5 | $0.00008 | $0.00288 |
Grade A, and why
skill-retrieval 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 — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill Retrieval
This is a Hermes Agent plugin. It is not a Claude Code plugin and will
not load in Claude Code — that runtime has no pre_llm_call event, no Python
register() entry point, and reads .claude-plugin/plugin.json rather than
plugin.yaml. Requires Hermes Agent >=0.21.1 (requires_hermes in
plugin.yaml).
BM25-based progressive disclosure for Hermes Agent skills. Instead of dumping every skill description into the system prompt (~11.5K tokens), this plugin keeps a compact names-only index and injects only the top-K relevant descriptions per turn.
What it does
Two-phase progressive disclosure:
-
Phase 1 — System prompt compaction (an
llm_requestmiddleware): Rewrites the outgoing request's<available_skills>block so it lists skill names only (descriptions stripped). All skills remain discoverable by name (~2K tokens instead of ~11.5K). The system prompt Hermes builds is never modified — prompt caching is unaffected. -
Phase 2 — Per-turn BM25 retrieval (
pre_llm_callhook): Tokenizes the user message, ranks active skill descriptions with BM25 Okapi, and injects the top-K matches (~300 tokens) as context appended after the user message.
Architecture
Each turn (llm_request middleware)
│
▼
Phase 1: rewrite <available_skills> → names only (~2K tokens, request only)
Each turn (pre_llm_call)
│
▼
Phase 2: BM25Index.retrieve(user_message, top_k)
└── inject "## Retrieved Skills ..." into user message (~300 tokens)
The BM25 index is built lazily on the first turn from standalone skills
(~/.hermes/skills) and plugin-bundled skills (~/.hermes/plugins/*/skills),
then cached per Hermes home, tool capability snapshot, session platform and
resolved disabled-skill set (the same inputs Hermes keys its own skills prompt
cache on). The cache is rebuilt without a restart when Hermes clears its skills
prompt cache (skill_manage create/patch/delete, hub install, skill toggles)
or when a cheap on-disk manifest changes (skill root and category dir mtimes,
top-level SKILL.md files, config.yaml).
Retrieval uses a pure-stdlib inverted index (term → posting list of
precomputed BM25 weights) and is sub-millisecond for ~200 skills.
What ships with it
30 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.
- __init__.py 23 KB runs code
- LICENSE 2.4 KB
- plugin.yaml 495 B
- README.md 8.2 KB
- requirements-dev.txt 78 B
- requirements.txt 12 B
- scripts/__init__.py 98 B runs code
- scripts/bm25_retriever.py 52 KB runs code
- scripts/jev_rerank.py 21 KB runs code
- scripts/rerank_ab_report.py 4.6 KB runs code
- tests/conftest.py 1.6 KB runs code
- tests/test_bm25_retriever.py 18 KB runs code
- tests/test_cjk_tokenization.py 6.8 KB runs code
- tests/test_index_cache.py 9.3 KB runs code
- tests/test_issue14_should_show_arity.py 6.3 KB runs code
- tests/test_issue8_round2.py 14 KB runs code
- tests/test_issue8_round3.py 16 KB runs code
- tests/test_jev_environ.py 4.2 KB runs code
- tests/test_jev_provider.py 4.4 KB runs code
- tests/test_jev_rerank.py 27 KB runs code
- tests/test_midscan_fallback.py 2.8 KB runs code
- tests/test_module_identity.py 889 B runs code
- tests/test_profile_home_switch.py 4.3 KB runs code
- tests/test_public_surfaces.py 5.8 KB runs code
- tests/test_refactor_contract.py 2.4 KB runs code
- tests/test_regressions.py 24 KB runs code
- tests/test_rerank_hook_wire.py 2.6 KB runs code
- tests/test_round3_fixes.py 15 KB runs code
- tests/test_round4_fixes.py 9.6 KB runs code
- tests/test_stdlib_parity.py 12 KB runs code
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 Changed · +13 lines fed0b466aa74
- 12d ago Changed efc06a840f8a
- 22d ago Changed · +12 lines 5a46a8c0355c
- 23d ago Changed · +20 lines f40f880186ca
- 29d ago Changed · +25 lines ad10bbfa3875
- 1mo ago Changed · +2 lines 0b8b57a1c3f3
- 1mo ago Changed 546368feb9b4
- 1mo ago First seen · 176 lines · 81 tokens per session scan A 6d6fd9dafedd
skill-retrieval is a skill published in the GitHub repository moonlight-lupin/agent-skills (112 stars, last pushed 4d ago), licensed MIT. It adds 81 tokens to every session and 2,882 once invoked, about $0.0003 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-08-30.
Other skills, from other repositories
telnyx-voice-advanced-curl
Advanced call control features including DTMF sending, SIPREC recording, noise suppression, client state, and supervisor controls. This skill provides REST API (curl) examples.
telnyx-messaging-hosted-curl
Set up hosted SMS numbers, toll-free verification, and RCS messaging. Use when migrating numbers or enabling rich messaging features. This skill provides REST API (curl) examples.
telnyx-acp-payment
Add credit to a Telnyx account through an Agentic Commerce Protocol (ACP) checkout, paying with a Stripe Link agent wallet or Tempo USDC, then verify the order and balance.
telnyx-verify-curl
Look up phone number information (carrier, type, caller name) and verify users via SMS/voice OTP. Use for phone verification and data enrichment. This skill provides REST API (curl) examples.
atomicmail
Read and write email through the Atomic Mail from an AI agent. Handles proof-of-work authentication and JMAP so the agent thinks in JMAP method calls. Use when the user asks to register an email inbox, list mailboxes, fetch or send email.
telnyx-import-elevenlabs
Import ElevenLabs conversational AI agents into Telnyx. Preserves instructions, voice settings, tools, and call analysis. Supports all SDK languages.