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

agents-build — скилл для Claude Code: расширяет проект агента

Добавляет к готовому проекту агента память, VPC, мультиагентную схему, Browser, Code Interpreter и платежи. Нужен, когда проект уже работает и его надо достроить.

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

Что делает agents-build

Скилл читает agentcore/agentcore.json, определяет по вашему запросу нужное направление и подгружает соответствующий файл-инструкцию из references/. Дальше идёт по его шагам. Если файла проекта нет, скилл поищет его в родительских каталогах на три уровня вверх и спросит, не в том ли вы каталоге. Не найдёт нигде — предложит сначала создать проект.

Внутри разбор по возможностям: память между сессиями, вызов агента из приложения, VPC для приватных ресурсов вроде RDS, оркестратор со специалистами, миграция с Bedrock Agent, Browser, Code Interpreter, платежи через x402 и MPP, удаление ресурсов. Смена модели делается прямо в скилле: правится model_id в BedrockModel() внутри app/<AgentName>/model/load.py. Префикс профиля (us., eu., apac., global.) задаёт регион инференса.

Перед первым запуском проверьте версию CLI: нужна agentcore 0.9.0 или новее, иначе скилл попросит выполнить agentcore update. Это не тот инструмент, чтобы чинить сломанное: ошибки, неверные ответы и падения инструментов уходят в agents-debug, а подключение внешних API через Gateway — в agents-connect.

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

  • включить память агента между сессиями
  • вызвать развёрнутого агента из React-приложения
  • настроить VPC, чтобы агент видел RDS и внутренние API
  • собрать оркестратор со специалистами и делегированием
  • перенести существующий Bedrock Agent на AgentCore

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

  • добавь агенту память, чтобы он помнил предпочтения пользователя
  • настрой VPC, агент не достаёт до внутреннего API
  • переключи модель на Haiku, чтобы сэкономить

Как установить agents-build

1Через Skills CLI (Vercel)

npx skills add aws/agent-toolkit-for-aws --skill agents-build -a claude-code

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

~/.claude/skills/agents-build/SKILL.md

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

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

Вопросы о agents-build

Как установить agents-build в Claude?

Выполните npx skills add aws/agent-toolkit-for-aws --skill agents-build -a claude-code. Скилл встанет в ~/.claude/skills/agents-build/SKILL.md.

Что делает agents-build?

Достраивает уже существующий проект агента: память, интеграция с приложением, VPC, мультиагентная схема, миграция, Browser, Code Interpreter, платежи и удаление ресурсов. По запросу подгружает нужную инструкцию из references/ и ведёт по её шагам.

Чем agents-build отличается от agents-connect и agents-debug?

agents-build добавляет новые возможности в рабочий проект. Подключение внешних API и MCP-серверов через Gateway — это agents-connect, а ошибки CLI и dev-сервера — agents-debug.

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

SKILL.md · Apache-2.0
---
name: agents-build
description: >
  Use to extend an existing agent project with memory, app integration,
  VPC, multi-agent, migration, model, browser, code interpreter,
  payments, or resource removal. Triggers: "add memory",
  "remember across sessions", "call agent from app", "invoke agent from
  code", "agent auth", "streaming", "VPC", "VPC
  connectivity", "can't reach from VPC", "multi-agent",
  "A2A", "A2A auth", "orchestrator not delegating", "specialist not
  called", "migrate Bedrock Agent", "migration issue", "change model",
  "browser tool", "code
  interpreter", "delete agent", "tear down", "agentcore remove",
  "cross-account memory",
  "add payments capability to my agent", "wire payments plugin",
  "integrate x402 payments with the agent I'm building",
  "add MPP payments", "Machine Payments Protocol".
  External APIs via Gateway: use agents-connect. New project:
  use agents-get-started. CLI/dev-server errors: use agents-debug.
  Runtime x402/MPP payments: use agents-pay. Migration-specific Strands vs
  LangGraph routes here.
allowed-tools: Read Grep Glob Bash
metadata:
  type: skill
  version: "1.0.0"
  author: aws-agentcore
  requires-cli: ">=0.9.0"
---

# build

Add capabilities to your AgentCore agent project.

## When to use

- Adding cross-session memory to your agent
- Calling your deployed agent from a web app, mobile app, or backend service
- Configuring VPC networking for private resources (RDS, internal APIs)
- Building multi-agent systems with orchestrator/specialist patterns
- Migrating an existing Bedrock Agent to AgentCore
- Adding the Browser tool so the agent can navigate websites
- Adding the Code Interpreter so the agent can execute code in a sandbox
- Adding AgentCore Payments so the agent can pay for x402- or MPP-protected APIs, tools, or content
- Removing resources from your project or tearing down a deployment

Do NOT use for:

- Connecting to external tools/APIs via Gateway (OpenAPI specs, Lambda, MCP servers, credentials, policies) → use `agents-connect`
- Scaffolding a new project → use `agents-get-started`
- Deploying → use `agents-deploy`

## Input

`$ARGUMENTS` can be:

- A capability: "memory", "integrate", "vpc", "multi-agent", "migrate", "browser", "code-interpreter", "payments", "teardown"
- A description of what they want: "remember user preferences", "call from React app", "scrape a website", "run pandas in the agent", "delete my agent", "clean up resources"
- Empty — the skill will determine the workflow from context

## Process

### Step 0: Verify CLI version

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

If older: "Run `agentcore update` to get the latest version."

### Step 1: Read project context

Read `agentcore/agentcore.json` to understand the current project — framework, existing resources, agent configuration.

If `agentcore/agentcore.json` is not found:

1. **Check if the developer is in the wrong directory.** Look for `agentcore/agentcore.json` in parent directories (up to 3 levels). If found, tell them: "Found an AgentCore project at `<path>`. Are you working in that project?"
2. **If no project exists anywhere nearby**, ask what capability they wanted to add. Then offer two paths:
   - "I can walk you through creating a project first and then adding CAPABILITY — want to do that?" (run the get-started flow inline, then continue with the build workflow)
   - "If you already have a project elsewhere, `cd` into it and try again."

Do not just say "go use agents-get-started" and stop — that loses the developer's context about what they actually wanted to do.

### Step 2: Determine the workflow

**Important disambiguation** — before routing to a build reference, check if the prompt is actually a connect or debug concern:

- If the phrase mentions external APIs, Lambda functions, OpenAPI specs, gateways, credentials, MCP servers, or policies → this is `agents-connect`, not build
- If the developer says something is broken (wrong answers, errors, tool failures) → this is `agents-debug`, not build
- Build is for **adding new capabilities** to a working project, not fixing broken ones

Based on the developer's prompt and `$ARGUMENTS`, load the appropriate reference:

| Developer intent | Reference to load |
|---|---|
| Add memory, remember things, user preferences, cross-session | [`references/memory.md`](references/memory.md) |
| Call agent from app, invoke from code, streaming, SDK client, agent URL, execute shell in session | [`references/integrate.md`](references/integrate.md) |
| VPC, private network, RDS, internal API, subnet, security group | [`references/vpc.md`](references/vpc.md) |
| Multi-agent, orchestrator, specialist, A2A, delegation, agent handoff | [`references/multi-agent.md`](references/multi-agent.md) |
| Custom headers from caller to agent, header allowlist, tenant ID/correlation ID/trace propagation | [`references/request-headers.md`](references/request-headers.md) |
| Migrate Bedrock Agent, import agent, move to AgentCore | [`references/migrate.md`](references/migrate.md) |
| Browser tool, web navigation, form filling, scraping, Nova Act, Playwright, live view | [`references/browser.md`](references/browser.md) |
| Code Interpreter, execute code, sandbox, run Python/JS/TS, data analysis in agent, pandas | [`references/code-interpreter.md`](references/code-interpreter.md) |
| Payments, pay for x402 or MPP content, 402 Payment Required, Machine Payments Protocol, WWW-Authenticate: Payment, microtransactions, paid API/tool, payment manager/connector | [`references/payments.md`](references/payments.md) |
| Delete agent, remove resource, tear down, clean up, destroy, start fresh | [`references/teardown.md`](references/teardown.md) |
| Change model, switch model, use Haiku/Sonnet/Nova, different model | Inline — see "Changing the model" below |

If the developer asks about the difference between local dev and deployed (e.g., "why does my memory work after deploy but not locally?"), load [`references/local-vs-deployed.md`](references/local-vs-deployed.md) alongside the specific workflow reference.

Read the matching file into context and follow its Process section step by step — do not summarize.

If the intent is ambiguous, ask the developer which capability they want to add.

### Changing the model

The model is configured in `app/<AgentName>/model/load.py` (scaffolded by `agentcore create`). To change it:

1. Open `app/<AgentName>/model/load.py`
2. Change the `model_id` parameter in the `BedrockModel()` constructor

```python
# Default (scaffolded by CLI)
return BedrockModel(model_id="global.anthropic.claude-sonnet-4-5-20250929-v1:0")

# Switch to Haiku for cost savings
return BedrockModel(model_id="us.anthropic.claude-3-5-haiku-20241022-v1:0")

# Switch to Nova Lite
return BedrockModel(model_id="amazon.nova-lite-v1:0")
```

Cross-region inference profile prefixes (`us.`, `eu.`, `apac.`, `global.`) control where inference runs. Use `global.` for maximum throughput, or a geographic prefix for data residency. Not all models support all prefixes — check the Bedrock inference profiles docs.

After changing the model:

- Verify the model is enabled in your region: AWS Console → Amazon Bedrock → Model access
- For cross-region profiles, enable in all destination regions
- If using `agents-harden`, update the IAM policy to scope to the new model ARN
- Run `agentcore dev` to test locally, then `agentcore deploy` to update the deployed agent

No `agentcore.json` change is needed — the model is configured in code, not in the project config.

### Pre-flight: validate any `--name` before generating the CLI command

Whichever reference you load, most end up producing an `agentcore add <resource> --name <something>` command. The CLI fails **late** on invalid names — you'll see the error after walking through prompts, not before running the command. Validate up front:

| Resource | Max chars | Allowed | Starts with |
|---|---|---|---|
| Agent (`add agent`) | 48 | alphanumeric + `_` | letter |
| Memory, gateway, gateway-target, credential, evaluator, online-eval, policy, policy-engine, payment-manager, payment-connector | 48 | alphanumeric + `_` | letter |

Count the characters before constructing the command. If the name is over the limit or contains hyphens, dots, or spaces, push back: "`<name>` is N characters / uses `-`, which the CLI rejects. How about `<suggestion>`?" Never run the command with an invalid name hoping the CLI message will be clear.

Note: `agentcore create --name` (the project name) has a **stricter 23-char limit** and does not allow underscores. That's covered in `agents-get-started`; if you see the developer re-running create, flag the 23-char limit specifically.

## Output

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

## Quality criteria

- The correct reference was loaded based on the developer's intent
- All output follows the loaded reference's quality criteria
- Cross-references to other skills (agents-connect, agents-deploy) are included where relevant

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

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

Все скиллы по теме «Настройка агента: память, контекст, субагенты» →
aws-agentic-ai zxkane Скилл ведёт агента по девяти сервисам AWS Bedrock AgentCore: развёртывание, MCP-шлюз, память, реестр и оценка качества. CX Codex +1 650установок dr-bedrock cline Разбирает ошибки авторизации и региона AWS Bedrock в Cline CLI: находит причину и подсказывает, что поправить. CX Codex +1 692установок aws-sdk-java-v2-bedrock giuseppe-trisciuoglio Скилл подсказывает агенту, как вызывать модели Amazon Bedrock через AWS SDK for Java 2.x: текст, картинки, эмбеддинги и стриминг. CX Codex +1 3 700установок gcp-to-aws cline Проводит миграцию рабочих нагрузок с Google Cloud на AWS в шесть фаз: от инвентаризации ресурсов до генерации артефактов и оценки затрат. CX Codex +1 647установок draw-io davila7 Скилл для Claude, который правит .drawio XML, конвертирует файлы в PNG и подгоняет расположение элементов на схеме. 757установок aws-architecture-diagram vidanov Собирает архитектурные схемы AWS в виде файлов .drawio с официальными иконками и по запросу выгружает их в PNG, SVG или PDF. CX Codex +1 756установок

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

agents-get-started Помогает создать нового агента в AWS AgentCore: выбрать подходящий фреймворк, подготовить шаблон проекта и выполнить первый запуск. CX Codex +1 2 000установок agents-connect Скилл для Claude и других ИИ-редакторов: помогает подключить агента к внешним API, MCP-серверам и Lambda через AgentCore Gateway и ограничить доступ Cedar-политиками. CX Codex +1 2 000установок agents-debug Скилл читает трейсы и логи AgentCore и находит причину ошибок, таймаутов и сбоев вызовов инструментов. Пригодится, когда агент отвечает неправильно или CLI не запускается. CX Codex +1 2 000установок agents-deploy Проверяет конфигурацию, запускает деплой агентов AgentCore в AWS и разбирает сбои CDK, IAM или квот. Пригодится при релизах, настройке канареечного развёртывания и откатах. CX Codex +1 2 000установок aws-secrets-manager Учит агента не таскать plaintext-секреты через контекст. Вместо прямого вызова get-secret-value — динамические ссылки, которые раскрывает asm-exec уже в дочернем процессе. CX Codex +1 1 900установок agents-harden Проверяет готовность агентов Bedrock AgentCore к релизу. Помогает урезать права IAM, настроить авторизацию вызовов и подготовить проект к нагрузкам. CX Codex +1 2 000установок agents-optimize Скилл измеряет качество и производительность AgentCore-агента: настраивает оценки, мониторинг, наблюдаемость и контроль затрат. CX Codex +1 2 000установок amazon-workspaces-agent-access Скилл обучает ИИ-агента управлять удалёнными Windows-приложениями в Amazon WorkSpaces Applications через MCP. Он нужен при настройке стриминга и автоматизации интерфейса. CX Codex +1 1 800установок

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

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