既存のエージェント(自動処理プログラム)プロジェクトにメモリ機能、アプリ連携、VPC(仮想ネットワーク)、複数エージェント連携、移行、モデル選択、ブラウザ、コード実行、決済機能、またはリソース削除などを追加する場合に使用します。 **対応するトリガーワード:** 「メモリを追加」「セッションをまたいで記憶」「アプリからエージェントを呼び出し」「コードからエージェントを実行」「エージェント認証」「ストリーミング」「VPC」「VPC接続」「VPCからアクセスできない」「複数エージェント」「A2A(エージェント間通信)」「A2A認証」「オーケストレータが委譲していない」「スペシャリストが呼ばれない」「Bedrock Agentを移行」「移行に関する問題」「モデルを変更」「ブラウザツール」「コード実行」「エージェント削除」「クリーンアップ」「agentcore remove」「クロスアカウントメモリ」「エージェントに決済機能を追加」「決済プラグインを統合」「エージェントにx402決済を統合」「MPP決済を追加」「Machine Payments Protocol(マシーンペイメントプロトコル:機械間決済の仕組み)」 **その他の関連リソース:** - 外部APIをゲートウェイ経由で使用: agents-connect を参照 - 新規プロジェクト: agents-get-started を参照 - CLIおよび開発サーバーエラー: agents-debug を参照 - ランタイム環境でのx402/MPP決済: agents-pay を参照 - 移行固有の技術選択(Strands対LangGraph)については別途ルートで確認
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.
AgentCoreエージェント プロジェクトに機能を追加します。
次の場合には使用しないでください
agents-connect を使用agents-get-started を使用agents-deploy を使用$ARGUMENTS には以下のいずれかを指定できます:
agentcore --version を実行してください。このスキルはバージョン0.9.0以上が必要です。
古いバージョンの場合は、「agentcore update を実行して最新版を入手してください」と案内します。
agentcore/agentcore.json を読み込み、現在のプロジェクト(フレームワーク、既存リソース、エージェント設定)を把握します。
agentcore/agentcore.json が見つからない場合:
agentcore/agentcore.json を探します。見つかった場合は、「<パス> にAgentCoreプロジェクトが見つかりました。そのプロジェクト内で作業していますか?」と伝えます。cd でそこに移動してからもう一度試してください」単に「agents-get-startedを使ってください」と言って終わらないでください — 開発者が本当にやりたいことの文脈が失われてしまいます。
重要な確認 — ビルド関連のリファレンスに進む前に、プロンプトが実は接続設定やデバッグに関する内容ではないか確認してください:
agents-connect ですagents-debug です開発者のプロンプトと $ARGUMENTS に基づいて、適切なリファレンスを読み込みます:
| 開発者の意図 | 読み込むリファレンス |
|---|---|
| メモリを追加する、記憶させる、ユーザー設定、セッション間の情報保持 | references/memory.md |
| アプリからエージェントを呼び出す、コードから実行する、ストリーミング、SDKクライアント、エージェント URL、セッション内でシェルコマンドを実行 | references/integrate.md |
| VPC、プライベートネットワーク、RDS、社内API、サブネット、セキュリティグループ | references/vpc.md |
| マルチエージェント、オーケストレータ、スペシャリスト、エージェント間通信、委譲、エージェント間の引き継ぎ | references/multi-agent.md |
| 呼び出し元からエージェントへのカスタムヘッダー、ヘッダーホワイトリスト、テナントID、関連付けID、トレース伝搬 | references/request-headers.md |
| Bedrockエージェントから移行する、エージェントをインポートする、AgentCoreへ移動 | references/migrate.md |
| ブラウザ機能、ウェブ操作、フォーム記入、スクレイピング、Nova Act、Playwright、ライブビュー | references/browser.md |
| コード実行環境、コードを実行する、サンドボックス、Python・JavaScript・TypeScriptを実行、エージェント内でデータ分析 | references/code-interpreter.md |
| 支払い処理、x402またはMPP(機械支払いプロトコル)のコンテンツに対して支払う、402 Payment Required、WWW-Authenticate: Payment、小額決済、有料API・ツール、支払いマネージャー・コネクタ | references/payments.md |
| エージェントを削除する、リソースを削除する、デプロイを削除する、掃除する、破棄する、ゼロから始める | references/teardown.md |
| モデルを変更する、モデルを切り替える、Haiku・Sonnet・Novaを使う、別のモデル | インライン説明 — 下の「モデルの変更」を参照 |
開発者がローカル開発とデプロイの違いについて質問した場合(例:「デプロイ後はメモリが動くのにローカルでは動かないのはなぜ?」)、特定のワークフローリファレンスと一緒に references/local-vs-deployed.md も読み込みます。
マッチするファイルをコンテキストに読み込み、そのProcess セクションをステップバイステップで従います — 要約してはいけません。
意図が曖昧な場合は、開発者にどの機能を追加したいのか確認してください。
モデルは app/<AgentName>/model/load.py(agentcore create でスカフォルディングされたファイル)で設定されています。変更するには:
app/<AgentName>/model/load.py を開くBedrockModel() コンストラクタの model_id パラメータを変更する# デフォルト(agentcore create でスカフォルディング)
return BedrockModel(model_id="global.anthropic.claude-sonnet-4-5-20250929-v1:0")
# コスト削減のためHaikuに切り替え
return BedrockModel(model_id="us.anthropic.claude-3-5-haiku-20241022-v1:0")
# Nova Liteに切り替え
return BedrockModel(model_id="amazon.nova-lite-v1:0")
リージョン間推論プロファイルプレフィックス(us.、eu.、apac.、global.)は、推論が実行される場所を制御します。最大スループットには global. を使用するか、データの保存地域が特定地域に限定される場合は地理的なプレフィックスを使用してください。すべてのモデルがすべてのプレフィックスに対応しているわけではありません — Bedrockの推論プロファイルドキュメントで確認してください。
モデルを変更した後:
agents-harden を使用している場合は、IAMポリシーを新しいモデルARNにスコープを限定するよう更新してくださいagentcore dev を実行してローカルでテストし、その後 agentcore deploy を実行してデプロイ済みエージェントを更新してくださいagentcore.json の変更は不要です — モデルはプロジェクト設定ではなく、コード内で設定されています。
--name の値を検証する読み込むリファレンスに関わらず、ほとんどは最終的に agentcore add <resource> --name <something> というコマンドになります。CLIは後になってから無効な名前で失敗します — プロンプトを全部進めた後にエラーが表示される、コマンド実行前ではありません。事前に検証してください:
| リソース | 最大文字数 | 許可される文字 | 開始文字 |
|---|---|---|---|
エージェント(add agent) |
48 | 英数字 + _ |
英字 |
| メモリ、ゲートウェイ、ゲートウェイターゲット、認証情報、評価器、オンライン評価、ポリシー、ポリシーエンジン、支払いマネージャー、支払いコネクタ | 48 | 英数字 + _ |
英字 |
コマンドを構築する前に文字数を数えます。名前が上限を超えているか、ハイフン、ドット、スペースを含む場合は、「<name> は N 文字です / - を使用していますが、CLIはこれを受け入れません。例えば <suggestion> はどうですか?」と提案します。無効な名前でコマンドを実行しないでください。CLIのメッセージが明確だろうと期待してはいけません。
注:agentcore create --name(プロジェクト名)にはより厳しい23文字の上限があり、アンダースコアは許可されません。これは agents-get-started で説明されています。開発者が create を再実行する場合は、23文字の上限を具体的に指摘してください。
ワークフローに応じて異なります — 読み込んだリファレンスの出力セクションを参照してください。
agents-connect、agents-deploy などの他のスキルへのクロスリファレンスが適切に含まれているAdd capabilities to your AgentCore agent project.
Do NOT use for:
agents-connectagents-get-startedagents-deploy$ARGUMENTS can be:
Run agentcore --version. This skill requires v0.9.0 or later.
If older: "Run agentcore update to get the latest version."
Read agentcore/agentcore.json to understand the current project — framework, existing resources, agent configuration.
If agentcore/agentcore.json is not found:
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?"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.
Important disambiguation — before routing to a build reference, check if the prompt is actually a connect or debug concern:
agents-connect, not buildagents-debug, not buildBased 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 |
| Call agent from app, invoke from code, streaming, SDK client, agent URL, execute shell in session | references/integrate.md |
| VPC, private network, RDS, internal API, subnet, security group | references/vpc.md |
| Multi-agent, orchestrator, specialist, A2A, delegation, agent handoff | references/multi-agent.md |
| Custom headers from caller to agent, header allowlist, tenant ID/correlation ID/trace propagation | references/request-headers.md |
| Migrate Bedrock Agent, import agent, move to AgentCore | references/migrate.md |
| Browser tool, web navigation, form filling, scraping, Nova Act, Playwright, live view | references/browser.md |
| Code Interpreter, execute code, sandbox, run Python/JS/TS, data analysis in agent, pandas | 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 |
| Delete agent, remove resource, tear down, clean up, destroy, start fresh | 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 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.
The model is configured in app/<AgentName>/model/load.py (scaffolded by agentcore create). To change it:
app/<AgentName>/model/load.pymodel_id parameter in the BedrockModel() constructor# 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:
agents-harden, update the IAM policy to scope to the new model ARNagentcore dev to test locally, then agentcore deploy to update the deployed agentNo agentcore.json change is needed — the model is configured in code, not in the project config.
--name before generating the CLI commandWhichever 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.
Depends on the workflow — see the loaded reference for specific outputs.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。