跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Terraform Diagram Generator

Skill
75

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

AI 摘要

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.

安装

npx skills add eraserlabs/eraser-io

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

about 1 month ago
18 stars
MIT
更新于 7 days ago
查看源代码