# Infra audit

> Infra audit is an open-source agent skill for developer tools. Writes a dated report mapping a repository's infrastructure, environments and secret names. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/main/nexa-claude-audit/skills/infra-audit
- **Repository:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **GitHub stars:** 7
- **License:** Apache-2.0
- **Skill name:** infra-audit
- **Collection:** https://github.com/nexadevapp/nexa-claude-skills-marketplace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Infra audit inspects the current repository and produces a dated markdown report under docs/audit/infra-audit. It looks for infrastructure as code and container definitions such as Terraform, Pulumi, CDK, Helm, Kubernetes manifests, Dockerfiles, Compose files and serverless or platform configs, and records the tool, the environments each one targets and the main resources it creates.

The skill also lists environment files and profiles, explains how an environment gets selected, and catalogues secret references by name only, with no values copied. It maps local development infrastructure too, including Compose files, dev containers, seed scripts and Makefile or Taskfile targets. Committed files that appear to hold a real credential are flagged as gaps, naming the file and key only.

The skill is meant to run only when invoked explicitly with its slash command, and it is designed to work on any repository regardless of tech stack. It writes only the single report file and follows a shared audit contract that sets the report context and path.

## When your agent uses it

> Writes a dated infrastructure audit report for the current repository: where and how the infrastructure is defined (Terraform, Pulumi, CDK, Helm, Kubernetes, Dockerfiles, Compose, serverless configs), the environments and how one is selected, the secret references (names only), and the local development infrastructure. Works on any repository and any tech stack. Writes only docs/audit/infra-audit/infra-audit-YYYY-MM-DD-<hash>.md. This skill must only be invoked explicitly via /infra-audit — never inferred from user messages.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/infra-audit)
- [License: Apache-2.0](https://github.com/nexadevapp/nexa-claude-skills-marketplace/tree/HEAD/nexa-claude-audit/skills/infra-audit)

## Features

- **Infrastructure definitions map:** Finds IaC, container and serverless definitions and records the tool, target environments and main resources.
- **Environment selection review:** Lists environment files and profiles and shows how an environment is chosen at runtime.
- **Secret reference inventory:** Lists secret names and where they are referenced, without copying any values.
- **Local development setup:** Catalogues Compose files, dev containers, seed scripts and build targets used locally.
- **Gap reporting:** Flags suspected committed secrets and undefined environments in a dedicated gaps section.
- **Dated audit report:** Writes one markdown report per run to a dated path under docs/audit.

## Good for

- Document how a repository's infrastructure is defined
- Check which environments exist and how one is selected
- List secret names referenced across infrastructure files
- Spot committed files that may contain real credentials
- Summarise the local development stack for new developers

## Install

### Claude Code

This skill ships in the `nexa-claude-audit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add nexadevapp/nexa-claude-skills-marketplace
/plugin install nexa-claude-audit@nexa-claude-marketplace
```

Or copy only this skill to `~/.claude/skills/infra-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/infra-audit &&
cp -R "$tmp/nexa-claude-audit/skills/infra-audit" ~/.claude/skills/infra-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/infra-audit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/infra-audit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/infra-audit &&
cp -R "$tmp/nexa-claude-audit/skills/infra-audit" ~/.agents/skills/infra-audit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/infra-audit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/infra-audit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/infra-audit &&
cp -R "$tmp/nexa-claude-audit/skills/infra-audit" ~/.cursor/skills/infra-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/infra-audit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/nexadevapp/nexa-claude-skills-marketplace.git --path nexa-claude-audit/skills/infra-audit
```

Or copy the folder to `~/.gemini/skills/infra-audit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/infra-audit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/infra-audit &&
cp -R "$tmp/nexa-claude-audit/skills/infra-audit" ~/.copilot/skills/infra-audit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/infra-audit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/nexadevapp/nexa-claude-skills-marketplace.git
```

Then copy `nexa-claude-skills-marketplace/nexa-claude-audit/skills/infra-audit` into your agent's skills folder as `infra-audit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Infra audit run?

Only when the user explicitly types /infra-audit. It is set so it is never inferred from ordinary messages or triggered by other skills.

### What does Infra audit write?

It writes a single report file at docs/audit/infra-audit/ with a dated name, and nothing else.

### Does Infra audit expose secret values?

No. The report lists secret names and where they are referenced, and the skill's checks confirm no value appears in the output.

### Which infrastructure tools does Infra audit recognise?

It searches for Terraform and OpenTofu, Pulumi, AWS CDK, CloudFormation and SAM, Bicep, Helm, Kubernetes and Kustomize, Dockerfiles, Compose files and several serverless or platform configs.

### How do I install Infra audit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/infra-audit to use it in all your projects, or to .claude/skills/infra-audit in one project. Or install the nexa-claude-audit plugin, which includes it: /plugin marketplace add nexadevapp/nexa-claude-skills-marketplace, then /plugin install nexa-claude-audit@nexa-claude-marketplace.

### Does Infra audit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Infra audit?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Infra audit?

The closest alternatives to Infra audit are Cicd audit, QA audit, Architecture audit, System audit and Test efficacy audit.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cicd audit](https://ai-powered.com/skills/cicd-audit): Cicd audit is an open-source agent skill for developer tools.
- [QA audit](https://ai-powered.com/skills/qa-audit): QA audit is an open-source agent skill for developer tools.
- [Architecture audit](https://ai-powered.com/skills/architecture-audit): Architecture audit is an open-source agent skill for developer tools.
- [System audit](https://ai-powered.com/skills/system-audit): System audit is an open-source agent skill for developer tools.
- [Test efficacy audit](https://ai-powered.com/skills/test-efficacy-audit): Test efficacy audit is an open-source agent skill for developer tools.
- [Skill review](https://ai-powered.com/skills/skill-review): Skill review is an open-source agent skill for developer tools.
- [Skill audit](https://ai-powered.com/skills/skill-audit): Skill audit is an open-source agent skill for developer tools.
- [Audit](https://ai-powered.com/skills/audit-zerotechdebt): Audit is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/infra-audit
