terraform-arch-mapper
3
总安装量
3
周安装量
#61509
全站排名
安装命令
npx skills add https://github.com/famaoai-creator/gemini-skills --skill terraform-arch-mapper
Agent 安装分布
cursor
3
claude-code
3
replit
3
mcpjam
2
openhands
2
zencoder
2
Skill 文档
Terraform Arch Mapper
Overview
This skill analyzes Terraform configuration files (.tf) to extract infrastructure resources and their dependencies. It then generates a visual representation of the system architecture using Mermaid.js or PlantUML.
Capabilities
- Resource Extraction:
- Scans all
.tffiles in a directory. - Identifies provider resources (e.g.,
aws_instance,google_storage_bucket).
- Scans all
- Relationship Mapping:
- Detects dependencies between resources (e.g.,
vpc_id = aws_vpc.main.id).
- Detects dependencies between resources (e.g.,
- Diagram Generation:
- Outputs Mermaid C4 or flowchart code.
- Outputs PlantUML code.
Usage
# Generate Mermaid diagram (default)
node scripts/generate_diagram.cjs [path/to/terraform/dir]
# Generate PlantUML diagram
node scripts/generate_diagram.cjs [path/to/terraform/dir] --format plantuml
Dependencies
- Node.js environment
hcl2-parser(for parsing Terraform files)
Knowledge Protocol
- This skill adheres to the
knowledge/orchestration/knowledge-protocol.md. It automatically integrates Public, Confidential (Company/Client), and Personal knowledge tiers, prioritizing the most specific secrets while ensuring no leaks to public outputs.