rag-patterns
Pass
Audited by Gen Agent Trust Hub on Jun 15, 2026
Risk Level: SAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill documents a Retrieval-Augmented Generation (RAG) pattern, which is inherently susceptible to indirect prompt injection if the ingested documents contain malicious instructions.
- Ingestion points: Data enters the system via the
ingestDocumentfunction inSKILL.md. - Boundary markers: The code uses
---delimiters between context chunks and a clearContext:header in the system prompt. - Capability inventory: The documented pattern includes vector database operations and LLM text generation; it does not include dangerous OS-level capabilities.
- Sanitization: The examples do not demonstrate explicit escaping or sanitization of retrieved context before prompt interpolation.
- [EXTERNAL_DOWNLOADS]: The skill references standard, well-known libraries for AI application development.
- References
@ai-sdk/openaiandaipackages (Vercel AI SDK).
Audit Metadata