CommunityProductivity & Collaborationgithub.com

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

What is agentcore-skills?

agentcore-skills is a Claude Code agent skill that >- 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 ...

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alexaiarchitect/agentcore-skills/tree/HEAD/skills/agentcore-ci

Installed? Explore more Productivity & Collaboration skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Plan-only CI with policy gates

The expensive AgentCore mistakes are visible in a plan: a memory that would be replaced (every conversation gone), a gateway that would be replaced (a new URL for every client), a role that grants everything. A pull request is the cheapest place to stop them, and a plan is the right artefact to check — it is what would actually happen.

${CLAUDE_SKILL_DIR} is set by the skill runtime to this skill's own directory. Use it verbatim in every command below; a sibling skill's scripts are at ${CLAUDE_SKILL_DIR}/../<skill>/scripts/.

Flow

  1. Plan the workflow, read-only:

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

    --tf-root for the stack to plan (default: the root that reaches the AgentCore resources), --role-var for the GitHub variable holding the plan role (default AWS_PLAN_ROLE_ARN), --region, --terraform.

  2. Report the root, Terraform or Terragrunt, the pins found (or CI010 if the fallbacks are used), and the role note (CI011).

  3. Options: write the workflow and vendored checker (free); run the policy on an existing saved plan first (free). Confirm with AskUserQuestion, then write.

  4. Try the gate locally on a plan the user produced:

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

    --allow-replace <address> only for a replacement a human has reviewed.

  5. Verify the vendored runner works from the repository root: python3 ci/agentcore/run.py review ..

The CI0xx band

IdSeverityTrigger
CI001errorthe plan deletes or replaces a memory, gateway, credential provider, workload identity, Cognito user pool or DynamoDB table
CI002errora planned IAM policy allows * on *
CI003errora gateway planned with authorizer_type = "NONE"
CI004warna gateway planned without supported_versions
CI005infothe plan has no changes
CI006infothe AgentCore resources the plan creates (the billing surface)
CI010infono SHA-pinned actions in the repository; fallback pins used
CI011infothe plan job's role must be read-only

Decision rules

  • CI plans; humans apply. The workflow has no apply job, and the plan role should not be able to write.
  • Allowances are per address. --allow-replace names one resource; there is no "allow all".
  • Pin actions to SHAs. Reuse the repository's pins; the fallbacks are the ones the first user's repository carried on 2026-10-05, labelled with tags.
  • Vendored, not installed. ci/agentcore/ is plain Python 3.10+; updating the plugin means re-running gen_ci.py --force and reviewing the diff.

References

QuestionFile
The workflow, step by step; roles; Terragruntplan-only-ci.md
Each policy rule, why, and how to allow a reviewed exceptionpolicy-gates.md

Scripts

CommandDoesExit codes
scripts/gen_ci.py <project> [--tf-root D] [--role-var V] [--dry-run] [--force] [--json]the workflow plus ci/agentcore/0 written/planned, 1 nothing, 2 bad arguments
scripts/policy_check.py <plan.json> [--allow-replace ADDR ...] [--json]the CI0xx gate on a saved plan0 pass, 1 policy error, 2 not a plan

Completion checklist

  • The workflow was shown as a write plan and confirmed before writing.
  • It has no apply step, and the plan role was described as read-only.
  • policy_check.py was run on a real plan, or the user was told how.
  • The vendored runner was exercised from the repository root.

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

Related Skills