Skip to content
Back to skills

Llm Evals

ASecurity

Architecture standards, evaluation metrics, cost budget controls, and security guardrails for LLM, RAG, and Agentic features.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 6, 2026
ai-agentsrustgorailsapisecurity

Works with

  • api

Security analysis

A100/100

Scanned September 6, 2026

npx -y skills add saitarrun/Devforge-ai --skill llm-evals --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Llm Evals?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Llm Evals
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/saitarrun-llm-evals/badge)](https://www.skillsdirectory.com/skills/saitarrun-llm-evals)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: llm-evals
description: Architecture standards, evaluation metrics, cost budget controls, and security guardrails for LLM, RAG, and Agentic features.
version: 1.0.0
---

# LLM & RAG Application Engineering Skill

This skill defines industry standards for developing, evaluating, and operating LLM, RAG, and AI Agent features cleanly.

## Core Architectural Pillars

### 1. Evaluation & Benchmarking (Evals)
- **Deterministic Evals**: Assert output schema validity (Zod/Pydantic validation).
- **Model-Graded Evals**: Evaluate accuracy, grounding (faithfulness), hallucination rate, and context relevance using LLM-as-a-Judge.
- **RAG Triad**:
  - Context Relevance (Retrieval quality)
  - Groundedness (LLM stays within retrieved context)
  - Answer Relevance (Output addresses user prompt directly)

### 2. Token & Cost Budget Guardrails
- **Max Token Limits**: Hard limit max response tokens per prompt.
- **Circuit Breakers**: Halt downstream requests if daily/hourly token expenditure exceeds set threshold.
- **Semantic Caching**: Store prompt/embedding responses in Redis/pgvector to eliminate redundant LLM calls.

### 3. AI Security & Safety
- **Prompt Injection Defense**: Sanitize user inputs; separate system instructions from untrusted user content.
- **PII Scrubbing**: Redact secrets, emails, SSNs, and credit card numbers before sending payloads to LLM APIs.
- **OWASP Top 10 for LLMs**: Guard against Insecure Output Handling, Excessive Agency, and Data Poisoning.

## Checklist for Feature Slices with `has_llm: true`
- [ ] Schema validation for structured output (JSON mode / Tool Call response parsing)
- [ ] Fallback model strategy (e.g., fallback from primary model to secondary model on rate limit)
- [ ] OpenTelemetry LLM tracing (LangSmith / Helicone / Phoenix / OTel instrumentation)
- [ ] Token usage logging and latency tracking
- [ ] Eval dataset created with at least 10 gold-standard ground truth examples

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.