import
/import
Draw existing infrastructure or an existing diagram as an editable infragram diagram file and a report, exported to HTML, SVG and PNG - from Azure Terraform (a configuration folder, a plan or a state), or from a diagram drawn in draw.io, Mermaid, PlantUML, Excalidraw, Visio/Lucidchart or a Markdown page's diagram blocks. Run when the user invokes it with Terraform or a diagram file to draw.
- Author
- joselrnz ↗
- Repository
- infragram-azure ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Draw existing infrastructure or an existing diagram as an editable infragram diagram file and a report, exported to HTML, SVG and PNG - from Azure Terraform (a configuration folder, a plan or a state), or from a diagram drawn in draw.io, Mermaid, PlantUML, Excalidraw, Visio/Lucidchart or a Markdown page's diagram blocks. Run when the user invokes it with Terraform or a diagram file to draw.
Arguments
/import <terraform-folder | plan.json | terraform.tfstate | file.drawio | file.mmd | file.puml | file.excalidraw | file.vsdx | p
Original author description
Draw existing infrastructure or an existing diagram as an editable infragram diagram file and a report, exported to HTML, SVG and PNG - from Azure Terraform (a configuration folder, a plan or a state), or from a diagram drawn in draw.io, Mermaid, PlantUML, Excalidraw, Visio/Lucidchart or a Markdown page's diagram blocks. Run when the user invokes it with Terraform or a diagram file to draw.
How it works
- Terraform
- A diagram from another tool
- Report back
SKILL.md preview
---
name: import
description: Draw existing infrastructure or an existing diagram as an editable infragram diagram file and a report, exported to HTML, SVG and PNG - from Azure Terraform (a configuration folder, a plan or a state), or from a diagram drawn in draw.io, Mermaid, PlantUML, Excalidraw, Visio/Lucidchart or a Markdown page's diagram blocks. Run when the user invokes it with Terraform or a diagram file to draw.
argument-hint: <terraform-folder | plan.json | terraform.tfstate | file.drawio | file.mmd | file.puml | file.excalidraw | file.vsdx | page.md> [--page NAME|N] [--var-file prod.tfvars] [--output-dir <dir>] [--force]
disable-model-invocation: true
allowed-tools: Read Write Glob Bash(python:*) Bash(python3:*)
---
# Draw existing Terraform or an existing diagram
Draw what the file or folder named in the arguments (`$ARGUMENTS`) holds.
This command belongs to the Infragram Azure plugin: the `infragram-azure`
skill sits beside this skill's folder, and `<plugin>` below is the folder
holding both: `${CLAUDE_PLUGIN_ROOT}` in Claude Code, and in Codex or Pi the
folder two above this skill's own.
Use `python3` where `python` is not Python 3. Never add `--force` unless the
user explicitly intends to replace the named files.
## Terraform
When the first argument is a folder of Terraform, a plan as `terraform show
-json` writes it, or a `terraform.tfstate`, read
`<plugin>/skills/infragram-azure/references/terraform.md` section 3 first: it
says what is drawn, what is folded or left out, and why. Run from the user's
directory:
```bash
python "<plugin>/skills/infragram-azure/scripts/infragram.py" import:terraform <the arguments> --verify
```
This edition draws `azurerm` and `azapi` resources, the Azure Verified
Modules included; a resource of another provider is left out of the drawing
and the report says so. A plan draws what it would do to each resource, and
a `-refresh-only` plan draws drift. A live subscription instead of files is
the `discover` command. Never run a Terraform or cloud command that creates,
changes or deletes anything.
## A diagram from another tool
When the first argument is a draw.io file (`.drawio`, `.drawio.png`,
`.drawio.svg`), Mermaid (`.mmd`), PlantUML (`.puml`), Excalidraw
(`.excalidraw`, `.excalidraw.md`), Visio or Lucidchart (`.vsdx`), or a
Markdown page with ```` ```mermaid ```` or ```` ```plantuml ```` blocks, read
`<plugin>/skills/infragram-azure/references/import-diagrams.md` first. When
the file may hold several diagrams, list them, then import:
```bash
python "<plugin>/skills/infragram-azure/scripts/infragram.py" import:diagram <file> --list
python "<plugin>/skills/infragram-azure/scripts/infragram.py" import:diagram <the arguments> --verify
```
Each diagram (a page, a block) becomes its own diagram file and report;
`--page` picks some. A shape drawn with another vendor's artwork (an AWS or
Google Cloud service) falls back to a generic component, and the report
lists every such guess.
## Report back
Report the `READ`, `SPEC` and `REPORT` lines, every produced path and byte
size, the verification verdict, and the notes about what could not be read.
For a diagram import, also name the shapes the report lists under "Guessed
from words or shape". The diagram file is the starting point: offer to
regroup, recaption or reclass it, then compose it again.
Files in this package (2)
- SKILL.md 3 KB
- agents/openai.yaml 1 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · joselrnz/infragram-azure | 95 | MIT |
| Insilico-org/plsi | 100 | MIT |
| zimoliao/scholaraio | 100 | MIT |
| chemaclass/agnostic-ai | 100 | MIT |
| GDM-Digital-Media-Group/fmp-plugins | 100 | Apache-2.0 |
| cubetes/coaich | 100 | AGPL-3.0 |
| wszqkzqk/scrinium | 100 | GPL-3.0 |
| xtsoftwarelabs/neatcontext-plugins | 100 | MIT |
| crisandrews/clawcode | 95 | MIT |
Database snapshot: 13.11.2026 · package version 54384556166a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 91export-project
Export an .infragram.json infrastructure project, or an exported SVG, PNG or page that carries one, to HTML, SVG and PNG, and on request its Azure Terraform skeleton. Run when the user invokes it with a document or picture. - 91compose
Build an infrastructure diagram from a Python diagram file (frames as with-blocks, automatic layout) and export it to HTML, SVG and PNG, and on request its Azure Terraform skeleton. Run when the user invokes it with a diagram file or asks for one to be written and drawn. - 90generate
Draw an editable Mermaid diagram from a graph file, an architecture plan from aws-architect, or an inventory file, as architecture, dependency, data-flow, trust-boundary, event-flow, or deployment views. Use when the user has a design or inventory and wants a diagram. - 100aws-drawio-diagram
AWS の構成図を draw.io の XML(.drawio)で描く。公式の AWS4 アイコンを使い、タイトルや凡例や番号バッジのような装飾を足さず、どのサービスがどこにあって何とつながっているかだけで読める図にする。AWS 構成図、アーキテクチャ図、インフラ構成図、ネットワーク構成図、VPC の図を描いてほしいとき、draw.io で AWS の図を作りたいとき、既存の構成図を直したいときは必ずこの Skill を使う。Use this whenever the user asks for an AWS architecture diagram,… - 100diagram-design
Create or redraw evidence-based architecture, workflow, sequence, data-model and other technical diagrams as editable HTML/SVG with optional PNG export. Use for system documentation and visual explanations, including draw.io, Mermaid or Excalidraw imports. - 98terravision-cloud-diagrams
Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision. Use whenever the user asks to draw, diagram, sketch or visualize a system on AWS, Azure or Google Cloud, or one built from their services (Lambda, DynamoDB, S3, EC2,…