enrich

A skill for grounding an agent with information outside its built-in knowledge, such as internal documents, code, databases, APIs, and past records. It helps choose suitable sources and retrieval methods for the task.

In plain words
What is it for?
Planning knowledge retrieval, selecting authoritative sources, searching code or documents, querying structured data, and adding external or historical information to an agent workflow.
Why use it?
It reduces unsupported answers by giving the agent relevant source material to consult and cite.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/sharpdeveye/maestro/enrich
Any agent
npx skills add sharpdeveye/maestro --skill enrich
Clone the repo
git clone --depth 1 https://github.com/sharpdeveye/maestro

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 695 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00027 $0.00695
Opus 5 $0.00014 $0.00347
Sonnet 5 $0.00005 $0.00139
Haiku 4.5 $0.00003 $0.00069

Measured 3d ago against content hash d47c539e83ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

enrich 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 3d 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.

source/skills/enrich/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MANDATORY PREPARATION

Invoke /agent-workflow — it contains workflow principles, anti-patterns, and the Context Gathering Protocol. Follow the protocol before proceeding — if no workflow context exists yet, you MUST run /teach-maestro first. Consult the knowledge-systems reference in the agent-workflow skill for RAG architecture, chunking strategies, and retrieval patterns.


Add knowledge sources to ground the workflow in facts. Without grounding, agents hallucinate. With grounding, they cite sources.

Knowledge Source Assessment

Identify what knowledge the workflow needs:

Knowledge Type Source Update Frequency Access Pattern
Domain docs Internal docs, specs Monthly Semantic search
Code context Codebase Real-time Code search
User data Database, CRM Real-time Structured query
External data APIs, web Real-time API call
Historical Logs, past interactions Daily Time-range query

Add RAG Pipeline

For document-based knowledge (consult the knowledge-systems reference in the agent-workflow skill):

  1. Select documents: Identify the authoritative source documents
  2. Chunk strategy: Choose chunking based on document type (semantic > token-based)
  3. Embed: Use appropriate embedding model for the domain
  4. Index: Store in vector database with metadata
  5. Retrieve: Implement hybrid search (semantic + keyword)
  6. Inject: Add retrieved context to the prompt with source attribution

Add Structured Data

For database-backed knowledge:

  1. Define the query interface: Natural language → structured query
  2. Add guardrails: Read-only access, query complexity limits
  3. Format results: Transform raw data into context the model can use
  4. Attribute: Include data source and freshness in the context

Add Real-Time Data

For live information:

  1. Identify APIs: What external services provide the needed data
  2. Cache strategy: How often does the data change? Cache accordingly
  3. Fallback: What happens when the API is down?
  4. Attribution: Include data timestamp and source

Read the full file on GitHub · 80 lines

Changes

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.

  1. 3d ago First seen · 80 lines · 27 tokens per session scan A d47c539e83ee

Subscribe to this mod's changes

enrich is a skill published in the GitHub repository sharpdeveye/maestro (415 stars, last pushed 4mo ago), licensed MIT. It adds 27 tokens to every session and 695 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

documentation-search

Search the internal knowledge base for runbooks, architecture documentation, ADRs, best practices, and troubleshooting guides using RAG. Use when looking for internal documentation, deployment procedures, architecture decisions, or operational runbooks.

caipe-io/ai-platform-engineering · 46 tokens

rag-knowledge

RAG domain knowledge — architecture, component routing, rules, and reference tables. Use when working on any file under rag/.

redhat-community-ai-tools/UnifAI · 29 tokens

vector-search

Semantic vector search with moflo — RAG over your own documents, similarity matching, context-aware retrieval via HNSW (node:sqlite-backed). Use when building retrieval layers for chat, search, or context-assembly.

eric-cielo/moflo · 48 tokens

memory-optimization

Tune moflo's memory stack for speed, RAM, and index quality. Covers HNSW parameters (M, efConstruction, ef), vector quantization, batch operations, and common bottlenecks. Use when scaling past 100k entries or when search latency regresses.

eric-cielo/moflo · 60 tokens

agentic-rag

Use when building self-correcting retrieval systems for AI agents. Keywords: RAG, retrieval, Corrective RAG, Self-RAG, query decomposition, reranking, hallucination, grounding.

VoDaiLocz/kilo-kit-mcp · 45 tokens

graph-rag

Use when needing global or relational understanding of codebases or knowledge corpora. Keywords: GraphRAG, knowledge graph, entity extraction, community summarization, graph traversal, Microsoft GraphRAG.

VoDaiLocz/kilo-kit-mcp · 43 tokens