/agent-engineer:agent-accuracyfrom Agent Engineer
Debug and fix LLM agents or RAG systems producing wrong, inconsistent, or hallucinated results. Follows a structured workflow: reproduce, localize the failing component, apply the least-powerful fix, measure improvement, and check regressions.
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.
Take one failure mode at a time to a measured, logged fix that breaks nothing else, using the cheapest change that works.
agent-evals (Minimal eval); if the user declines, say
the fix is unverified.experiment-log.md.logs/, data/, *.jsonl) or the tracing backend.
Read the failing ones; they become the reproduction cases. Also read
failure-taxonomy.md and experiment-log.md if present, and state what "fixed" means.references/localising-failures.md): first wrong step, confirmed by a
counterfactual probe. With subagents: many traces → trace-analyst; retrieval →
rag-diagnostician.references/intervention-ladder.md).references/experiment-discipline.md; procedure: agent-evals →
Comparing two versions).agent-evals for new gates; agent-production to roll out;
agent-observability to watch the mode online.| Symptom | First move |
|---|---|
| Confident wrong fact | Search the trace's context for the right fact. Absent → retrieval/data; present → generation |
| Right context, wrong answer | Answer only from context, quote first, allow "I don't know"; trim distractors |
| Wrong tool or arguments | Tool names, descriptions, schemas, examples (agent-tools) |
| Format breaks | Structured output + validation in code |
| Answers half of a multi-part question | Decompose; completeness check per part |
Confident answer after empty/null tool result | Silent tool failure: explicit tool errors (agent-tools) |
| Varies run to run | Remove ambiguity, examples, rules into code, verification step; measure pass^k |
| Worse after model/prompt change | Paired diff by mode vs last good version; read the log |
| Degrades in long runs | agent-context |
| Correct but slow/expensive | Not accuracy → agent-production |
Stop when the target is met with the CI's lower bound above it; when the last 2–3 experiments are within noise and the next rung costs more than the remaining failures; or when what's left needs a product decision. Tell the user which.
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.
experiment-log.md entry per experiment: change, hypothesis, eval and dataset
version, before → after with CI, regressions, cost/latency, decision.failure-taxonomy.md: updated counts and Component column.datasets/ with provenance.references/localising-failures.md — trace reading order, symptom → component →
confirmation, counterfactual probes, capability vs reliability. Read before choosing a
fix.references/intervention-ladder.md — each rung's when/how/pitfalls, when popular fixes
are wrong, reliability fixes. Read when choosing a fix.references/experiment-discipline.md — hypothesis, run counts, keep/revert,
overfitting, log entry, stopping. Comparison mechanics: agent-evals →
references/quick-paths.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
llm-agent, rag, hallucination, debugging, accuracy, experiment-log
npx claudepluginhub sarthakrastogi/agent-engineer --plugin agent-engineer13 skills in this plugin
/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./agent-evalsMeasure LLM agents and RAG systems: error analysis on traces, failure taxonomy, datasets and synthetic inputs, code graders and LLM judges, judge validation (TPR/TNR, bias correction), trajectory and tool-call evals, pass@k vs pass^k, CI gates, online evals. Use when the user says "add evals", "is this change better?", "write a judge", "can I trust this judge", "build a test set", "add an eval gate to CI", "score production traffic", or has traces and doesn't know what to measure. Not for fixing the cause of wrong output (agent-accuracy), retrieval metrics in depth (agent-rag) or emitting traces (agent-observability)./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.Other plugins' skills for the same job