Agents optimize

From aws/agent-toolkit-for-aws · View interactive version

Agents optimize is an AI agent skill from the GitHub repository aws/agent-toolkit-for-aws. 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", "redu

How to use this skill

Skill file

optimize

Measure and improve your AgentCore agent's quality through evaluation, monitoring, and observability.

When to use

Do NOT use for:

Input

$ARGUMENTS can be:

Process

Step 0: Verify CLI version

Run agentcore --version. This skill requires v0.9.0 or later.

Step 1: Read project context

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-started to create one."

Step 2: Determine the workflow

| Developer intent | Action |

|---|---|

| Measure quality, add evaluator, run eval, CI/CD gate, online monitoring | Load CODE0 and follow its workflow |

| Set up observability, CloudWatch, X-Ray, logs, metrics, dashboards | Load CODE0 and follow its workflow |

| Understand or reduce AgentCore costs | Load CODE0 |

| Both — "I want to understand and improve my agent" | Start with observability setup, then add evals |

Step 3: Follow the loaded reference

The reference file contains the full procedure. Follow it step by step.

Cross-references

Output

Depends on the workflow — see the loaded reference for specific outputs.

Quality criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.