agentleFS
ku5icku5ic/claude-kit/skills/audit-infra/SKILL.md

audit-infra

Skill2 starsChanged 15 days agoMITView on GitHub

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

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read each file and check it against the loaded references.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/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 dispatch the auditor agent (subagent_type: kit:auditor, foreground) with this file's procedure and the resolved arguments. It writes the report. 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 anti-patterns.md first, then every reference its table names for what the files do:
FilesSkill
Dockerfile*, *.dockerfile, compose*.y*ml, docker-compose*.y*ml, .dockerignoredocker-patterns
*.tf, *.tfvars, .terraform.lock.hclopentofu-patterns
nginx config, systemd units, firewall rules, Ansible playbooks, cloud-init, provisioning scriptsvps-provisioning
backup scripts, and the cron or systemd timer jobs that run thembackup-patterns
  1. Read each file and check it against the loaded references. A secret committed in one of these files is a failure, named redacted.
  2. CI workflows are /audit-ci's job. Name it as the next step when .github/workflows exists.
  3. 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

  • 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: per the report-format skill's rubric
  • 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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.