alexaiarchitect/agentcore-skills

Estimez le coût mensuel d'Amazon Bedrock AgentCore à partir d'un profil d'utilisation, ligne par ligne avec la formule de chaque ligne, et mettez en place un budget et une alerte d'utilisation. Établit la tarification du barème tarifaire publié d'AgentCore (invocations Gateway, indexation de recherche et d'outils ; requêtes de jeton d'identité, gratuites via Runtime ou Gateway ; heures vCPU Runtime facturées uniquement lorsqu'actives et Go-heures ; événements mémoire à court terme — par 1 000 événements jusqu'au 05/10/2026, par Go à partir du 06/10/2026 — et enregistrements et récupérations à long terme ; jetons d'évaluation), tarifie les jetons de modèle uniquement aux propres taux par 1 000 de l'utilisateur, et liste ce qu'il ne tarifie pas (Lambda, API Gateway, CloudWatch, X-Ray, DynamoDB) pour que le total ne soit jamais confondu avec la facture. Génère un budget AWS filtré sur AgentCore avec alertes de prévisions et de coûts réels, plus une alarme CloudWatch sur les invocations Gateway, sous forme de Terraform après une simulation. Les constats sont dans la bande `CST0xx`. Utilisez-le lorsqu'on demande « combien coûtera AgentCore », « estimer la facture Gateway », « y a-t-il un niveau gratuit », « changement de tarification mémoire... »

Qu'est-ce que agentcore-skills ?

Cette compétence permet d'estimer le coût mensuel d'Amazon Bedrock AgentCore en décomposant chaque dimension de facturation ligne par ligne avec sa formule. Elle exploite le barème tarifaire officiel publié (invocations Gateway, indexation, Runtime vCPU-heures, événements mémoire, enregistrements et récupérations à long terme, jetons d'évaluation) et permet à l'utilisateur de définir ses propres tarifs de modèles Bedrock. Elle liste explicitement les services non couverts (Lambda, API Gateway, CloudWatch, X-Ray, DynamoDB) pour éviter toute confusion avec la facture totale. En option, elle génère un budget AWS et une alarme CloudWatch sous forme de code Terraform après une simulation. Elle suit un flux en 5 étapes : création d'un profil d'utilisation, estimation, rapport, options de budget/alarme, et vérification. Elle supporte les environnements Claude Code via la variable ${CLAUDE_SKILL_DIR}. Les constats sont organisés dans la bande `CST0xx` avec des niveaux de sévérité (info, warn).

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

Installed? Explore more Développement et programmation skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · 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

Combien coûtera AgentCore ?

AgentCore facture chaque service sur sa propre dimension, et les services utilisés par une Lambda derrière une Gateway (Lambda, API Gateway, CloudWatch, X-Ray) ne relèvent pas du tout d'AgentCore. Une estimation honnête tarifie donc exactement ce que couvre le barème tarifaire AgentCore, en montre le calcul et liste ce qui est exclu.

${CLAUDE_SKILL_DIR} est défini par l'environnement d'exécution de la compétence vers son propre répertoire. Utilisez-le textuellement dans chaque commande ci-dessous ; les scripts d'une compétence sœur se trouvent dans ${CLAUDE_SKILL_DIR}/../<skill>/scripts/.

Flux

  1. Construire un profil avec l'utilisateur. Partez de l'exemple et demandez les chiffres qui déterminent le coût : requêtes par jour, appels d'outils par requête, sessions Runtime et leur durée, événements et enregistrements mémoire. Champs : usage-profile.md.

    cp ${CLAUDE_SKILL_DIR}/assets/profile.example.json ./agentcore-profile.json
    

    L'écriture du profil est une écriture de fichier : confirmez-la d'abord.

  2. Estimer.

    python3 ${CLAUDE_SKILL_DIR}/scripts/cost_estimate.py agentcore-profile.json
    

    --as-of 2026-10-06 pour appliquer le nouveau barème tarifaire Mémoire ; --json pour les lignes.

  3. Rapporter le total comme « lignes AgentCore uniquement », la répartition par service, la ligne la plus importante et sa formule, et la liste non tarifée. Citez la source de tarification et sa date de vérification ; chaque chiffre est une estimation au tarif public.

  4. Options : un module de budget et d'alarme (gratuit à générer) ; une conception moins coûteuse pour la ligne la plus importante (par exemple pas de recherche sémantique, moins de stratégies mémoire) ; rien. Confirmez avec AskUserQuestion, puis :

    python3 ${CLAUDE_SKILL_DIR}/scripts/gen_budget.py <project> --monthly-usd 20 --email [email protected] --profile agentcore-profile.json --dry-run
    
  5. Vérifier avec review.py sur le projet après écriture.

La bande CST0xx

IdSévéritéDéclencheur
CST001avertissementla région du profil n'offre pas Gateway
CST002infoce qui n'est pas tarifé (toujours listé)
CST003infoMémoire tarifée sur la carte par événement qui expire le 05/10/2026
CST004avertissementle barème tarifaire a plus de 90 jours de plus que --as-of
CST005infola page publie un barème tarifaire, pas des prix par région
CST010infole projet a déjà des budgets

Règles de décision

  • N'appelez jamais le total « la facture ». Il s'agit des lignes AgentCore au tarif public.
  • Les jetons de modèle sont les chiffres de l'utilisateur. Les prix des modèles Bedrock varient selon le modèle et la région ; le profil les fournit ou ils sont omis.
  • L'identité via Runtime ou Gateway est gratuite ; en dehors de ceux-ci, elle coûte 0,010 $ par 1 000 requêtes.
  • Les alarmes sont plus efficaces que les budgets pour les dérives. Les budgets ont un décalage de plusieurs heures ; une alarme d'invocation se déclenche dans l'heure.

Références

QuestionFichier
Chaque dimension de tarification, avec le tarif et sa datepricing-dimensions.md
Le format du profil, champ par champusage-profile.md
Le module de budget et d'alarmebudget-alarms.md

Scripts

CommandeFaitCodes de sortie
scripts/cost_estimate.py <profile.json> [--as-of DATE] [--json]l'estimation ligne par ligne0 estimé, 2 mauvais profil
scripts/gen_budget.py <project> --monthly-usd N [--email E] [--profile P] [--dry-run] [--force] [--json]module budget + alarme d'invocation0 planifié/écrit, 1 rien, 2 mauvais arguments

Liste de vérification

  • Les chiffres du profil proviennent de l'utilisateur et le fichier a été écrit uniquement après confirmation.
  • L'estimation a été rapportée comme lignes AgentCore uniquement, avec la liste non tarifée.
  • La source de tarification et la date de vérification ont été citées ; la date du barème tarifaire Mémoire a été appliquée.
  • Tout module de budget a été présenté comme un plan d'écriture et confirmé avant écriture.

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

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

Skills associés