Borrowing it
Nothing to install: this file belongs to NomaDamas/AutoRAG-Research. 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/NomaDamas/AutoRAG-Research/main/.agents/skills/create-retrieval-plugin/SKILL.mdgit clone --depth 1 https://github.com/NomaDamas/AutoRAG-ResearchWrote 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/nomadamas/autorag-research/create-retrieval-plugin)<a href="https://agentmods.dev/skills/nomadamas/autorag-research/create-retrieval-plugin"><img src="https://agentmods.dev/badge/skills/nomadamas/autorag-research/create-retrieval-plugin.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.00068 | $0.00713 |
| Opus 5 | $0.00034 | $0.00357 |
| Sonnet 5 | $0.00014 | $0.00143 |
| Haiku 4.5 | $0.00007 | $0.00071 |
Grade A, and why
create-retrieval-plugin 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 — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Create Retrieval Plugin
Workflow
1. Scaffold
autorag-research plugin create my_search --type=retrieval
Read the generated pipeline.py, pyproject.toml, YAML config, and test file to understand the structure.
2. Implement
For the shared pipeline implementation and testing rules, read:
ai_instructions/pipeline_implementer.mdai_instructions/pipeline_test_writer.mdai_instructions/pipeline_architecture_mapper.md
Implement the two abstract methods in the pipeline class:
_retrieve_by_id(query_id, top_k)— retrieve using query ID (query exists in DB with stored embedding)_retrieve_by_text(query_text, top_k)— retrieve using raw text (may need on-the-fly embedding)
Both must return list[dict[str, Any]] with doc_id (chunk ID) and score keys.
DO NOT add your own
asyncio.gather,asyncio.Semaphore, or any concurrency control. The base pipeline'srun()already handles parallel execution of all queries viarun_with_concurrency_limit()(semaphore + gather), controlled by themax_concurrencyconfig parameter. Your method is called once per single query — just implement the retrieval logic for that one query.
Custom parameters: Add fields to your config class and pass them via get_pipeline_kwargs() → accept them in the pipeline constructor. See bm25.py for a real example.
3. Write tests and install
cd my_search_plugin
pip install -e . # or: uv pip install -e .
cd .. && autorag-research plugin sync
Verify: ls configs/pipelines/retrieval/my_search.yaml
Key Files
| Purpose | Path |
|---|---|
| Base config class | autorag_research/config.py → BaseRetrievalPipelineConfig |
| Base pipeline class | autorag_research/pipelines/retrieval/base.py → BaseRetrievalPipeline |
| Service layer | autorag_research/orm/service/retrieval_pipeline.py → RetrievalPipelineService |
| Plugin entry point discovery | autorag_research/plugin_registry.py |
Examples
Study these existing implementations for patterns:
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 · 77 lines · 68 tokens per session scan A bb8d5b372402
create-retrieval-plugin is a skill published in the GitHub repository NomaDamas/AutoRAG-Research (148 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 68 tokens to every session and 713 once invoked, about $0.0003 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
agent-platform-rag-engine-management
Manage and query Agent Platform RAG Engine Corpora and retrieve grounded contexts using the Google GenAI SDK. Use when listing RAG corpora or files, inspecting a corpus, retrieving contexts, or generating content grounded in a RAG corpus. Do not use for standard database queries (use SQL/Spanner skills), Google…
llm-app-patterns
Production-ready patterns for building LLM applications. Covers RAG pipelines, agent architectures, prompt IDEs, and LLMOps monitoring. Use when designing AI applications, implementing RAG, building agents, or setting up LLM observability.
9router-embeddings
Generate vector embeddings via 9Router /v1/embeddings using OpenAI / Gemini / Mistral / Voyage / Nvidia / GitHub embedding models for RAG, semantic search, similarity. Use when the user wants embeddings, vectors, RAG, semantic search, or to embed text.
azure-search-documents-dotnet
Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…
similarity-search-patterns
Implement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval performance.
embedding-strategies
Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.