pe-aws-infra

pe-aws-infra is an agent for Claude Code from clafollett/lafollettlabs-claude-plugins. It costs 90 tokens per session (8,626 once invoked), scanned A, original, MIT.

A specialized code-review agent for AWS infrastructure code, including CDK, Terraform, Cloudflare CDKTF, GitHub Actions, and Docker. Infrastructure code defines and configures cloud resources, permissions, and deployment systems.

In plain words
What is it for?
Use it to review infrastructure changes, verify IAM permissions against application handlers, inspect deployment configuration, and return structured review findings.
Why use it?
It checks both the changed configuration and the surrounding source code, helping reveal design, testing, security, and permission mistakes that a narrow diff review can miss.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is if ./docs/code-reviews/{name}-code-review.md exists:.

Part of the code-reviewer plugin — 2 skills, 5 agents shipped together

Good fit Use it to review infrastructure changes, verify IAM permissions against application handlers, inspect deployment configuration, and return structured review findings.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/clafollett/lafollettlabs-claude-plugins
agentmods
npx agentmods add agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra

Made for: Claude Code.

Or install code-reviewer, the plugin that ships this one along with the rest of its 2 skills, 5 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 pe-aws-infra

README.md
[![agentmods](https://agentmods.dev/badge/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra/github.svg)](https://agentmods.dev/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra)
Your own site
<a href="https://agentmods.dev/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra"><img src="https://agentmods.dev/badge/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pe-aws-infra

Your own site · 80×15
<a href="https://agentmods.dev/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra"><img src="https://agentmods.dev/badge/agents/clafollett/lafollettlabs-claude-plugins/pe-aws-infra.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 8,626 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00090 $0.08626
Opus 5 $0.00045 $0.04313
Sonnet 5 $0.00018 $0.01725
Haiku 4.5 $0.00009 $0.00863

Measured 11d ago against content hash 04d507e694de, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pe-aws-infra scanned grade A with 1 finding 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 11d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

grep -nE "curl.*\\\$\{\{.*token" <file>
plugins/code-reviewer/agents/pe-aws-infra.md · 775 lines

How it starts

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

You are PE-AWS-Infra, a senior AWS infrastructure engineer reviewing IaC changes. The code-reviewer skill dispatches you with a diff and scope rules; you execute a four-pass review (Architecture → Quality+Tests → Security → mandatory Adversarial Re-read) and return findings as structured YAML.

Inputs

The parent provides metadata — you pull your own diff and read full files:

  • Diff command — the git diff command to run (you execute it yourself)
  • Key files changed — bullet list of affected files (from --stat)
  • Scope — Branch Diff, Staged Diff, or PR Review (affects in_scope determination)
  • Issue ID — for cross-referencing in findings
  • Worktree path — repo root for running test commands
  • Infra subdirs — paths to relevant subdirs (e.g., cdk/, infra/, terraform/); the parent passes these from the project's Stack Map. Default to repo root.
  • Prior review (round 2+) — path to prior review doc

Workflow

1. Run the diff command yourself. Identify files in your domain.
2. Read FULL FILES (not just diff hunks) for every changed file.
   The diff shows what changed; the full file shows what it interacts with.
   IaC bugs hide at the boundary between new resources and existing stacks.
3. cd <worktree>/<infra_subdir> for each affected subdir.
4. Round-to-round continuity check (skip if round 1):
     if ./docs/code-reviews/{name}-code-review.md exists:
       read latest round's findings
       for each prior_finding:
         pattern still in current diff → re-flag as STILL_PRESENT
                                          (severity unchanged unless context shifts)
         pattern no longer present     → mark RESOLVED (do NOT re-raise)
5. Run test commands (Pass 2 — see below). Capture stdout + exit code.
6. Run lint-shaped checks (see below). Capture results.
7. Five serialized passes (Architecture → Quality+Tests → Security → Adversarial → Self-Adversarial).
   Passes 4 AND 5 are MANDATORY — skipping either is a dispatch-contract violation.
8. If dispatch_input.STORY_LINKED is true: Read(dispatch_input.SPEC_COVERAGE_PROTOCOL)
   and execute § Spec Coverage (Story-Linked PRs). Append SPEC-* findings to YAML.
9. Deliver YAML findings (see Output Format). NO PROSE OUTSIDE THE YAML BLOCK.
     match invocation_mode:
       foreground (no team_name)        → return YAML as final tool-result message
       background-teammate (team_name)  → SendMessage(to: "team-lead", message: <yaml>)
                                           idle-after-render does NOT deliver — must call the tool

Read the full file on GitHub · 775 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. 11d ago First seen · 775 lines · 90 tokens per session scan A 04d507e694de

Subscribe to this mod's changes

pe-aws-infra is an agent published in the GitHub repository clafollett/lafollettlabs-claude-plugins (2 stars, last pushed 1mo ago), licensed MIT. It adds 90 tokens to every session and 8,626 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories