Pular para o conteúdo principal
Este conteúdo ainda não está disponível no seu idioma e está sendo exibido em inglês.

Terraform Diagram Generator

Skill
75

Generates architecture diagrams from Terraform code. Use when user has .tf files or asks to visualize Terraform infrastructure.

Resumo de IA

This skill parses Terraform configuration files (.tf, .tfvars) to extract infrastructure resources, modules, and their relationships. It then converts this information into Eraser DSL and calls the Eraser API to render a cloud architecture diagram, supporting multiple providers like AWS, Azure, and GCP.

Documentation

  • warning:Configuration & parameter referenceThe `ERASER_API_KEY` and `ERASER_THEME` environment variables are referenced in the curl command but are not explicitly documented with default values or precedence.

Security

  • warning:Secret ManagementThe skill requires an `ERASER_API_KEY` environment variable, which is critical for its operation, but this secret is not explicitly handled or guarded beyond being an environment variable. There is a risk of it being echoed if not handled carefully.
  • info:Data ExfiltrationThe skill makes an outbound call to the Eraser API. While the API key is required, the destination is documented, and the skill's purpose is diagram generation, not exfiltration of sensitive user data.

Code Execution

  • warning:ValidationWhile the skill instructs on label formatting rules for the Eraser DSL, there is no explicit mention or use of a schema validation library for input arguments (Terraform files) or the generated DSL before sending to the API.
  • warning:Error HandlingThe instructions mention handling the response, but there are no explicit details on how errors from the curl command or the Eraser API itself are caught, categorized, or reported to the agent, nor any mention of retry mechanisms for API calls.

Practical Utility

  • warning:Edge casesWhile the instructions cover label formatting and multiple providers, specific failure modes (e.g., API errors, invalid Terraform, rate limits) and their recovery paths are not explicitly documented.

Safety

  • warning:Halt on unexpected stateThe skill does not explicitly list preconditions in a machine-readable format, nor does it clearly instruct to abort on unexpected pre-state like malformed Terraform or API errors.

Instalação

npx skills add eraserlabs/eraser-io

Executa a CLI skills da Vercel (skills.sh) via npx — requer Node.js localmente e pelo menos um agente compatível com skills instalado (Claude Code, Cursor, Codex, …). Pressupõe que o repositório siga o formato agentskills.io.

30 days ago
18 stars
MIT
Atualizado em 1 day ago
Ver código-fonte