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 ctxd-dev/ctxd --skill ctxd-retrievalgit clone --depth 1 https://github.com/ctxd-dev/ctxdWrote 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/ctxd-dev/ctxd/ctxd-retrieval)<a href="https://agentmods.dev/skills/ctxd-dev/ctxd/ctxd-retrieval"><img src="https://agentmods.dev/badge/skills/ctxd-dev/ctxd/ctxd-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/ctxd-dev/ctxd/ctxd-retrieval"><img src="https://agentmods.dev/badge/skills/ctxd-dev/ctxd/ctxd-retrieval.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.00044 | $0.00497 |
| Opus 5.5 | $0.00018 | $0.00199 |
| Sonnet 5.5 | $0.00009 | $0.00099 |
| Haiku 4.5 | $0.00004 | $0.00050 |
Grade A, and why
ctxd-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 yesterday.
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.
What it actually says
ctxd retrieval
Use ranked search to find candidates, then verify claims in documents. Search previews and grep lines are leads, not a substitute for reading source context.
- Choose the narrowest authorized source prefix that can contain the answer.
Use
treeonly when the available roots are unknown. - Search with the complete question. The default 20 results and eight previews are normally appropriate; do not reduce them before seeing the first page.
- When
next_offsetis returned, inspect at least the next page using the same query, prefix, andindex_revision. Continue further when neither page has evidence covering every requested fact. Ifcandidate_pool_stopped_by=limit, issue a narrower query for unresolved qualifiers rather than treating absence from the bounded pool as proof. - Read at least one promising returned path before answering. Prioritize hits
with
recommended_action=read, matching titles, andmatched_termscovering different parts of the question. For multi-part or conflicting evidence, read enough documents to resolve each part and determine which material is current, approved, draft, example, or superseded. - Use grep after ranked search and reads when an exact identifier, number, or
phrase remains unresolved. If grep returns
next_cursor, resume with the same pattern and prefix. Read an exact path returned by that grep before using the match, even if another document was already read. - Answer only from verified document content. State unresolved gaps instead of inferring them, and return the supporting ctxd paths or document IDs.
CLI equivalents:
ctxd files search "<complete question>" --prefix <prefix>
ctxd files search "<complete question>" --prefix <prefix> \
--offset <next_offset> --index-revision <index_revision>
ctxd files read <returned-path>
ctxd files grep "<exact term or regex>" --prefix <prefix> --timeout-seconds 10
For MCP, use the tools with the same names and fields. Do not broaden a prefix past the user's authorized or requested scope.
What ships with it
1 file 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.
- yesterday First seen · 44 lines · 44 tokens per session scan A 56582bbe7efe
ctxd-retrieval is a skill published in the GitHub repository ctxd-dev/ctxd (50 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 497 once invoked, about $0.0002 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-12-03.
ctxd-retrieval compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ctxd-retrievalctxd-dev/ctxd | Skill | 50 | yesterday | MIT | A | 44 | Codex |
| pkup-genpPrecel/pkup-gen | Skill | 14 | 3mo ago | MIT | A | 27 | Claude Code, Codex |
| algodocs-automationranbot-ai/awesome-skills | Skill | 15 | yesterday | none | A | 29 | Claude Code, Codex |
| api2pdf-automationranbot-ai/awesome-skills | Skill | 15 | yesterday | none | A | 29 | Claude Code, Codex |
| boldsign-automationmanu14357/zskills | Skill | 16 | 4mo ago | MIT | A | 27 | Claude Code, Codex |
| affinda-automationmanu14357/zskills | Skill | 16 | 4mo ago | MIT | A | 27 | Claude Code, Codex |
| algodocs-automationmanu14357/zskills | Skill | 16 | 4mo ago | MIT | A | 29 | Claude Code, Codex |