agents-optimize

от aws

Используется при измерении или повышении качества и производительности агентов — настройка оценщиков, онлайн-мониторинга, шлюзов качества CI/CD, наблюдаемости или оптимизации затрат...

npx skills add https://github.com/aws/agent-toolkit-for-aws --skill agents-optimize

optimize

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

When to use

  • You want to know if your agent is giving good answers
  • You want to set up continuous quality monitoring in production
  • You want to add a quality gate to your CI/CD pipeline
  • You want to understand agent behavior through logs, metrics, and traces
  • You want to set up CloudWatch dashboards or X-Ray tracing

Do NOT use for:

  • Debugging a specific broken agent (wrong answers, errors) → use agents-debug
  • Production security hardening (IAM, auth) → use agents-harden

Input

$ARGUMENTS can be:

  • An eval goal: "add a quality gate", "set up monitoring"
  • An observability goal: "set up CloudWatch dashboard", "understand my traces"
  • A specific evaluator: "llm-as-a-judge", "code-based"
  • Empty — the skill will guide based on project context

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 intentAction
Measure quality, add evaluator, run eval, CI/CD gate, online monitoringLoad references/evals.md and follow its workflow
Set up observability, CloudWatch, X-Ray, logs, metrics, dashboardsLoad references/observability.md and follow its workflow
Understand or reduce AgentCore costsLoad references/cost.md
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

  • After setting up evals, suggest agents-harden for production readiness
  • If eval results reveal agent issues, suggest agents-debug for root cause analysis
  • If the developer needs to add capabilities first, suggest agents-build

Output

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

Quality criteria

  • Evaluator configuration uses only valid CLI flags
  • Online eval sampling rate is appropriate (not 100% in production without discussion)
  • CI/CD quality gate has a clear pass/fail threshold
  • Observability setup includes both tracing and logging
  • The developer understands the eval data delay: ~10 seconds put-to-get, end-to-end — one ingestion step covers both trace reads and eval queries; there is no separate indexing wait

Больше skills от aws

analyzing-release-readiness
aws
Запустить проверку готовности к релизу перед слиянием в GitHub PR, GitLab MR или локальной ветке. Использовать, когда пользователь хочет проанализировать изменения кода на предмет рисков, корректности,…
scanning-with-aws-security-agent
aws
Запустить сканирование AWS Security Agent в рабочей области — загружает исходный код в AWS, сканирует его с помощью управляемого сервиса Security Agent и возвращает ранжированные, проверенные…
coordinating-multi-space-devops-agent
aws
Координировать AWS DevOps Agent в нескольких AgentSpaces из одного сеанса Claude Code — направлять вопросы в нужное пространство (prod vs staging vs knowledge),…
aws-security
aws
Охватывает сервисы и рабочие процессы безопасности AWS — выводы Security Hub V2 (OCSF), коннекторы, агрегаторы, правила автоматизации и сводки по состоянию безопасности;…
querying-aws-sagemaker-catalog
aws
Выполняет SQL-аналитику по таблицам метаданных активов SageMaker Catalog, экспортированным как Apache Iceberg в S3 Tables. Охватывает запросы по управлению, отслеживание роста активов,…
agents-connect
aws
Используйте при подключении вашего агента к внешним API, инструментам или сервисам через Gateway, а также при ограничении доступа к инструментам с помощью политик Cedar. Обрабатывает настройку шлюза, целе…
aurora-dsql
aws
Обеспечивает и управляет кластерами Aurora DSQL, подключается через psql или DSQL Connectors, управляет схемами, выполняет запросы, мигрирует из MySQL, диагностирует планы запросов,…
transitgateway
aws
Настраивает AWS Transit Gateway: создание хаба и подключение VPC, сегментация трафика с помощью таблиц маршрутизации, централизация исходящего трафика и инспекции через хаб…