Community생산성 & 협업github.com

alexaiarchitect/agentcore-skills

Amazon Bedrock AgentCore 인프라 뒤에 계획 전용 CI 게이트를 배치합니다. 풀 리퀘스트가 인프라를 수정할 때 정적 AgentCore 리뷰(ACR0xx), terraform fmt -check, init, validate, 읽기 전용 OIDC 역할을 사용한 저장된 plan(Terraform 또는 Terragrunt), show -json, 그리고 plan 정책(CI0xx: 명시적 주소별 허가 없이 memories, gateways, credential providers, workload identities, user pools 또는 tables 삭제/교체 금지; * on * 금지; authorizer_type = NONE인 gateway 금지; 고정된 MCP 리비전)을 실행하고 plan JSON을 업로드하는 GitHub Actions 워크플로우를 생성합니다. 아무것도 적용하지 않습니다. 플러그인의 stdlib 전용 라이브러리는 ci/agentcore/에 벤더링되어 작업에 플러그인이 필요하지 않으며, 액션 핀은 저장소 자체 SHA-고정 워크플로우에서 재사용됩니다. policy_check.py는 저장된 모든 plan에서 로컬로도 실행할 수 있습니다. 'AgentCore Terraform용 CI 추가', 'plan 게이트', '파괴적 변경 차단', 'plan 정책 검사', 'plan on ...' 요청 시 사용합니다.

agentcore-skills란 무엇인가요?

이 스킬은 Amazon Bedrock AgentCore 인프라를 위한 사전 예방적 CI(지속적 통합) 게이트를 설정합니다. 풀 리퀘스트가 Terraform 또는 Terragrunt로 관리되는 AgentCore 리소스를 수정할 때 자동으로 계획을 분석하고, 메모리, 게이트웨이, 자격 증명 공급자, 워크로드 ID, Cognito 사용자 풀, DynamoDB 테이블과 같은 중요한 구성 요소의 삭제나 교체와 같은 비용이 많이 드는 실수를 방지하는 정책 규칙(CI0xx 계열)을 적용합니다. 주요 기능으로는 읽기 전용 OIDC 역할을 사용하여 Terraform plan을 생성하고, plan JSON을 업로드하며, 정적 AgentCore 리뷰(ACR0xx)를 실행하는 GitHub Actions 워크플로우 생성이 포함됩니다. 워크플로우는 적용 단계가 없어 안전하며, plan 정책 검사(policy_check.py)는 저장된 모든 plan에 대해 로컬에서도 실행할 수 있습니다. 플러그인의 라이브러리는 ci/agentcore/에 벤더링되어 종속성 없이 실행되며, 액션 핀은 저장소의 기존 SHA-고정 워크플로우를 재사용하여 보안과 일관성을 유지합니다. 이 스킬은 Plan-only CI with policy gates 가이드라인을 기반으로 하며, Cursor, Claude Code, Codex 등 다양한 AI 에이전트 플랫폼에서 사용할 수 있습니다.

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

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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

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

문서

계획 전용 CI와 정책 게이트

비용이 많이 드는 AgentCore 실수는 계획(plan)에서 드러납니다: 교체될 메모리(모든 대화 손실), 교체될 게이트웨이(모든 클라이언트의 새 URL), 모든 것을 허용하는 역할. 풀 리퀘스트는 이를 막기에 가장 저렴한 장소이며, 계획(plan)은 확인하기에 적절한 아티팩트입니다 — 실제로 적용될 내용이기 때문입니다.

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

흐름

  1. 워크플로우 계획하기, 읽기 전용:

    python3 ${CLAUDE_SKILL_DIR}/scripts/gen_ci.py <project> --dry-run
    

    --tf-root는 계획할 스택의 루트(기본값: AgentCore 리소스에 도달하는 루트), --role-var는 계획 역할을 담은 GitHub 변수명(기본값 AWS_PLAN_ROLE_ARN), --region, --terraform.

  2. 보고 루트, Terraform 또는 Terragrunt, 발견된 핀(또는 폴백이 사용된 경우 CI010), 역할 노트(CI011).

  3. 옵션: 워크플로우와 벤더된 검사기 작성(무료); 기존 저장된 계획에 대해 먼저 정책 실행(무료). AskUserQuestion으로 확인 후 작성.

  4. 게이트를 로컬에서 시도 사용자가 생성한 계획에 대해:

    python3 ${CLAUDE_SKILL_DIR}/scripts/policy_check.py agentcore.plan.json
    

    --allow-replace <address>는 사람이 검토한 교체에만 사용.

  5. 벤더된 실행기 확인 저장소 루트에서: python3 ci/agentcore/run.py review ..

CI0xx 계열

ID심각도트리거
CI001오류계획이 메모리, 게이트웨이, 자격 증명 공급자, 워크로드 ID, Cognito 사용자 풀 또는 DynamoDB 테이블을 삭제 또는 교체함
CI002오류계획된 IAM 정책이 * on *을 허용함
CI003오류authorizer_type = "NONE"으로 계획된 게이트웨이
CI004경고supported_versions 없이 계획된 게이트웨이
CI005정보계획에 변경 사항 없음
CI006정보계획이 생성하는 AgentCore 리소스(청구 표면)
CI010정보저장소에 SHA-고정된 액션 없음; 폴백 핀 사용됨
CI011정보계획 작업의 역할은 읽기 전용이어야 함

결정 규칙

  • CI는 계획하고; 사람이 적용합니다. 워크플로우에는 적용 작업이 없으며, 계획 역할은 쓰기 권한이 없어야 합니다.
  • 허가는 주소별로. --allow-replace는 하나의 리소스를 지정하며, "모두 허용"은 없습니다.
  • 액션을 SHA로 고정. 저장소의 핀을 재사용; 폴백은 2026-10-05에 첫 번째 사용자의 저장소가 가지고 있던 것으로, 태그로 레이블이 지정됨.
  • 벤더링되고, 설치되지 않음. ci/agentcore/는 순수 Python 3.10+; 플러그인 업데이트는 gen_ci.py --force를 다시 실행하고 diff를 검토하는 것을 의미함.

참고 자료

질문파일
워크플로우 단계별; 역할; Terragruntplan-only-ci.md
각 정책 규칙, 이유, 검토된 예외를 허용하는 방법policy-gates.md

스크립트

명령어기능종료 코드
scripts/gen_ci.py <project> [--tf-root D] [--role-var V] [--dry-run] [--force] [--json]워크플로우 + ci/agentcore/0 작성/계획됨, 1 없음, 2 잘못된 인수
scripts/policy_check.py <plan.json> [--allow-replace ADDR ...] [--json]저장된 계획에 CI0xx 게이트0 통과, 1 정책 오류, 2 계획 아님

완료 체크리스트

  • 워크플로우가 쓰기 계획으로 표시되고 작성 전에 확인되었습니다.
  • 적용 단계가 없으며, 계획 역할이 읽기 전용으로 설명되었습니다.
  • policy_check.py가 실제 계획에 대해 실행되었거나, 사용자에게 방법이 안내되었습니다.
  • 벤더된 실행기가 저장소 루트에서 실행되었습니다.

Individual skills in this repo

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

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

>- Scaffold Amazon Bedrock AgentCore resources as infrastructure as code: a Runtime (ECR repository, service role, `aws_bedrockagentcore_agent_runtime` with a JWT authorizer and lifecycle settings), a Gateway (role, JWT authorizer, pinned MCP revisions, one target), Identity (Cognito M2M client plus an OAuth2 credential provider with write-only secrets) or Memory (memory, strategies, customer-managed key). Terraform modules are the default and the recommendation; a TypeScript CDK stack with the `aws-bedrockagentcore` L1 constructs and the AgentCore CLI (`@aws/agentcore`) commands are offered for teams already on them. Every write is shown as a plan first (`--dry-run`), existing files are never overwritten without `--force`, and nothing is planned or applied. Use when asked to "create an AgentCore runtime", "scaffold a gateway", "add AgentCore memory", "write the Terraform for AgentCore", "start a new AgentCore stack", or "give me the CDK for this". Don't use for a gateway in front of an existing Lambda, HT...

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

관련 스킬