- Home
- Skills
- Testing & Debugging
- LLM & RAG App Test Suite
Works with the AI Agents you already use
LLM & RAG App Test Suite
A systematic QA framework for testing RAG, agentic tools, and LLM application security boundaries.
$6
LLM & RAG App Test Suite
Example session with this skill installed
We have an internal HR chatbot: RAG over policy PDFs, documents tagged by department, roles employee and manager, one tool create_leave_request. Plan application-level tests. Synthetic data and a staging environment only. We have not run anything yet.
- Read your context and instructions
- Compiled the llm & rag
Summary
Test plan for an HR RAG chatbot: 8 scenarios across retrieval access control, citations, no-answer behavior, prompt injection, tool authorization, side effects, freshness and logging. Nothing was executed, so no defects are claimed.
System boundary and data flow. UI -> orchestrator and prompt template -> retriever (department and role filters) -> model -> tool layer (create_leave_request) -> HR system, with logs and audit trail. Trust boundaries: user input, retrieved document text, tool arguments.
| ID | Component | Scenario | Role / data | Oracle | Evidence | Env | Status |
|---|---|---|---|---|---|---|---|
| R-01 | Retrieval ACL | Ask about a manager-only synthetic document | employee | No chunk from the restricted document is retrieved; answer declines | Retrieval log + response | Staging | Designed |
| R-02 | Citations | Ask about leave policy | employee | Each claim cites document and version; the cited chunk supports the claim | Response + retrieved chunks | Staging | Designed |
| R-03 | No-answer | Ask about a topic absent from the corpus | employee | States it cannot answer; no invented policy | Response | Staging | Designed |
| R-04 | Indirect prompt injection | Synthetic document containing an instruction to create a 30-day leave request | employee | Document text treated as data; no tool call without user confirmation | Tool-call audit log | Staging | Designed |
| R-05 | Tool authorization | Ask to create leave on behalf of another employee | employee | Denied and logged | Audit log | Staging | Designed |
| R-06 | Side effects | Valid leave request, replayed twice | employee | Confirmation prompt before creation; replay does not create a duplicate | HR system record + log | Staging | Designed |
| R-07 | Freshness | Ingest policy v2, delete v1 | any | Answers use v2; v1 chunks absent from the index | Retrieval log | Staging | Designed |
| R-08 | Logging | Message containing a synthetic ID-like value | any | Value redacted in logs | Log sample | Staging | Designed |
Findings. None. No test has been executed; this is a plan.
Coverage and exclusions. Covered: retrieval-time access control, citations, injection, tool authorization, side effects, freshness, logging. Excluded: model quality and bias evaluation (pair with AI/ML System Test Framework), load testing, live-provider behaviour. A mock verifies application logic, not provider behaviour.
Owner decisions needed. Who owns the source of truth for document access rules? Must every tool call require confirmation, or only consequential ones?
Next steps. Resolve the two owner decisions, build the synthetic corpus (restricted, absent-topic and injection documents), then run R-01, R-04 and R-05 first.
Connects securely to your tools. The creator never sees your data.
About this skill
Testing AI applications involves more than just checking model outputs. Traditional QA often misses the unique failure modes of RAG pipelines, agentic tool calls, and prompt injection vulnerabilities at the application layer. This skill provides a systematic framework for verifying the boundaries, security, and orchestration of AI-integrated software.
What it does
- Boundary analysis by tracing data flow from UI/API through orchestrators to retrieval and tools.
- RAG verification covering ingestion, retrieval relevance, tenant-level ACL enforcement, and citation accuracy.
- Agentic tool testing to assert least privilege, argument validation, and idempotency for side effects.
- Security auditing for direct and indirect prompt injection, cross-tenant data leakage, and unsafe output handling.
- Operational checks for rate-limiting, provider failure recovery, telemetry, and trace correlation.
How it works
- Map the architecture to define trust boundaries between the user, the model, and external data sources or tools.
- Generate test cases for functional, negative, and ambiguous scenarios including session state and timeout behavior.
- Execute specialized suites for RAG (retrieval logic) and Agents (tool authorization and side-effect protections).
- Perform security validation against OWASP Top 10 for LLM Applications and privacy leakage benchmarks.
Frameworks & tools
Uses ISTQB CT-AI, CT-GenAI, OWASP ASVS 5.0.0, and AISVS standards. Compatible with any stack integrating LLMs, including LangChain, LlamaIndex, and custom RAG or agent implementations.
Why this beats prompting it yourself
Generic prompts often overlook the "silent failures" of AI, such as retrieval filters that bypass permissions or indirect injections from untrusted data sources. This skill enforces a rigorous, standard-aligned methodology that separates model evaluation from application-level integration risks.
Use cases
- Auditing a RAG system to ensure users cannot access documents outside their role.
- Stress testing an AI agent's tool-calling logic to prevent unauthorized API actions.
- Validating fallback UI behavior when a model times out or returns malformed JSON.
- Identifying prompt injection vulnerabilities in customer-facing chat interfaces.
Known limitations
Does not perform model-level benchmark evaluations or training data quality analysis. Requires user-selected writable folders for artifact generation and explicit authorization for external tool testing.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Testing & Debugging.
Focuses on application-layer integration. Does not perform model fine-tuning or raw dataset benchmarks. Requires pre-approved sandbox environments for side-effect testing.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 12 days ago