Community라이팅 & 에디팅github.com

alexaiarchitect/agentcore-skills

Amazon Bedrock AgentCore 리소스를 인프라 코드(IaC)로 스캐폴딩합니다: Runtime(ECR 리포지토리, 서비스 역할, JWT 인증자 포함 `aws_bedrockagentcore_agent_runtime` 및 라이프사이클 설정), Gateway(역할, JWT 인증자, 고정된 MCP 리비전, 하나의 대상), Identity(Cognito M2M 클라이언트와 쓰기 전용 시크릿을 포함한 OAuth2 자격 증명 제공자), Memory(메모리, 전략, 고객 관리 키). 기본값은 Terraform 모듈이며 권장 사항입니다. TypeScript CDK 스택(`aws-bedrockagentcore` L1 구조체 사용)과 AgentCore CLI(`@aws/agentcore`) 명령어는 이미 해당 도구를 사용 중인 팀을 위해 제공됩니다. 모든 쓰기 작업은 먼저 계획(`--dry-run`)을 표시하며, 기존 파일은 `--force` 없이 덮어쓰지 않습니다. 계획 또는 적용만 수행합니다. 'AgentCore Runtime 생성', 'Gateway 스캐폴딩', 'AgentCore 메모리 추가', 'AgentCore용 Terraform 작성', '새 AgentCore 스택 시작', 'CDK 제공' 요청 시 사용하세요. 기존 Lambda, HTTP 앞단의 Gateway에는 사용하지 마세요.

agentcore-skills란 무엇인가요?

이 스킬은 Amazon Bedrock AgentCore 리소스를 인프라 코드로 생성하는 프로세스를 자동화합니다. Terraform 모듈(권장), TypeScript CDK 스택, 또는 AgentCore CLI 명령어 등 세 가지 옵션을 지원하며, 모든 리소스는 리뷰 가능한 모듈 형태로 제공되어 클릭 한 번으로 재현 불가능한 콘솔 설정을 방지합니다. 스킬은 Runtime, Gateway, Identity, Memory의 네 가지 구성 요소를 각각 독립된 모듈로 스캐폴딩하며, 각 모듈은 주석이 포함된 `main.tf`, `variables.tf`, `outputs.tf`, `versions.tf` 파일로 구성됩니다. 모든 쓰기 작업은 `--dry-run` 모드로 먼저 계획을 보여주고 사용자의 확인을 받은 후에야 실행되며, `--force` 플래그 없이는 기존 파일을 절대 덮어쓰지 않습니다. 사용자는 'create an AgentCore runtime' 또는 'scaffold a gateway' 같은 자연어 요청으로 이 스킬을 트리거할 수 있습니다.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alexaiarchitect/agentcore-skills/tree/HEAD/skills/agentcore-create

Installed? Explore more 라이팅 & 에디팅 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

AgentCore 리소스를 IaC로 생성하기

새로운 AgentCore 리소스는 팀이 배포하는 다른 모든 것과 동일한 트리 내에서 리뷰된 모듈로 제공되어야 하며, 아무도 재현할 수 없는 콘솔 클릭으로 제공되어서는 안 됩니다. 이 스킬은 작고 평평한 Terraform 모듈(main.tf, variables.tf, outputs.tf, versions.tf)을 작성하며, 사용자는 이를 자신의 루트 모듈에서 연결(wire)합니다. 모듈은 의도적으로 단순합니다: 모든 인수는 주석으로 설명되고, 시크릿은 쓰기 전용이며, Gateway는 인증자 없이 생성되지 않습니다.

${CLAUDE_SKILL_DIR}은 스킬 런타임에 의해 이 스킬의 자체 디렉토리로 설정됩니다. 아래 모든 명령에서 이를 그대로 사용하세요; 형제 스킬의 스크립트는 ${CLAUDE_SKILL_DIR}/../<skill>/scripts/에 있습니다.

흐름

  1. 발견 먼저 수행하여 모듈이 기존 모듈 옆에 배치되고 리전이 알려지도록 합니다:

    python3 ${CLAUDE_SKILL_DIR}/../agentcore-discover/scripts/discover.py <project> --focus agentcore,region,terraform
    

    AgentCore CLI 또는 CDK가 이미 AgentCore 리소스를 소유하고 있는 경우(DSC004 영역), Terraform 대신 일치하는 --iac를 제공합니다.

  2. 쓰기 계획.

    python3 ${CLAUDE_SKILL_DIR}/scripts/scaffold.py <project> --component runtime --dry-run
    

    --component gateway|identity|memory, --iac terraform|cdk|cli, --name, --out-dir, --protocol HTTP|MCP|A2A|AGUI (runtime).

  3. 옵션. Terraform 모듈(권장, 무료), CDK 스택(무료), 또는 AgentCore CLI 명령어(출력은 무료; agentcore deploy 자체는 aws).

  4. 확인 AskUserQuestion으로 확인한 후, 동일한 명령을 --dry-run 없이 실행합니다. --force는 사용자가 계획을 본 후 파일을 교체하도록 요청한 경우에만 전달합니다.

  5. 검증. 결과에 대한 리뷰를 실행하고 표시합니다:

    python3 ${CLAUDE_SKILL_DIR}/../agentcore-review/scripts/review.py <project>
    

결정 규칙

  • Terraform 우선. 첫 번째 사용자가 실행하는 것이며, 이 플러그인의 리뷰, 배포 계획 및 CI 정책이 모두 적용되는 유일한 옵션입니다. hashicorp/aws 제공자는 모든 핵심 리소스를 다룹니다. awscc 또는 CLI가 필요한 항목은 provider-coverage.md를 참조하세요.
  • 모듈은 연결(wired)되고, 적용(applied)되지 않습니다. 스크립트는 추가할 module 블록을 출력합니다; 루트 모듈을 편집하지 않습니다.
  • 쓰기 전용 시크릿은 Terraform 1.11+가 필요합니다. 생성된 versions.tf에 명시되어 있습니다; 이전 Terraform은 민감 변수를 사용하고 시크릿이 상태에 있음을 수용해야 합니다(ACR031).
  • 스타터 툴킷은 제공되지 않습니다. 해당 CLI는 더 이상 지원되지 않습니다; AgentCore CLI가 CLI 대안입니다.

참조

질문파일
각 생성된 모듈의 내용과 이유terraform-modules.md
CDK 및 AgentCore CLI 경로, 선택 시기cdk-and-cli-alternatives.md
hashicorp/aws가 다루는 리소스; awscc 및 CLI 대체provider-coverage.md

스크립트

명령어기능종료 코드
scripts/scaffold.py <project> --component C [--iac terraform|cdk|cli] [--dry-run] [--force] [--json]모듈, CDK 스택을 계획하고 작성하거나 CLI 명령어를 출력합니다0 작성/계획됨, 1 작성할 내용 없음, 2 잘못된 인수

완료 체크리스트

  • 발견(Discovery)이 실행되었고, 선택한 IaC가 이미 AgentCore 리소스를 소유한 주체와 일치합니다.
  • --dry-run으로 작성 계획이 표시되고 작성 전에 확인되었습니다.
  • module 연결 블록이 사용자에게 제공되었으며, 루트 모듈에 직접 작성되지 않았습니다.
  • review.py가 결과에 대해 실행되었고 그 결과가 표시되었습니다.

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

alexaiarchitect/agentcore-skills

>- Put Amazon Bedrock AgentCore infrastructure behind a plan-only CI gate. Generates a GitHub Actions workflow that, on pull requests touching the infrastructure, runs the static AgentCore review (`ACR0xx`), `terraform fmt -check`, `init`, `validate`, a saved `plan` (Terraform or Terragrunt) with a read-only OIDC role, `show -json`, and the plan policy (`CI0xx`: no delete or replace of memories, gateways, credential providers, workload identities, user pools or tables without an explicit per-address allowance; no `*` on `*`; no gateway with `authorizer_type = NONE`; pinned MCP revisions), then uploads the plan JSON. Nothing in it applies. The plugin's stdlib-only library is vendored into `ci/agentcore/` so the job needs nothing from the plugin, and action pins are reused from the repository's own SHA-pinned workflows. `policy_check.py` also runs locally on any saved plan. Use when asked to "add CI for the AgentCore Terraform", "gate the plan", "block destructive changes", "policy check the plan", "plan on ...

alexaiarchitect/agentcore-skills

>- Estimate what Amazon Bedrock AgentCore will cost per month from a usage profile, line by line with the formula for each line, and put a budget and a usage alarm around it. Prices the published AgentCore rate card (Gateway invocations, search and tool indexing; Identity token requests, free through Runtime or Gateway; Runtime vCPU-hours billed only while active and GB-hours; Memory short-term events — per 1,000 events until 2026-10-05, per GB from 2026-10-06 — and long-term records and retrievals; Evaluations tokens), prices model tokens only at the user's own per-1,000 rates, and lists what it does not price (Lambda, API Gateway, CloudWatch, X-Ray, DynamoDB) so the total is never mistaken for the bill. Generates an AWS Budget filtered to AgentCore with forecast and actual alerts, plus a CloudWatch alarm on gateway invocations, as Terraform after a dry run. Findings are the `CST0xx` band. Use when asked "what will AgentCore cost", "estimate the gateway bill", "is there a free tier", "memory pricing chang...

alexaiarchitect/agentcore-skills

>- Plan the deployment of Amazon Bedrock AgentCore infrastructure and its rollback, and hand the user the exact commands — never running them. Finds the root module (or Terragrunt stack) that actually reaches the AgentCore resources, orders what comes up (identity and roles, then gateway, runtime and memory, then targets and strategies, then log delivery), flags where a first apply trips (IAM propagation, creation-only semantic search, Transaction Search before TRACES delivery, an old provider lock, no remote backend), checks published quotas (targets per gateway, tools per target), and emits init / validate / plan-to-file / show -json / policy check / apply of that saved plan, the post-apply checks, and the rollback for each kind of change. Findings are the `DPL0xx` band; the cost tier is `aws` because the commands create billable resources. Use when asked to "deploy the gateway", "apply this", "what order do I apply in", "how do I roll back", "will this hit a quota", "give me the terraform commands". Don...

alexaiarchitect/agentcore-skills

>- Inventory a project for Amazon Bedrock AgentCore work and report before advising. Finds existing AgentCore resources and which tool owns them (Terraform `aws_bedrockagentcore_*`/`awscc_*`, CDK constructs, the AgentCore CLI's `agentcore.json`, the deprecated starter toolkit's `.bedrock_agentcore.yaml`, boto3 `bedrock-agentcore` clients, the AgentCore Python SDK and `@requires_access_token`), the agent framework (Strands, LangGraph, LangChain, Claude Agent SDK, CrewAI, OpenAI Agents, ADK, raw), MCP servers and the API Gateway routes and Lambdas behind `/mcp`, Cognito pools, clients and JWT authorizers, the AWS region and per-service availability there, the hashicorp/aws constraint and lock, Terragrunt, and Lambda tracing. Read-only; findings are the `DSC0xx` band. Use when asked "what do I have", "is this on AgentCore", "inventory this repo", "which region are we in", "is AgentCore available in eu-central-1", "what framework is this agent", or before any other AgentCore skill on an unfamiliar project. Don...

관련 스킬