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

running-release-tests — скилл для Claude Code: релизные тесты

Запускает UI- и API-тесты релиза в AWS DevOps Agent по готовому тест-профилю. Пригодится перед выкаткой, когда нужно проверить сценарии и регрессии.

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

Что делает running-release-tests

Скилл берёт на себя весь путь от запуска задания до отчёта. Вы называете тест-профиль, агент создаёт задание релизного тестирования, опрашивает статус и собирает находки из журнала выполнения. По завершении отчёт по UI или API сохраняется в markdown-файл вида release-testing-report-<YYYY-MM-DD-HHmmss>.md.

Профиль — это Knowledge Item вроде ki-12345, созданный заранее в консоли AWS DevOps Agent. В нём уже лежат целевой URL, тип агента, персоны и учётные данные, поэтому URL у вас не спросят. Профиль через скилл не создаётся: если его нет, сначала придётся завести его в консоли или через API. Это главное, о что спотыкаются при первом запуске.

Работа идёт через инструменты aws_devops_agent__create_release_testing_job, aws_devops_agent__get_task и aws_devops_agent__list_journal_records. Они не подгружаются лениво, и если их нет в списке, скилл переключается на прямой вызов AWS CLI. Для маршрутизации по AgentSpace нужен SigV4; при авторизации по bearer-токену этого не требуется, потому что токен уже привязан к одному пространству. При 429 или ThrottlingException скилл ждёт 30 секунд и повторяет попытку.

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

  • прогнать UI-сценарий по браузеру перед релизом
  • проверить эндпоинты по OpenAPI-спецификации
  • поймать регрессии в многошаговом сценарии
  • получить отчёт о тестировании в markdown-файле
  • отменить зависшее задание тестирования

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

  • запусти релизные тесты по профилю ki-12345
  • прогони UI-тест на моём приложении, профиль ki-12345
  • проверь API по тест-профилю ki-12345, фокус на оформлении заказа

Как установить running-release-tests

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill running-release-tests -a claude-code

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

~/.claude/skills/running-release-tests/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/running-release-tests/

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

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

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установок chatting-with-aws-devops-agent Скилл отправляет вопросы AWS DevOps Agent для разбора затрат, архитектуры и диагностики. Подходит для короткого диалога по облачной инфраструктуре. CX Codex +1 1 500установок threat-modeling-with-aws-security-agent Скилл запускает моделирование угроз по методологии STRIDE через AWS Security Agent, сравнивая проектную документацию с исходным кодом. CX Codex +1 1 600установок 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установок aws-fault-injection-service Помогает проектировать, запускать и разбирать эксперименты хаос-инжиниринга в AWS FIS. Пригодится при проверке устойчивости сервисов к сбоям зон доступности, баз данных или потере пакетов. CX Codex +1 1 000установок amazon-eventbridge-event-bus Скилл для сборки и отладки приложений на новых кастомных шинах событий EventBridge. Пригодится, когда события расходятся по подписчикам и что-то не доходит. CX Codex +1 1 000установок

Похожие

release-checklist Donchitos Формирует чеклист готовности релиза игры с учётом платформы, открытых багов из QA и требований сертификации вроде Steam или консолей. CX Codex +1 443установок release parcadei Прогоняет релиз через пять субагентов: аудит безопасности, E2E-тесты, финальное ревью, бамп версии и релизные заметки. Пригодится перед выкладкой в прод. CX Codex +1 481установок jackin-release-check jackin-project Прогоняет релизные гейты проекта jackin❯ и выдаёт отчёт по каждому. Нужен перед выпуском версии, когда надо понять, всё ли зелёное. CX Codex +1 469установок release-readiness kindlmann Помогает принять решение о релизе на основе фактов, а не интуиции. Формирует чек-лист go/no-go, критерии отката и план верификации выкатки. CX Codex +1 1 100установок ads-validate AgriciDaniel Гоняет проверки по контрактам, скорингу, бандлам и релизной готовности Claude Ads. Пригодится перед выкаткой и при разборе поломок. CX Codex +1 602установок release-skills JimLiu Автоматизирует подготовку релизов, анализ коммитов и обновление версий в проектах на Node.js, Python или Rust. Сгенерирует ченджлог и создаст GitHub Release. CX Codex +1 25 600установок

Рядом в теме «Тесты и QA»

Всё по теме «Тесты и QA» →

Вопросы о running-release-tests

Как установить running-release-tests в Claude?

Выполните npx skills add aws/agent-toolkit-for-aws --skill running-release-tests -a claude-code. После этого скилл окажется в ~/.claude/skills/running-release-tests/SKILL.md.

Что делает running-release-tests?

Запускает автоматическое релизное тестирование в AWS DevOps Agent по готовому тест-профилю. Поддерживает UI-тесты в браузере и API-тесты по OpenAPI-спецификации, а по завершении сохраняет отчёт в markdown.

Нужен ли готовый тест-профиль?

Да, это обязательное условие. Профиль создаётся в консоли AWS DevOps Agent или через API, скилл его только использует.

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

SKILL.md · Apache-2.0
---
name: running-release-tests
description: >-
  Run automated release testing (UI or API) via the AWS DevOps Agent using a
  pre-configured test profile. Use when the user wants to validate multi-step
  workflows, verify features, check for regressions, or test API endpoints.
  Trigger words include run tests, UAT, test my app, test profile, UI test,
  API test, automated testing, regression test, QA, end-to-end test, run the QA agent.
---

# Release Testing

> **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.

Run automated release testing in the cloud via the AWS DevOps Agent's Release Testing Agent. Supports UI testing (browser-based) and API testing (OpenAPI spec-based). Uses pre-existing test profiles that define target URL, agent type, personas, and credentials.

**Input is a test profile** — the test profile already contains the target URL, agent type (UI or API), test personas, and credentials. Do NOT ask the user for a URL directly; the URL is defined in the test profile.

## Prerequisites

- A pre-existing test profile (Knowledge Item ID like `ki-12345`) created from the AWS DevOps Agent console

## Gathering test parameters

Before starting any workflow, you MUST gather the following parameters. Do NOT proceed to job creation until answered.

### Step 1 — Test profile (required)

Ask the user which test profile to use. The test profile already contains the target URL, agent type (UI or API), test personas, and credentials configuration — these do NOT need to be gathered separately.

**Note:** A pre-existing test profile is a prerequisite. Test profiles are created using the AWS DevOps Agent console or API, not through this tool. If the user asks whether one can be created here, inform them it must already exist.

### Step 2 — Test requirement (optional)

If the user has not already mentioned a test focus, ask:
> "Do you have a specific test requirement or focus area? If not, I'll run a full exploratory test."

Wait for the user's response. If they provide one, use it as the `test_requirement`. If they say no or skip, proceed without it.

**IMPORTANT: You MUST wait for the user to respond before proceeding to job creation.**

## Core workflow

### 1. Select Agent Space

List available agent spaces:

```
aws devops-agent list-agent-spaces --region us-east-1
```

Present the list to the user and ask which agent space they'd like to use. **Do NOT proceed until the user has selected one.** Use the selected `agentSpaceId` as `SPACE_ID` in all subsequent calls.

### 2. Check tool availability

Verify that the following tools are available: `aws_devops_agent__create_release_testing_job`, `aws_devops_agent__get_task`, `aws_devops_agent__list_journal_records`, `aws_devops_agent__get_release_ui_testing_report`, `aws_devops_agent__get_release_api_testing_report`. These tools are NOT deferred/lazy-loaded — if they do not appear in your tool list, they are unavailable. Do NOT search for them via ToolSearch. If any are missing, skip the remaining steps in this section and use the "Fallback (aws-mcp)" path below instead.

### 3. Start the Job

```
aws_devops_agent__create_release_testing_job(
    test_profile_id="ki-12345",
    webhook_event_message="<optional test requirement>"
)
→ {"taskId": "...", "executionId": "...", "status": "started"}
```

Record the **taskId** and **executionId** from the response.

### 4. Poll for Status

Call `aws_devops_agent__get_task(task_id=TASK_ID)` every **30 seconds** until the status transitions to `IN_PROGRESS` or a terminal state.

### 5. Monitor Until Completion

Once `IN_PROGRESS`, poll for progress in a loop:

1. Call `aws_devops_agent__list_journal_records(execution_id=EXEC_ID, order="ASC")` to fetch new findings.
2. Present each record to the user with a friendly progress update.
3. Use `next_token` from the response to fetch only new records on subsequent polls.
4. **Wait 20 seconds** between each poll iteration.
5. Check `aws_devops_agent__get_task(task_id=TASK_ID)` periodically — stop when terminal status (`COMPLETED`, `FAILED`, `CANCELED`, `TIMED_OUT`).

### 6. Present Results

Once the job reaches a terminal status:

- If `COMPLETED`:
  1. Determine the report type from the test profile's agent type (UI or API). Call `aws_devops_agent__get_release_ui_testing_report(execution_id=EXEC_ID)` for UI profiles or `aws_devops_agent__get_release_api_testing_report(execution_id=EXEC_ID)` for API profiles.
  2. Write the report contents to a markdown file:

     ```
     release-testing-report-<YYYY-MM-DD-HHmmss>.md
     ```

  3. Inform the user that the report was saved, including the file path.
- If `FAILED` or `TIMED_OUT`: Present the error information and suggest next steps.
- If `CANCELED`: Inform the user the job was canceled and no report is available.

## Cancelling a job

```
aws_devops_agent__cancel_release_testing_job(task_id=TASK_ID)
```

## Error handling

1. If the task status changes to `FAILED`, stop the workflow and report the error.
2. If the task does not reach `IN_PROGRESS` within 5 minutes, cancel it using `cancel_release_testing_job`.
3. If any output contains "NoCredentialsError", "ExpiredTokenException", or auth failures, suggest the user refresh their credentials or check the bearer token.
4. If throttled (`429` or `ThrottlingException`), wait 30 seconds before retrying. After 3 retries, inform the user.

## Fallback (aws-mcp)

If the `aws-devops-agent` remote server is unavailable, use the AWS CLI directly:

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

### 1. Select Agent Space

List available agent spaces:

```
aws devops-agent list-agent-spaces --region us-east-1
```

Present the list to the user and ask which agent space they'd like to use. **Do NOT proceed until the user has selected one.** Use the selected `agentSpaceId` as `SPACE_ID` in all subsequent calls.

### 2. Start the Job

```
aws devops-agent create-backlog-task \
  --agent-space-id SPACE_ID \
  --task-type RELEASE_TESTING \
  --title 'Release Testing' \
  --priority MEDIUM \
  --description '{\"testProfileId\": \"<PROFILE_ID>\", \"webhookEventMessage\": \"<REQUIREMENT>\"}' \
  --region us-east-1
```

If the user provided a test requirement, include it as `webhookEventMessage`. If not, omit the field or leave it empty.

### 3. Poll for Status

```
aws devops-agent get-backlog-task \
  --agent-space-id SPACE_ID \
  --task-id TASK_ID \
  --region us-east-1
```

Poll every **30 seconds** until the status transitions to `IN_PROGRESS` or a terminal state (`COMPLETED`, `FAILED`, `CANCELED`, `TIMED_OUT`).

### 4. Monitor Until Completion

Once `IN_PROGRESS`, poll for progress in a loop:

```
aws devops-agent list-journal-records \
  --agent-space-id SPACE_ID \
  --execution-id EXEC_ID \
  --order ASC \
  --region us-east-1
```

1. Present each record to the user with a friendly progress update.
2. Use `next_token` from the response to fetch only new records on subsequent polls.
3. **Wait 20 seconds** between each poll iteration.
4. Check `get-backlog-task` periodically — stop when terminal status (`COMPLETED`, `FAILED`, `CANCELED`, `TIMED_OUT`).

### 5. Present Results

Once the job reaches a terminal status:

- If `COMPLETED`:
  1. Retrieve the report using the appropriate record type:
     - **UI testing**: `--record-type qa_ui_testing_report`
     - **API testing**: `--record-type qa_api_testing_report`

     ```
     aws devops-agent list-journal-records \
       --agent-space-id SPACE_ID \
       --execution-id EXEC_ID \
       --record-type qa_ui_testing_report \
       --order ASC \
       --region us-east-1
     ```

  2. Write the report contents to a markdown file:

     ```
     release-testing-report-<YYYY-MM-DD-HHmmss>.md
     ```

  3. Inform the user that the report was saved, including the file path.
- If `FAILED` or `TIMED_OUT`: Present the error information and suggest next steps.
- If `CANCELED`: Inform the user the job was canceled and no report is available.

#### Cancelling (fallback)

```
aws devops-agent update-backlog-task \
  --agent-space-id SPACE_ID \
  --task-id TASK_ID \
  --task-status CANCELED \
  --region us-east-1
```

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

Смотрите также

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

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