Skip to content
Back to skills

Audit Infra

ASecurity

Review a target's infrastructure files against the kit's checklists

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 17, 2026
ai-agentsgobashdockerterraformgitdatabase

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill audit-infra --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Infra?

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

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

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: audit-infra
description: Review a target's infrastructure files against the kit's checklists
argument-hint: "<file, directory, or none for the whole repo>"
allowed-tools:
  - Bash(git log *)
---

# /audit-infra

Review of the infrastructure files a target holds against the kit's own checklists.

## Run

Resolve a linked ticket or doc as `skills/investigate` step 0 describes, then work this file's procedure on the resolved arguments per `skills/kit-rules/reference/subagents.md` section 4, and write the report yourself. Then run the report-format skill's Runtime checks yourself, and reply per `skills/kit-rules/reference/output.md` section 3.

## Prerequisites

- Find the files with `fd` in the target. If it holds none of the kinds below, stop and say so.

## Procedure

1. For each kind present, load its skill and read its `reference/anti-patterns.md` first, or its Anti-patterns section where it has none, then every reference its table names for what the files do:

| Files                                                                                            | Skill               |
| ------------------------------------------------------------------------------------------------ | ------------------- |
| `Dockerfile*`, `*.dockerfile`, `compose*.y*ml`, `docker-compose*.y*ml`, `.dockerignore`          | `docker-patterns`   |
| `*.tf`, `*.tfvars`, `.terraform.lock.hcl`                                                        | `opentofu-patterns` |
| nginx config, systemd units, firewall rules, Ansible playbooks, cloud-init, provisioning scripts | `vps-provisioning`  |
| backup scripts, and the cron or systemd timer jobs that run them                                 | `backup-patterns`   |

2. Read each file and check it against the loaded references. A secret committed in one of these files is a `failure`, named redacted.
3. CI workflows are `/audit-ci`'s job. Name it as the next step when `.github/workflows` exists.
4. Anything that needs the live system (an open port, a running container's user, the state file) goes under "Needs a runtime check". Run no `plan`, `apply`, `docker build`, or provisioning tool here; a `plan` can be offered afterwards as a runtime check.

## Not a finding

- A default password in a service only a dev profile or a dev-named file starts. Name it as `info`.
- A rule the loaded reference marks optional or situational, when the file's own comment gives the reason.

## Severity

A loaded reference's rating for the rule a file breaks wins. Where it rates none:

- `failure`: a committed secret, a database or admin port open to every address, or a container that runs as root and takes network input.
- `warning`: an unpinned base image or provider version, or a service with no health check or restart policy.
- `info`: hygiene with no exposure, such as a missing `.dockerignore` entry for docs.

## Output per finding

- What it is, with `file:line`
- Evidence: the quoted lines and the reference rule they break
- Severity: the loaded reference's rating, else the Severity section above, in the report-format skill's levels
- Fix: the replacement lines

## Output file

Load the report-format skill and use its format. Write to the path `kit scratch-dir infra <target-slug>` prints.

Arguments: `$ARGUMENTS`

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 ai-agents →

Comments

Loading comments…

Newsletter

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