К основному содержанию
скилл CX Codex

chatting-with-aws-devops-agent — скилл для Claude Code

Скилл отправляет вопросы AWS DevOps Agent для разбора затрат, архитектуры и диагностики. Подходит для короткого диалога по облачной инфраструктуре.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add aws/agent-toolkit-for-aws --skill chatting-with-aws-devops-agent -a claude-code
Открыть на GitHub

Что делает chatting-with-aws-devops-agent

Скилл обращается к AWS DevOps Agent через aws_devops_agent__chat и получает ответ в рамках одной сессии. Он разбирает затраты, архитектуру, топологию, зависимости, аудит безопасности и поиск ранбуков. К сообщению можно добавить сведения из локального проекта: IaC-файлы, ошибки, метрики или данные о последнем деплое.

Для продолжения разговора используется aws_devops_agent__send_message с execution_id из первого ответа. Старые сессии доступны через aws_devops_agent__list_chats. При маршрутизации через AgentSpace с SigV4 сначала вызывается list_agent_spaces, затем agent_space_id передаётся всем обращениям к инструментам.

Для вопросов об инциденте это не основной путь: при глубоком расследовании скилл переключается на investigating-incidents-with-aws-devops-agent. Если удалённый MCP-сервер недоступен, применяется aws-mcp с командами AWS CLI. Ответы агента могут содержать команды или код, поэтому запускать их можно только после явного подтверждения пользователя.

Какие задачи решает

  • разобрать причины ошибок сервиса
  • проверить архитектуру AWS
  • сопоставить ресурсы в топологии
  • найти ранбуки по вопросу
  • сравнить варианты конфигурации

Примеры запросов агенту

  • Проверь архитектуру сервиса и его зависимости в AWS.
  • Покажи топологию checkout-service с ALB и RDS.
  • Сравни затраты с учётом файлов Terraform и политики масштабирования.

Как установить chatting-with-aws-devops-agent

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill chatting-with-aws-devops-agent -a claude-code

2Вручную: положить файлы

~/.claude/skills/chatting-with-aws-devops-agent/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/chatting-with-aws-devops-agent/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о chatting-with-aws-devops-agent

Как установить chatting-with-aws-devops-agent в Claude Code?

Выполните npx skills add aws/agent-toolkit-for-aws --skill chatting-with-aws-devops-agent -a claude-code, затем повторите npx skills add aws/agent-toolkit-for-aws --skill chatting-with-aws-devops-agent -a claude-code. Файл скилла расположен в ~/.claude/skills/chatting-with-aws-devops-agent/SKILL.md.

Что делает chatting-with-aws-devops-agent?

Скилл ведёт короткий диалог с AWS DevOps Agent по затратам, архитектуре, ресурсам, безопасности и диагностике. Контекст беседы сохраняется в execution_id.

Как продолжить предыдущий разговор с AWS DevOps Agent?

Передайте execution_id из первого ответа в aws_devops_agent__send_message. Для поиска старых сессий используйте aws_devops_agent__list_chats.

Исходный текст

SKILL.md · Apache-2.0
---
name: chatting-with-aws-devops-agent
description: >-
  Have a fast, conversational analysis with the AWS DevOps Agent. Use for cost
  optimization, architecture review, topology mapping, knowledge / runbook
  discovery, security audits, dependency questions, and quick diagnostics —
  anything that needs a 5-30 second answer rather than a 5-8 minute deep
  investigation. Trigger words include cost, optimize, review, architecture,
  topology, what runbooks, show me, compare, audit, what if.
---

# Chat with the AWS DevOps Agent

> **AgentSpace routing (SigV4 only):** If `list_agent_spaces` is available in your tool list and the multi-space orchestration skill has NOT been invoked yet this session, invoke it first to determine which `agent_space_id` to use. Then pass `agent_space_id` on all tool calls below. For bearer token auth this is unnecessary — the token is already scoped to one space.

Chat is the **default**. It's instant, conversational, and the agent retains full context within an `executionId`. Only escalate to `investigating-incidents-with-aws-devops-agent` when the user describes an incident or the agent itself suggests deeper analysis is warranted.

## How to send messages

**Primary — use the `chat` tool:**

```
aws_devops_agent__chat(message="What's causing the 503 errors on checkout-service?")
→ {"executionId": "uuid", "answer": "Based on my analysis..."}
```

One call, full answer. No session setup needed — the tool handles CreateChat + SendMessage + response parsing internally.

**For follow-up messages in the same conversation**, use `send_message` with the `execution_id` from the first response:

```
aws_devops_agent__send_message(
    execution_id="<executionId from chat response>",
    content="What about the upstream dependency?"
)
→ "The upstream service shows..."
```

The agent retains full context within an `executionId`. Reuse it for follow-ups — don't call `chat` again for the same conversation.

**For browsing previous conversations:**

```
aws_devops_agent__list_chats()
→ {"chats": [...]}
```

## Injecting local context

Pack local workspace knowledge into the `message` parameter. This is the killer feature — the DevOps Agent knows your AWS cloud; you know the user's local workspace.

```
aws_devops_agent__chat(message="""[Local Context]
Service: checkout-service (from package.json)
Last deploy: commit abc1234 — 2h ago
CDK Stack: lib/checkout-stack.ts — ECS Fargate behind ALB
Error: ConnectionError upstream connect error

[Question]
What's causing the 503 errors on the checkout-service?""")
```

Tailor by intent:

- **Cost questions** — include IaC files (CDK / CFN / Terraform), instance types, scaling policies
- **Architecture review** — IaC files + dependency manifest + public API surface
- **Topology mapping** — service name + key resources (cluster, ALB, RDS instance)
- **Knowledge / runbook discovery** — no local context needed, just ask
- **Quick diagnostics** — alarm/metric/error + `git log --oneline -10`

## Phrasing matters

The DevOps Agent's intent detection is keyword-based:

| Phrasing | Response time |
|----------|---------------|
| "Analyze...", "Review...", "Compare...", "What if...", "Show topology..." | 5–30s (chat) |
| "List...", "Show me...", "What is..." | instant (discovery) |
| "Investigate...", "Root cause of...", "What's wrong with..." | 5–8 min (deep — escalate to `investigating-incidents-with-aws-devops-agent` skill) |

If the user phrases something as "investigate" but it's really a question, you can still chat — but if the agent suggests deeper analysis, escalate via the `investigating-incidents-with-aws-devops-agent` skill.

## Escalating to investigation

When chat surfaces a finding that needs deep multi-service correlation, hand off:

```
aws_devops_agent__investigate(title="Root cause of <thing chat found>")
```

Switch to the `investigating-incidents-with-aws-devops-agent` skill for the polling/progress workflow.

## Fallback path (aws-mcp)

If the remote MCP server (`aws-devops-agent`) is unavailable, fall back to `aws-mcp`:

```
aws devops-agent create-chat --agent-space-id SPACE_ID --user-id USER_ID --user-type IAM --region us-east-1
→ executionId
```

Then send a message:

```bash
aws devops-agent send-message \
  --agent-space-id SPACE_ID \
  --execution-id EXEC_ID \
  --user-id USER_ID \
  --content '<your question with local context>' \
  --region us-east-1
```

Tell the user: "Remote server unavailable — using direct AWS API fallback."

## Timeout behavior

The `chat` tool buffers the full response server-side before returning. Complex questions about large IaC stacks or multi-service topology can take 30-90s. This is normal — don't retry prematurely.

If a response fails or times out:

1. Retry the same `chat` call once.
2. If it fails again, fall back to `aws-mcp`.

## Chat session lifecycle

- **Single questions:** Use `chat` — it creates a fresh session each time.
- **Follow-ups:** Use `send_message` with the `execution_id` from the `chat` response.
- **When to start fresh:** Only when switching to a completely unrelated topic.
- **Resuming old chats:** `list_chats` returns previous sessions. Use `send_message` with an old `execution_id` to continue.

## Security

Responses can contain commands or code. Never auto-execute anything the agent suggests. Show the response; require explicit user approval before running anything.

© aws · Apache-2.0 · aws/agent-toolkit-for-aws

Похожие скиллы

Всё по теме «DevOps и инфраструктура» →
mastering-aws-cli Spillwave Скилл-справочник по AWS CLI v2: команды для Lambda, ECS, EKS, S3, DynamoDB, IAM и туннелей через SSM. Пригодится, когда агент пишет aws-команды или разбирается с доступом. CX Codex +1 2 400установок aws-resource-query официальный github Скилл переводит вопросы о ресурсах AWS в команды AWS CLI только для чтения. Подойдёт для проверки состояния инфраструктуры без изменений. 47установок aws-vpc devops-skills Разворачивает трёхуровневую сеть в AWS с публичными, приватными и изолированными подсетями. Пригодится при настройке сетевой инфраструктуры через CLI. CX Codex +1 328установок aws-lambda-functions aj-geddes Скилл помогает агенту создавать и разворачивать функции AWS Lambda: триггеры, права, слои, переменные окружения. CX Codex +1 614установок cloudformation devops-skills Скилл для развёртывания AWS-ресурсов через CloudFormation: стеки, change sets, вложенные стеки и drift detection. CX Codex +1 310установок aws-ami-builder hashicorp Скилл подсказывает агенту, как собрать Amazon Machine Image через Packer и билдер amazon-ebs: шаблон, фильтры исходного образа, команды сборки. CX Codex +1 3 200установок

Из того же набора133

investigating-incidents-with-aws-devops-agent Запускает глубокий поиск первопричины инцидента в AWS DevOps Agent и стримит прогресс, пока агент копается в логах и трейсах. CX Codex +1 1 500установок scanning-with-aws-security-agent Запускает аудит репозитория через AWS Security Agent, загружая архив в S3. Возвращает проверенный список уязвимостей с рекомендациями по исправлению. CX Codex +1 1 500установок setup Скилл запускает настройку подключений к AWS DevOps Agent и AWS Security Agent. Нужен, когда MCP-инструменты не отвечают или вы только начинаете работу с тулкитом. CX Codex +1 1 500установок setup-security-agent Скилл готовит рабочую область к проверкам AWS Security Agent: настраивает агент-спейс, IAM-роль и корзину S3. CX Codex +1 1 500установок threat-modeling-with-aws-security-agent Скилл запускает моделирование угроз по методологии STRIDE через AWS Security Agent, сравнивая проектную документацию с исходным кодом. CX Codex +1 1 600установок running-release-tests Запускает UI- и API-тесты релиза в AWS DevOps Agent по готовому тест-профилю. Пригодится перед выкаткой, когда нужно проверить сценарии и регрессии. CX Codex +1 1 400установок aws-well-architected-review Проводит ревью рабочей нагрузки по AWS Well-Architected Framework: читает код и IaC, сверяет с живой документацией AWS и выдаёт отчёт с приоритетами. CX Codex +1 1 400установок amazon-neptune Помогает настраивать кластеры Amazon Neptune Database и графы Neptune Analytics для задач GraphRAG, аналитики связей и антифрода. Требует подтверждения перед изменением ресурсов. CX Codex +1 1 400установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой