Terminal
Terminal/Skill
Adds evaluators, quality gates, and monitoring to an AgentCore agent, and helps with slow responses and cost.
By Amazon Web Services
Works with
npx skills add aws/agent-toolkit-for-aws --skill agents-optimizeMeasure 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.