/agent-engineer:agent-evalsfrom Agent Engineer
Measures LLM agents and RAG systems with error analysis on traces, failure taxonomy, synthetic datasets, code graders, LLM judges, judge validation, trajectory/tool-call evals, CI gates, and online evals.
Ships in Agent Engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
design.md or a mode in
failure-taxonomy.md. No orphan metrics.Use one when it fits instead of the full workflow (references/quick-paths.md):
| Situation | Section |
|---|---|
| Eval set exists; "is B better than A?" | Comparing two versions |
| One objective failure a code check can catch | Minimal eval |
| Inherited suite you haven't verified | Auditing an existing suite |
design.md, existing evals, where traces live. Ask for success
criteria and acceptable error rate if missing; derive the rate from business cost.references/error-analysis.md): ~100 traces sampled for coverage,
open-code 30–50, axial-code into 5–10 modes, count. The user (domain expert) confirms
the modes. Write failure-taxonomy.md.eval-plan.md.references/datasets-and-synthetic-data.md): 20–50 cases per eval from
real failures, tagged, with provenance, split and version.references/graders-and-judges.md).references/judge-validation.md): ≥ ~100 balanced expert labels
(150–200 for tight CIs), train/dev/test.references/agent-and-trajectory-evals.md).references/ci-and-online-evals.md).agent-accuracy to fix the top modes; agent-observability to attach
scores to traces.With subagents: trace-analyst may draft step 2 (the user still reviews modes and ~30
notes); eval-engineer may do steps 4–8 (check its label counts and splits).
| If | Then |
|---|---|
| Comparing two versions on taste | Pairwise judge, both orders, plus the absolute gate |
| No traffic yet | 20–50 hand-written + dimension-based synthetic inputs; replace with real traces |
| 100+ real traces | Stratified sample; skip synthetic |
| Failures rare | Oversample failures for judge labels |
| User-facing or must work every time | pass^k (k ≥ 3); "can it ever?" → pass@k |
| Multi-turn failure | Reduce to single turn or N-1 prefix |
| Eval passes ~100% | Move to regression; add harder capability cases |
| Task at 0% over many trials | Suspect the task or grader; read transcripts |
| Judge model | Strongest in budget; same family as the agent is fine if it meets TPR/TNR on test |
| Production traffic | Judge ~10% plus all negative-feedback traces; report bias-corrected rate with CI |
| Provider can change the model under you | Nightly suite against production; new failures with no repo change = drift |
RAG: evaluate retrieval separately from generation. Retrieval: recall@k on
query→chunk labels first. Generation: faithfulness and answer relevance via validated
judges (RAGAS scores are unvalidated judges). Depth: agent-rag.
Write these to agent-engineering/ only if the project keeps one (see agent-engineer → Project record (optional)); otherwise put them in your reply or the PR description.
failure-taxonomy.md; eval-plan.md (judge table with TPR/TNR, gates, budget).datasets/*.jsonl with provenance, split and version.gen_ai.evaluation.result).references/quick-paths.md — the three shortcuts. Read first when one fits.references/error-analysis.md — sampling, coding, transition matrix. Before any metric.references/datasets-and-synthetic-data.md — sizes, case schema, synthetic inputs,
splits. When building a dataset.references/graders-and-judges.md — grader choice, judge prompt skeleton, judge model,
biases. When writing a judge.references/judge-validation.md — labels, splits, TPR/TNR, bias correction, bootstrap.
Before trusting a judge's numbers.references/agent-and-trajectory-evals.md — outcome vs trajectory, tool checks,
pass^k, per-agent-type checks, calibration. For tool-using agents.references/ci-and-online-evals.md — noise table, CI gates, run cost, online scoring,
scores on traces. When wiring CI or production scoring.assets/eval-plan.md (opens in a new tab)assets/failure-taxonomy.md (opens in a new tab)references/agent-and-trajectory-evals.md (opens in a new tab)references/ci-and-online-evals.md (opens in a new tab)references/datasets-and-synthetic-data.md (opens in a new tab)references/error-analysis.md (opens in a new tab)references/graders-and-judges.md (opens in a new tab)references/judge-validation.md (opens in a new tab)references/quick-paths.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
llm-evals, agent-evaluation, rag-evaluation, llm-judges, eval-gates
13 skills in this plugin
/agent-accuracyDebug and fix an LLM agent or RAG system that gives wrong, inconsistent, hallucinated or low-quality results: reproduce, localise the failing component, one hypothesis, the least-powerful fix, measure, check regressions, log. Use when the user says "it hallucinates", "wrong answers", "accuracy dropped", "flaky / right only sometimes", "worse after the model upgrade", "should I add RAG / a bigger model / fine-tune?", or wants a pass rate up. Not for building evals (agent-evals), errors/timeouts/migrations (agent-production), retrieval internals (agent-rag), prompt rewrites (agent-prompting) or tool redesign (agent-tools)./agent-contextEngineer what an agent's context window holds over long or multi-turn runs: ordering and token budgets, just-in-time loading, tool-result clearing and compaction, scratchpads, progress files, long-term memory, subagent isolation, prompt-cache hit rate, and measuring context from traces. Use when the agent forgets instructions or decisions, degrades or loops as runs grow, hits context limits, has token bloat or low cache hits, needs memory across sessions, or runs for hours. Not for prompt wording (agent-prompting), document search (agent-rag), one tool's output size (agent-tools), or overall cost and latency (agent-production)./agentcoreBuilds, secures, ships and operates agents on Amazon Bedrock AgentCore: the harness (config-based managed agent, "agent builder"), code agents and MCP servers on Runtime, the @aws/agentcore CLI, Gateway, Identity (JWT, OAuth, on-behalf-of), Memory, Code Interpreter, Browser, Web Search, Policy (Cedar) and Bedrock Guardrails, Observability, Evaluations, Registry, and CDK/CloudFormation/Terraform. Use when code or the request mentions AgentCore, bedrock-agentcore, harness.yaml, agentcore.json, InvokeAgentRuntime or InvokeHarness, or migrates Bedrock Agents Classic. Not for vendor-neutral design, prompts, tool design, evals or tracing (the agent-* skills; this one maps them onto AgentCore)./agent-designScopes and architects LLM agents: testable success criteria, the simplest shape (single call, workflow, single agent, multi-agent), framework and models, human checkpoints, agent-engineering/design.md. Use when building an agent from scratch, deciding agent vs workflow vs multi-agent, choosing a framework or model, or redesigning one that is too slow, costly or unreliable. Not for tool schemas or MCP (agent-tools), prompt wording (agent-prompting), memory (agent-context), retrieval (agent-rag), tuning a running agent (agent-production), or permissions (agent-guardrails)./agent-engineerEntry point for LLM agent work when the right agent-* skill isn't obvious. Maps symptoms to the specialised agent-* skills and defines the optional agent-engineering/ project record. Use when starting a blank-page agent, chatbot or RAG project ("build an agent that…", "where do I start?"), for a broad request spanning several areas ("we're launching next week", "review our agent"), or to survey an existing LLM codebase before changing it. For a specific task (a prompt, tools, evals, tracing, retrieval, cost) load that skill directly instead./agentforceBuilds, wires, tests, secures and operates Salesforce Agentforce agents in the new Agentforce Builder: Agent Script (.agent), subagents, actions (Flow, Apex, prompt templates, Integration Procedures, External Services, MCP), Prompt Builder, Data Cloud / Data 360 retrievers, Custom Lightning Types, channels (messaging, web, Slack, voice, Agent API), Trust Layer and guardrails, trace SQL, testing and the `sf agent` CLI. Use for a Salesforce DX project with agent metadata, or when the user mentions Agentforce, Agent Script, Einstein, Prompt Builder, Data Cloud, OmniStudio or `sf agent`. Generic method (evals, prompts, RAG) stays in the agent-* skills.npx claudepluginhub sarthakrastogi/agent-engineer --plugin agent-engineerOther plugins' skills for the same job