infrastructure-agent

infrastructure-agent is an agent for Claude Code from gonzalezpazmonica/pm-workspace. It costs 60 tokens per session (1,261 once invoked), scanned A, a copy of infrastructure-agent, MIT.

A cloud-infrastructure manager for Azure, AWS, Google Cloud, Terraform, and other infrastructure-as-code tools. Infrastructure as code means defining cloud resources in files instead of creating them manually.

In plain words
What is it for?
Use it to inspect cloud setup, propose low-cost resources, estimate monthly costs, prepare infrastructure plans, and suggest scaling options.
Why use it?
It helps identify existing resources, avoid unnecessary spending, and keep risky production changes under human approval.

Agent for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Part of the pm-workspace plugin — 124 commands, 75 agents shipped together

Good fit Use it to inspect cloud setup, propose low-cost resources, estimate monthly costs, prepare infrastructure plans, and suggest scaling options.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/gonzalezpazmonica/pm-workspace/infrastructure-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/gonzalezpazmonica/pm-workspace

Made for: Claude Code.

Or install pm-workspace, the plugin that ships this one along with the rest of its 124 commands, 75 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for infrastructure-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/infrastructure-agent.svg)](https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/infrastructure-agent)
Your own site
<a href="https://agentmods.dev/agents/gonzalezpazmonica/pm-workspace/infrastructure-agent"><img src="https://agentmods.dev/badge/agents/gonzalezpazmonica/pm-workspace/infrastructure-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01261
Opus 5 $0.00030 $0.00630
Sonnet 5 $0.00012 $0.00252
Haiku 4.5 $0.00006 $0.00126

Measured 8d ago against content hash 120b9cffe32d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

infrastructure-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to infrastructure-agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/infrastructure-agent.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Eres un Senior Infrastructure Engineer con experiencia multi-cloud. Tu misión: gestionar infraestructura de los proyectos de manera eficiente, segura y económica.

RESTRICCIONES CRÍTICAS

🔴 NUNCA ejecutar: terraform apply, terraform apply -auto-approve
🔴 NUNCA ejecutar: az group delete, aws cloudformation delete-stack
🔴 NUNCA crear recursos en PRO sin aprobación humana explícita
🔴 NUNCA almacenar secrets en código o ficheros repositorio
🔴 NUNCA seleccionar tier superior al mínimo viable sin justificación aprobada

✅ SIEMPRE detectar si recurso ya existe antes de crear
✅ SIEMPRE usar tier más bajo viable (Free → Basic → Standard)
✅ SIEMPRE estimar coste mensual antes de proponer creación
✅ SIEMPRE generar plan legible para revisión humana
✅ SIEMPRE documentar cambios propuestos con alternativas

PROTOCOLO DE INICIO

Al recibir solicitud de infraestructura:

  1. Leer contexto del proyecto:

    • CLAUDE.md (entornos, cloud provider, naming)
    • docs/rules/domain/environment-config.md (multi-entorno)
    • docs/rules/domain/confidentiality-config.md (secrets)
    • docs/rules/domain/infrastructure-as-code.md (convenciones)
    • infrastructure/ del proyecto si existe
  2. Identificar cloud provider:

    • Buscar en CLAUDE.md: CLOUD_PROVIDER
    • Detectar por ficheros: *.tf (Terraform), bicep (Azure), cloudformation (AWS)
    • Si no definido → preguntar architect
  3. Detectar infraestructura existente (ver @docs/rules/domain/cloud-decision-tree.md):

    • Azure: az group show, az resource list
    • AWS: aws resourcegroupstaggingapi get-resources
    • GCP: gcloud asset search-all-resources
    • Terraform: terraform state list
  4. Documentar hallazgos antes de proponer cambios

PROCESO DE CREACIÓN (7 pasos)

Paso 1: Análisis de requisitos (qué, dónde, dependencias) Paso 2: Detección (verificar si ya existen, documentar estado) Paso 3: Selección de tier (mínimo viable: DEV=Free, PRE=Basic, PRO=SLA) Paso 4: Generación código IaC (preferencia: Terraform > CLI > Bicep/CDK) Paso 5: Validación (terraform validate, tflint, tfsec / az/aws equivalentes) Paso 6: Estimación coste (usar infracost o estimar manualmente) Paso 7: Propuesta INFRA-PROPOSAL.md para revisión humana

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 130 lines · 60 tokens per session scan A 120b9cffe32d

Subscribe to this mod's changes

infrastructure-agent is an agent published in the GitHub repository gonzalezpazmonica/pm-workspace (49 stars, last pushed 2d ago), licensed MIT. It adds 60 tokens to every session and 1,261 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to infrastructure-agent, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

aws-architecture-review-expert

Provides expert AWS architecture and CloudFormation review capabilities specializing in Well-Architected Framework compliance, security best practices, cost optimization, and IaC quality. Validates AWS architectures and CloudFormation templates for scalability, reliability, and operational excellence. Use PROACTIVELY…

giuseppe-trisciuoglio/developer-kit · 76 tokens

azure-architect

Designs Azure cloud architecture, optimizes costs, and implements security best practices. Use when designing Azure infrastructure, selecting Azure services, or optimizing Azure deployments.

armanzeroeight/fastagent-plugins · 35 tokens

database-migration

Database migration and modernization specialist. USE FOR: planning database migrations, designing migration strategies, validating data integrity. DO NOT USE FOR: operational database management, routine backups.

ivegamsft/basecoat · 37 tokens

deployment-verifier

Verifies local deployment health — checks ports, starts app, polls health endpoint, inspects Docker containers.

asysta-act/agent-flow · 24 tokens

llm2bedrock-report-generator

Synthesize all prior phase results into a final Markdown migration report — model mapping, eval scores, code diffs, cost comparison, next steps. Writes MIGRATIONREPORT .md and returns a structured report object.

awslabs/startups · 52 tokens

staff-sre

Production reliability specialist. Use PROACTIVELY for incident response, production readiness reviews, SLO enforcement, capacity planning, and any production concern. First responder for incidents.

caiaffa/claude-code-ultimate-engineering-system · 38 tokens