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 bonigarcia/context-engineering --skill retrieval-advisorgit clone --depth 1 https://github.com/bonigarcia/context-engineeringWrote 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/bonigarcia/context-engineering/retrieval-advisor)<a href="https://agentmods.dev/skills/bonigarcia/context-engineering/retrieval-advisor"><img src="https://agentmods.dev/badge/skills/bonigarcia/context-engineering/retrieval-advisor/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/bonigarcia/context-engineering/retrieval-advisor"><img src="https://agentmods.dev/badge/skills/bonigarcia/context-engineering/retrieval-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00120 | $0.00747 |
| Opus 5.5 | $0.00048 | $0.00299 |
| Sonnet 5.5 | $0.00024 | $0.00149 |
| Haiku 4.5 | $0.00012 | $0.00075 |
Grade A, and why
retrieval-advisor 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 11d 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 — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Retrieval advisor
Decide how this system should bring external knowledge into the model's context, and point out what in the current pipeline hurts answer quality or cost.
Procedure
- Identify the knowledge source: its size (pages, documents, or tokens), how often it changes, its structure, and who can see which parts. If the user did not say, infer it from the code or data and state your assumption.
- Identify the current approach, if any: how documents are loaded, split, embedded, stored, retrieved, filtered, reranked, and placed in the prompt.
- Read
references/checklist.md. Use its decision rules to choose a recommendation, and check the pipeline against its review rules. - Write the report described below, with a
## Recommendationsection after the findings that explains the choice in a few sentences, including when the recommendation would change.
Report format
Write the report in Markdown, in this order:
## Summary: two to four sentences on the overall state and the most important change.## Findings: one bullet per finding, most severe first, in the form- [severity] location: problem. Fix: suggested fix. (book section). Severity ishighwhen the problem causes wrong or unsafe behavior,mediumwhen it makes results unreliable or costly, andlowfor clarity or maintenance issues. If there are no problems, writeNo findings.- Any skill-specific section named in the procedure.
- A final fenced
jsonblock with the same content, as in this example. Setrecommendationto one of these values.rag: retrieve chunks per query.cag: load the whole source once into a cached prefix.context-stuffing: place the whole source in every prompt.hybrid: part of the source in the context and RAG for the rest. Hybrid keyword and vector search is stillrag.
{
"skill": "retrieval-advisor",
"summary": "...",
"recommendation": "rag",
"findings": [
{
"severity": "high",
"location": "ingest.py, chunking",
"problem": "...",
"fix": "...",
"book_section": "Chapter 3, Chunking strategies"
}
]
}
What ships with it
6 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.
- 11d ago First seen · 52 lines · 120 tokens per session scan A bf6e95bd1b3a
retrieval-advisor is a skill published in the GitHub repository bonigarcia/context-engineering (196 stars, last pushed 2d ago), licensed Apache-2.0. It adds 120 tokens to every session and 747 once invoked, about $0.0005 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-11-19.
retrieval-advisor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| retrieval-advisorbonigarcia/context-engineering | Skill | 196 | 2d ago | Apache-2.0 | A | 120 | Claude Code |
| documentation-searchcaipe-io/ai-platform-engineering | Skill | 453 | today | Apache-2.0 | A | 46 | Claude Code, Codex |
| agent-v3-memory-specialistruvnet/ruflo | Skill | 83k | today | MIT | A | 25 | Claude Code |
| embeddingsruvnet/ruflo | Skill | 83k | today | MIT | A | 62 | Claude Code |
| knowledge-orgbojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 96 | Claude Code, Codex |
| rag-pipelinebojieli/ai-agent-book | Skill | 60k | yesterday | Apache-2.0 | A | 125 | Claude Code, Codex |
| cdf-curation-and-retrievalNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 117 | Claude Code, Codex |