# Infrastructure diagram (/cloud--infra-diagram)

/cloud--infra-diagram is a Claude Code skill in the Code section. Generates a Mermaid diagram of your infrastructure from Terraform, Kubernetes, docker-compose and other config files.

- Web version: https://skills.sgomez.dev/en/s/cloud--infra-diagram
- Section: [Code](https://skills.sgomez.dev/en/code.md)
- Author: Santiago Gómez de la Torre
- License: MIT
- Source: https://github.com/sgomez-dev/claude-skills/blob/main/skills/cloud/infra-diagram.md
- Updated 10 Jul 2026

## How to ask for it

- `/cloud--infra-diagram generate a diagram of my infrastructure from the Terraform files`
- `/cloud--infra-diagram I want to visualize how my services connect in production`
- `/cloud--infra-diagram create a Mermaid diagram of my Kubernetes architecture`

## Install

macOS · Linux:

```
curl -fsSL https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.sh | bash
```

Windows:

```
irm https://raw.githubusercontent.com/sgomez-dev/claude-skills/main/install.ps1 | iex
```

Claude Code plugin:

```
/plugin marketplace add sgomez-dev/claude-skills
/plugin install cloud-skills@claude-skills-collection
```

## Permissions

- Reads: `**/*.tf`, `**/*.yaml`, `**/*.yml`, `**/*.json`, `**/docker-compose*`
- Writes: `*.md`, `*.mmd`
- Runs: —
- Network: No
- Destructive: No

## Author's description

Generate infrastructure diagrams (Mermaid) from IaC and config files

- [How we review this](https://skills.sgomez.dev/en/methodology.md)
