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 agentmods add skills/magnus919/agent-skills/haystacknpx skills add magnus919/agent-skills --skill haystackgit clone --depth 1 https://github.com/magnus919/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/magnus919/agent-skills/haystack)<a href="https://agentmods.dev/skills/magnus919/agent-skills/haystack"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/haystack.svg" alt="Measured on agentmods" 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.00065 | $0.01435 |
| Opus 5 | $0.00032 | $0.00718 |
| Sonnet 5 | $0.00013 | $0.00287 |
| Haiku 4.5 | $0.00006 | $0.00144 |
Grade A, and why
haystack 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 2d 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 — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Haystack Expert Skill
Haystack (by deepset) is a production-oriented framework for building search and NLP pipelines. Its core abstraction is the Pipeline — a directed acyclic graph of typed components with explicit connections. Unlike LangChain's LCEL (pipe operator) or LlamaIndex's query engines, Haystack pipelines are declared upfront with add_component and connect, giving validated, debuggable DAGs.
Core Paradigm
from haystack import Pipeline
from haystack.components.embedders import SentenceTransformersTextEmbedder
from haystack.components.retrievers.in_memory import InMemoryEmbeddingRetriever
from haystack.components.builders import PromptBuilder
from haystack.components.generators import OpenAIGenerator
from haystack.document_stores.in_memory import InMemoryDocumentStore
# Build a pipeline
document_store = InMemoryDocumentStore()
pipeline = Pipeline()
pipeline.add_component("embedder", SentenceTransformersTextEmbedder())
pipeline.add_component("retriever", InMemoryEmbeddingRetriever(document_store=document_store))
pipeline.add_component("prompt_builder", PromptBuilder(template="Answer using: {{documents}}\n\nQuestion: {{question}}"))
pipeline.add_component("generator", OpenAIGenerator())
# Connect components
pipeline.connect("embedder.embedding", "retriever.query_embedding")
pipeline.connect("retriever.documents", "prompt_builder.documents")
pipeline.connect("prompt_builder", "generator")
# Run
result = pipeline.run({"embedder": {"text": "What is Haystack?"}, "prompt_builder": {"question": "What is Haystack?"}})
Core Principles
- Pipelines are validated DAGs. add_component + connect. Pipeline validation catches errors BEFORE execution — leverage this during development.
- Components are typed. Each component has input/output slots. Connections must match types. This prevents runtime errors.
- PromptBuilder uses Jinja2. Templates are Jinja2 strings, not f-strings.
{{documents}},{{query}},{{question}}are variable placeholders. - Indexing and query are separate pipelines. One pipeline loads/cleans/embeds/writes documents. Another retrieves/generates answers. They share the DocumentStore.
- Evaluation is a pipeline too. Add evaluator components to measure faithfulness, relevancy, or custom metrics.
What ships with it
14 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.
- evals/evals.json 2.7 KB
- README.md 1.5 KB
- references/deployment.md 1.1 KB
- references/document-stores.md 1.7 KB
- references/evaluation.md 1.7 KB
- references/faq-and-troubleshooting.md 1.6 KB
- references/file-converters.md 3.2 KB
- references/pipeline-design.md 2.7 KB
- references/retrievers.md 2.0 KB
- references/validation-audit.md 1.1 KB
- scripts/check-setup.py 732 B runs code
- templates/hybrid-rag.py 1.7 KB runs code
- templates/indexing-pipeline.py 1.1 KB runs code
- templates/query-pipeline.py 1.3 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.
- 2d ago Changed · +10 tokens per session dd90bffa8d85
- 6d ago First seen · 117 lines · 55 tokens per session scan A 2afdfe7b6748
haystack is a skill published in the GitHub repository magnus919/agent-skills (67 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 1,435 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
qdrant
Vector search engine for production RAG systems.
dspy
DSPy: declarative LM programs, auto-optimize prompts, RAG.
chroma
Embedding database for RAG and semantic search.
pinecone
Managed vector DB for production RAG and search.
faiss
Fast vector similarity search at billion scale.
pinecone-research
Agent RAG and long-term memory with Pinecone.