/agent-engineer:agent-ragfrom Agent Engineer
Designs, measures, and debugs RAG pipelines: parsing, chunking, embeddings, hybrid BM25+dense search, reranking, filters, citations, and retrieval metrics. Use when answers from docs/data are wrong, outdated, or missing.
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.
Retrieval is a search problem: measure it with retrieval metrics on a labelled set, separately from the answer.
design.md and 5–10 failing examples. Ask corpus size,
change rate, query types, latency/cost budget, per-user access. Pick prompt + cache,
hybrid RAG or agentic search (references/retrieval-or-not.md); record it in design.md.references/chunking-and-ingestion.md).datasets/ (references/rag-evaluation.md).references/retrieval-and-ranking.md). One
experiment-log.md entry each.references/diagnosing-rag.md); delegate to
rag-diagnostician if available.agent-observability for retrieval spans, agent-evals for gates and online
scoring, agent-accuracy if failures persist once retrieval is sound.| If | Then |
|---|---|
| Failures are format, tone or consistency | Not RAG → agent-prompting / agent-accuracy |
| Right chunk in BM25 results, not dense | Hybrid with RRF |
| Right chunk in neither | Chunk headers / contextual retrieval, then query rewriting |
| Retrieved but cut off or filtered out | Reranker, tune k, fix the filter |
| "Latest", dated, typed or hard-constraint queries ("under $200", "not X") | Extract filters; search only within them |
| Exact search finds it, the ANN index doesn't | Tune the index (references/retrieval-and-ranking.md → Vector index) |
| Multi-hop across entities after hybrid + rerank | Agentic search, then graph retrieval, measured |
| Right chunk in context, answer wrong | Generation: quote-first, allow "I don't know", ordering |
| Chat follow-ups retrieve badly | Condense history into a standalone query |
| Query transform unproven on your set, or ID-like queries | Skip it |
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.
design.md.datasets/retrieval-<name>.jsonl with provenance; retrieval and generation rows in
eval-plan.md.experiment-log.md entry per pipeline change: recall delta, p95 latency, cost/query.rag-diagnostician format).references/retrieval-or-not.md — knowledge vs behaviour, prompt + cache vs RAG vs
agentic search. Read before building anything.references/chunking-and-ingestion.md — parsing, tables, chunk-size grid, per-type
routing, contextual retrieval, parent–child. Read when building or re-indexing.references/retrieval-and-ranking.md — embeddings, hybrid, rerank, query transforms,
filters, assembly, citations, agentic and graph retrieval. Read when tuning query time.references/rag-evaluation.md — metrics, constraint satisfaction, building the labelled
set, recall@k snippet. Read before tuning and when writing eval-plan.md.references/diagnosing-rag.md — logging, first-failing-stage walk, fix order, query
clusters, flywheel. Read when answers are wrong or quality is unknown.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rag, retrieval-augmented-generation, vector-search, bm25, embeddings, chunking
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./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).npx claudepluginhub sarthakrastogi/agent-engineer --plugin agent-engineerOther plugins' skills for the same job