audit-infra
Skill2 starsChanged 15 days agoMITView on GitHub
Review a target's infrastructure files against the kit's checklists
In this repository81 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- add-languageSkill
- audit-a11ySkill
- audit-archSkill
- audit-ciSkill
- audit-debtSkill
- audit-doc-driftSkill
- audit-flagsSkill
- audit-perfSkill
- audit-readinessSkill
- audit-securitySkill
- audit-slopSkill
- audit-testsSkill
- audit-tokensSkill
- audit-verifySkill
- backup-patternsSkill
- bash-patternsSkill
- claude-code-mods-patternsSkill
- code-challengeSkill
- code-contractSkill
- code-deep-reviewSkill
- code-evaluateSkill
- code-from-designSkill
- code-historySkill
- code-host-patternsSkill
- code-impactSkill
- code-migrateSkill
- code-tourSkill
- code-visualSkill
- depsSkill
- django-patternsSkill
- docker-patternsSkill
- drf-patternsSkill
- engineering-fundamentalsSkill
- fastapi-patternsSkill
- git-patternsSkill
- go-patternsSkill
- graphql-patternsSkill
- investigateSkill
- javascript-patternsSkill
- kit-rulesSkill
- logging-patternsSkill
- meta-conventionsSkill
- meta-promptSkill
- meta-refreshSkill
- meta-retroSkill
- meta-skillSkill
- monitoring-patternsSkill
- next-app-router-patternsSkill
- nuxt-patternsSkill
- opentofu-patternsSkill
- pr-descriptionSkill
- pr-publishSkill
- pr-queueSkill
- pr-replySkill
- pr-reviewSkill
- python-patternsSkill
- react-patternsSkill
- report-formatSkill
- The first 60 shown.
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
- Very specific: line 33
Read each file and check it against the loaded references.
≈ “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.
Files
/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
fdin the target. If it holds none of the kinds below, stop and say so.
Procedure
- For each kind present, load its skill and read its
anti-patterns.mdfirst, 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 |
- Read each file and check it against the loaded references. A secret committed in one of these files is a
failure, named redacted. - CI workflows are
/audit-ci's job. Name it as the next step when.github/workflowsexists. - 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; aplancan 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.dockerignoreentry 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
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
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.

