CommunityRedacción y edicióngithub.com

alexaiarchitect/agentcore-skills

Genera módulos de Terraform o stacks de CDK para aprovisionar recursos de Amazon Bedrock AgentCore como infraestructura como código.

¿Qué es agentcore-skills?

Esta habilidad automatiza la creación de recursos de Amazon Bedrock AgentCore como infraestructura como código (IaC). Está diseñada para equipos que despliegan AWS mediante Terraform (recomendado) o TypeScript CDK, y genera módulos pequeños y planos con un solo `main.tf`, `variables.tf`, `outputs.tf` y `versions.tf`. Soporta cuatro componentes: Runtime (repositorio ECR, rol de servicio, y un recurso `aws_bedrockagentcore_agent_runtime` con autorizador JWT y configuración de ciclo de vida), Gateway (rol, autorizador JWT, revisiones MCP fijadas y un destino), Identity (cliente M2M de Cognito y un proveedor de credenciales OAuth2 con secretos de solo escritura) y Memory (memoria, estrategias y clave gestionada por el cliente). La habilidad sigue un flujo estricto: primero descubre el contexto del proyecto con un script, luego planifica la escritura con `--dry-run`, pide confirmación al usuario, y finalmente escribe los archivos sin sobrescribir nada existente a menos que se use `--force`. También ofrece alternativas con CDK o comandos CLI de AgentCore para equipos que ya los usan, y siempre verifica el resultado con una revisión posterior. Es ideal para cuando se pide "crear un AgentCore runtime", "añadir memoria AgentCore" o "escribir el Terraform para AgentCore".

Compatible con✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alexaiarchitect/agentcore-skills/tree/HEAD/skills/agentcore-create

Installed? Explore more Redacción y edición skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Crear recursos de AgentCore como IaC

Un nuevo recurso de AgentCore debe llegar como un módulo revisado en el mismo árbol que todo lo demás que despliega el equipo, no como un clic en la consola que nadie puede reproducir. Esta habilidad escribe módulos de Terraform pequeños y planos — un main.tf, variables.tf, outputs.tf, versions.tf — que el usuario conecta desde su módulo raíz. Los módulos son deliberadamente simples: cada argumento está explicado en un comentario, los secretos son de solo escritura, y la gateway nunca se crea sin un autorizador.

${CLAUDE_SKILL_DIR} es establecido por el entorno de ejecución de la habilidad en el directorio propio de esta habilidad. Úsalo textualmente en cada comando a continuación; los scripts de una habilidad hermana están en ${CLAUDE_SKILL_DIR}/../<skill>/scripts/.

Flujo

  1. Descubrir primero, para que el módulo se ubique junto a los existentes y se conozca la región:

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

    Si la CLI de AgentCore o CDK ya posee recursos de AgentCore (territorio DSC004), ofrecer el --iac correspondiente en lugar de Terraform.

  2. Planificar la escritura.

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

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

  3. Opciones. Módulo de Terraform (recomendado, gratuito), stack de CDK (gratuito), o los comandos de la CLI de AgentCore (gratis para imprimir; agentcore deploy en sí es aws).

  4. Confirmar con AskUserQuestion, luego ejecutar el mismo comando sin --dry-run. Pasar --force solo cuando el usuario solicitó reemplazar un archivo después de ver el plan.

  5. Verificar. Ejecutar la revisión sobre el resultado y mostrarlo:

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

Reglas de decisión

  • Terraform primero. Es lo que ejecuta el primer usuario, y la única opción donde se aplican la revisión, el plan de despliegue y la política de CI de este plugin. El proveedor hashicorp/aws cubre todos los recursos centrales; consulta provider-coverage.md para saber qué necesita awscc o la CLI.
  • Un módulo se conecta, no se aplica. El script imprime el bloque module que se debe añadir; nunca edita el módulo raíz.
  • Los secretos de solo escritura requieren Terraform 1.11+. El versions.tf generado lo indica; Terraform más antiguo debe usar una variable sensible y aceptar que el secreto quede en el estado (ACR031).
  • El kit de inicio (starter toolkit) no se ofrece. Su CLI ya no tiene soporte; la CLI de AgentCore es la alternativa CLI.

Referencias

PreguntaArchivo
Qué contiene cada módulo generado y por quéterraform-modules.md
Las rutas de CDK y CLI de AgentCore, y cuándo elegirlascdk-and-cli-alternatives.md
Qué recursos cubre hashicorp/aws; alternativas de awscc y CLIprovider-coverage.md

Scripts

ComandoHaceCódigos de salida
`scripts/scaffold.py --component C [--iac terraformcdkcli] [--dry-run] [--force] [--json]`

Lista de verificación de finalización

  • Se ejecutó el descubrimiento, y el IaC elegido coincide con quien ya posee recursos de AgentCore.
  • El plan de escritura se mostró con --dry-run y se confirmó antes de escribir.
  • El bloque de conexión module se entregó al usuario, no se escribió en su módulo raíz.
  • review.py se ejecutó sobre el resultado y sus hallazgos se mostraron.

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

Skills relacionados