Skip to content
Back to skills

Infra Review

ASecurity

Read-only review of a repo's infrastructure, that is IaC, environments, Docker and compose, Kubernetes, CI/CD and deploy, config and secrets management, backups and restore (including dev data in local volumes), monitoring and alarms, platform limits, infrastructure single points, pinned versions and cost. Cites path:line and proposes the lightest fix first. Never runs terraform plan/apply or deploy. Reports and stops. Use it for "review my infra", "is my deploy reproducible?", "do we have ba...

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
devopsgodockerkubernetesawsterraformgitapibackendci/cdsecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 17, 2026

npx -y skills add OmarAlex24/audit-skills --skill infra-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Infra Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Infra Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/omaralex24-infra-review/badge)](https://www.skillsdirectory.com/skills/omaralex24-infra-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: infra-review
description: Read-only review of a repo's infrastructure, that is IaC, environments, Docker and compose, Kubernetes, CI/CD and deploy, config and secrets management, backups and restore (including dev data in local volumes), monitoring and alarms, platform limits, infrastructure single points, pinned versions and cost. Cites path:line and proposes the lightest fix first. Never runs terraform plan/apply or deploy. Reports and stops. Use it for "review my infra", "is my deploy reproducible?", "do we have backups", "is my docker-compose ok?", "review my K8s manifests", "is my CI secure?", "why does nobody notice when it goes down?", "is my Terraform ok", "check my Dockerfile", "are our alerts set up", even without the word "infra". Not for system design (architecture-review), measuring performance (perf-diagnosis) or the security detail of a secret or permission (api-security-review). Also triggers on Spanish requests such as "revisa la infraestructura", "¿tengo backups?" or "¿mi CI es seguro?".
---

# Infrastructure review

An infrastructure review answers one question: is what it takes to build, deploy, operate and recover this system written down, repeatable, and does it warn when it fails? The evidence is in the repo: IaC, Dockerfiles, compose, manifests, pipelines, config and docs. What lives only in a console or in someone's head is exactly what this skill looks for.

Material: [references/signals.md](references/signals.md) (catalog by topic), [references/report-template.md](references/report-template.md), [references/aws-limits.md](references/aws-limits.md) and [references/sources.md](references/sources.md).

Write the report in the user's language.

## Rules

- **Read-only by default.** Phases 0 to 4 change nothing: no code, no config, no git, no dependencies, no infrastructure. You never run `terraform plan` or `apply`, `pulumi up`, `cdk deploy` or `diff`, `kubectl apply`, `helm install` or `upgrade`, `docker compose up` or `down`, `wrangler deploy`, `deploy` scripts or anything that writes, even if asked "just to see": `plan` also touches the state and uses credentials.
- **Live infra only with permission.** Used on its own, a read-only query to the real infrastructure (`kubectl get`, `docker ps`, `aws ... describe`, the platform's dashboard) happens only if the user approves it. First you print what it points to: kubectl context, account and region, host. You never show secret values: if an output brings them, you cite the name and the first 4 characters.
- **Visible provenance.** Mark what a video says as **(video)** with its link, what you or the per-video notes add as **(added)** and what was checked in official documentation as **(doc)**, with the date given in [sources.md](references/sources.md). A platform limit is checked in the current docs: [aws-limits.md](references/aws-limits.md) has the AWS ones, dated; for another platform, look up the equivalent in its official documentation and cite it with link and date.
- **Report first, apply only what the user picks** (phase 5).
- **Each topic in its skill.** System design (requirements, data, APIs, availability as a target, queues, state, monolith or microservices) belongs to `architecture-review`; measuring latency, CPU or capacity, to `perf-diagnosis`; the security detail (an exposed secret, who can read it, an excess permission, an open port), to `api-security-review`; transactions, retries and idempotency, to `data-consistency`; a `status` written from many places, to `implicit-state-machines`; a formula, a boundary, a condition, a parsing step or a default value that gives a wrong result, to `correctness-review`; module or layer boundaries that are not respected, dependency cycles, the same problem solved several ways, god-modules, unused code or packages and docs or ADRs that contradict the code, to `code-structure`; the code that calls an LLM (prompt injection, tools, unvalidated output, billed retries and spend caps in the app), to `llm-app-review`. What stays here is where the provider key lives, its rotation and the account's spend alarms. When a signal falls there, note it under "Not covered" with the skill it goes to and do not develop it.

## Phase 0: scope and context

1. **Scope.** Use the one the user gave. In a monorepo with no hint, ask which app or service to review.
2. **Context.** Read AGENTS.md, CLAUDE.md, README, `docs/`, runbooks and ADRs. A written decision with its reason ("one VPS for cost", "no K8s on purpose") is not a finding; if the reason no longer holds, it is, and you say so citing the decision.
3. **Inventory.** List what there is and where: IaC (`*.tf`, `cdk`, `pulumi`, `serverless.yml`, `wrangler.toml`, `fly.toml`, `railway.json`, `render.yaml`), Dockerfiles and `.dockerignore`, compose, manifests and charts, pipelines (`.github/workflows`, `.gitlab-ci.yml`), deploy and backup scripts, per-environment config (`.env.example`, overlays) and monitoring config. If there is none of that, say so: that is also a result.

## Phase 1: infrastructure map

Before looking for problems, draw what is there: what runs where, how many instances of each piece, which stores there are and where their data lives, how code gets to production (from the commit to the running process), where each variable and each secret comes from (names only) and what warns when something fails. Mark the piece everything depends on.

If the docs or runbooks say something verifiable ("deploys only come from CI", "there is a daily backup", "prod and staging are the same"), note it and check it against the repo. A divergence is a first-rank finding.

## Phase 2: go through the topics

Read [signals.md](references/signals.md) and go through the topics that apply to the map: G IaC, environments and config; H containers, orchestration and machines; J CI/CD and deployment; K backups and restore; L monitoring and alarms; M platform, single points and cost. Translate each signal to the repo's stack. Say which topics you skipped and why.

In large repos, if you can launch subagents, split the search by topic among read-only subagents (Explore type), with the path to `signals.md` and the map. They only find candidates with `path:line`; confirmation and judgment are yours.

## Phase 3: confirm or rule out each candidate

For each candidate:

1. **Read the evidence yourself.** Every cited `path:line` must be read in this session.
2. **Try to rule it out** with the "false positive" of its signal: a written decision, a managed service that solves it, config that lives in another repo, an environment that is not production.
3. **Say how confident you are.** If every step is read, it is **Confirmed**. If it depends on something that is not in the repo (what is in the console, who gets the alarm, whether the backup runs), mark it **Likely**, name that step and the check that would close it. A pattern with no demonstrated harm is a **Smell**.
4. **What lives outside the repo is a question, not a finding.** "There are no alarms" or "there are no backups" is reported as a finding only if the repo says how it is monitored or backed up and that is missing; if it says nothing, it is a question.
5. **Classify it**: **finding** (with evidence, severity and effort), **open question** or **ruled out** ("reviewed, does not apply because…", with its line).

## Phase 4: propose, report and stop

For each finding propose the fix from the lightest to the heaviest (a config line, a script, a pipeline step, a new component, a platform change), with its operating cost and what it can break. Prefer the one that solves the problem with the fewest new pieces.

Write the report with [report-template.md](references/report-template.md). End by asking which findings to apply, with your recommended order, and offer in one line to save the report to a file. **Then stop.**

## Phase 5: apply (only what the user picked)

Confirm in one line what you will apply. Then, one by one: the smallest change in the IaC, the Dockerfile, the pipeline or the script, following the repo's patterns, and the checks that do not touch infrastructure (`terraform fmt` and `validate` without a backend, `hadolint`, `actionlint`, `kubeconform`, the project's lint and tests) with their result. The changes stay in the repo ready for review: do not deploy them, do not run `plan`, and do not touch the real infrastructure. No commits, push or PRs unless asked.

## Common mistakes

- Running `terraform plan`, `kubectl` or the cloud CLI "just to see" without permission, or printing the value of a secret that showed up in an output.
- Reporting "there are no alarms" or "there are no backups" when that lives outside the repo; ask.
- Recommending Kubernetes, multi-region or a secrets manager without a problem that calls for it: a VPS with compose, a tested backup and alarms can be the right answer.
- Treating the videos' figures as data: the "roughly one month" for a hand-built environment is a joke; the spend of the stolen key is marked "illustrative".
- Developing the security detail of a secret or a permission instead of handing it to `api-security-review`.

## Swarm mode

It turns on when the invocation brings a swarm brief (between `[swarm brief]` and `[end of brief]`), with `contract:`, `map:`, `structure:`, `output:` and `data:`. Used on its own, the skill follows the procedure above unchanged, report included. In this mode:

- **Phases:** follow phases 0 to 3 and, from phase 4, only the lightest fix for each finding, its risk and its test; you apply nothing. The brief's map replaces the context reading of phase 0, but read what the map points to (deploy and config, stores, topology) and whatever it is missing.
- **No questions and no waiting:** what you would ask the user goes to the `questions` field; you do not stop to wait for an answer.
- **No subagents or reviewers:** the swarm does the independent verification. This overrides the subagent split of phase 2. Make the pass that tries to rule out each finding yourself and declare in `not_covered` what you did not cover.
- **Never live infra:** in swarm mode there is no permission to ask for, so you do not query the real infrastructure in any way (`kubectl`, cloud CLIs, dashboards, `docker ps`). What you would have queried goes to `requested_measurements`, with the command and what it would point to.
- **Data:** only the `data:` command, and only if needed (for example, to see whether a backups table exists). You never open connections, tunnels or scripts of your own, and you do not read `.env` looking for credentials. If `data:` is "none", what you would have measured goes to `requested_measurements`.
- **Scope:** the brief brings `scope:` instead of `slice:`. You run once over the whole repo and read structure (IaC, manifests, pipelines, config, docs and what `structure:` brings), not line by line; the per-slice auditors cover the fine-grained code. `outside_slice` stays empty. If the brief brings `exclude:`, the scope is the repo minus what is excluded: you do not audit it, do not cite it as evidence and do not report anything whose main location falls there; you may open it only to understand a call or a dependency that leaves the scope, and you say so in `not_covered`.
- **Limits:** you do not modify the audited repo and you do not read other audit runs or other auditors' folders, except what the brief gives you: contract, map, `structure:` and your folder.
- **Metric:** fill `metric` in each finding per `before-after.md` (next to the contract the brief gives), with this skill's row of its "Guide per skill" as the hint: a yes-or-no check with its command (restoring the backup, the healthcheck), the restore time, the unpinned versions counted or the estimated cost. A metric is a command that is run again, never a count of findings, and you do not invent its result: `{not_measurable: "<why>"}` is valid.
- **Output:** a single file, `findings.json`, in the folder the brief gives (`your folder:`), with the contract's object, and that same object as your answer. In swarm mode you write no readable report and no other file: the report template is for normal mode and the swarm's plan comes from the `findings.json` files. Use the contract's vocabulary: confidence, method, severity, effort and action.

Files in this skill

  • SKILL.md12 KB
  • references/aws-limits.md3.1 KB
  • references/report-template.md3.3 KB
  • references/signals.md29.4 KB
  • references/sources.md6.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.