npx skills add ...
npx skills add aws/agent-toolkit-for-aws --skill agents-optimize
npx skills add aws/agent-toolkit-for-aws --skill agents-optimize
Use when measuring or improving agent quality and performance — set up evaluators, online monitoring, CI/CD quality gates, observability, or cost optimization. Triggers on: "evaluate my agent", "add evaluator", "measure quality", "quality gate", "run evals", "agent too slow", "why is it slow", "reduce latency", "set up observability", "CloudWatch dashboard", "how much does my agent cost", "cost optimization", "logs not showing up", "logs missing", "spans not found", "eval failing", "eval error", "dev traces", "local traces", "agentcore dev traces", "traces to CloudWatch". Not for debugging errors or crashes — use agents-debug. Slow but correct routes here; broken routes to debug.
Measure and improve your AgentCore agent's quality through evaluation, monitoring, and observability.
Do NOT use for:
agents-debugagents-harden$ARGUMENTS can be:
Run agentcore --version. This skill requires v0.9.0 or later.
Read agentcore/agentcore.json to understand existing evaluators, online eval configs, and agent setup.
If agentcore/agentcore.json is not found:
"This skill requires an AgentCore project. Use
agents-get-startedto create one."
| Developer intent | Action |
|---|---|
| Measure quality, add evaluator, run eval, CI/CD gate, online monitoring | Load references/evals.md and follow its workflow |
| Set up observability, CloudWatch, X-Ray, logs, metrics, dashboards | Load references/observability.md and follow its workflow |
| Understand or reduce AgentCore costs | Load references/cost.md |
| Both — "I want to understand and improve my agent" | Start with observability setup, then add evals |
The reference file contains the full procedure. Follow it step by step.
agents-harden for production readinessagents-debug for root cause analysisagents-buildDepends on the workflow — see the loaded reference for specific outputs.