CommunityRédaction et éditiongithub.com

alexaiarchitect/agentcore-skills

Générer des ressources Amazon Bedrock AgentCore sous forme d'infrastructure en code (IaC) : Runtime, Gateway, Identity, Memory avec des modules Terraform (recommandés) ou CDK TypeScript.

Qu'est-ce que agentcore-skills ?

Cette compétence permet de créer des ressources Amazon Bedrock AgentCore sous forme d'infrastructure en code (IaC) en générant des modules Terraform plats (main.tf, variables.tf, outputs.tf, versions.tf) ou, alternativement, une pile CDK TypeScript avec les constructions L1 aws-bedrockagentcore et les commandes de l'interface en ligne de commande AgentCore CLI. Elle couvre quatre composants : Runtime (dépôt ECR, rôle de service, aws_bedrockagentcore_agent_runtime avec un autorisateur JWT et des paramètres de cycle de vie), Gateway (rôle, autorisateur JWT, révisions MCP épinglées, une cible), Identity (client Cognito M2M avec un fournisseur d'identifiants OAuth2 à secrets en écriture seule) et Memory (mémoire, stratégies, clé gérée par le client). Les écritures sont d'abord planifiées avec --dry-run, les fichiers existants ne sont jamais écrasés sans --force, et rien n'est planifié ou appliqué automatiquement. Elle est conçue pour être utilisée lorsqu'on demande de « créer un runtime AgentCore », « générer une passerelle », « ajouter de la mémoire AgentCore », « écrire le Terraform pour AgentCore » ou « fournir le CDK associé ».

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

Installed? Explore more Rédaction et édition skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Créer des ressources AgentCore en tant qu'IaC

Une nouvelle ressource AgentCore doit arriver sous forme de module révisé dans le même arbre que tout ce que l'équipe déploie, et non comme un clic de console que personne ne peut reproduire. Cette compétence écrit des modules Terraform petits et plats — un main.tf, variables.tf, outputs.tf, versions.tf — que l'utilisateur branche depuis son module racine. Les modules sont délibérément simples : chaque argument est expliqué dans un commentaire, les secrets sont en écriture seule, et la passerelle n'est jamais créée sans autorisateur.

${CLAUDE_SKILL_DIR} est défini par le moteur de compétence comme le répertoire de cette compétence. Utilisez-le textuellement dans chaque commande ci-dessous ; les scripts d'une compétence sœur se trouvent dans ${CLAUDE_SKILL_DIR}/../<compétence>/scripts/.

Flux

  1. Découvrir d'abord, pour que le module atterrisse à côté des existants et que la région soit connue :

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

    Si l'interface CLI AgentCore ou le CDK possède déjà des ressources AgentCore (territoire DSC004), proposez le --iac correspondant au lieu de Terraform.

  2. Planifier l'écriture.

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

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

  3. Options. Module Terraform (recommandé, gratuit), pile CDK (gratuit), ou les commandes de l'interface CLI AgentCore (gratuit à afficher ; agentcore deploy lui-même est aws).

  4. Confirmer avec AskUserQuestion, puis exécuter la même commande sans --dry-run. Passez --force uniquement lorsque l'utilisateur a demandé à remplacer un fichier après avoir vu le plan.

  5. Vérifier. Lancer la révision sur le résultat et l'afficher :

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

Règles de décision

  • Terraform d'abord. C'est ce que le premier utilisateur exécute, et la seule option où la révision, le plan de déploiement et la politique d'intégration continue de ce plugin s'appliquent tous. Le fournisseur hashicorp/aws couvre chaque ressource principale ; voir provider-coverage.md pour ce qui nécessite awscc ou la CLI.
  • Un module est câblé, pas appliqué. Le script affiche le bloc module à ajouter ; il ne modifie jamais le module racine.
  • Les secrets en écriture seule nécessitent Terraform 1.11+. Le versions.tf généré le précise ; Terraform plus ancien doit utiliser une variable sensible et accepter que le secret soit dans l'état (ACR031).
  • Le kit de démarrage n'est pas proposé. Son interface CLI n'est plus prise en charge ; l'interface CLI AgentCore est l'alternative CLI.

Références

QuestionFichier
Ce que contient chaque module généré et pourquoiterraform-modules.md
Les chemins CDK et AgentCore CLI, et quand les choisircdk-and-cli-alternatives.md
Quelles ressources hashicorp/aws couvre ; les alternatives awscc et CLIprovider-coverage.md

Scripts

CommandeFaitCodes de sortie
`scripts/scaffold.py --component C [--iac terraformcdkcli] [--dry-run] [--force] [--json]`

Liste de vérification

  • La découverte a été exécutée et l'IaC choisie correspond à celui qui possède déjà les ressources AgentCore.
  • Le plan d'écriture a été affiché via --dry-run et confirmé avant l'écriture.
  • Le bloc de câblage module a été donné à l'utilisateur, pas écrit dans son module racine.
  • review.py a été exécuté sur le résultat et ses constats ont été affichés.

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 associés