AgentSkillsCN

tfdc-guide-style

使用 tfdc 获取官方 Terraform 风格指南。适用于需要 Terraform 编码规范、格式化规则、命名标准,或编写 HCL 代码的最佳实践时使用。

SKILL.md
--- frontmatter
name: tfdc-guide-style
description: Fetch the official Terraform style guide using tfdc. Use when you need Terraform coding conventions, formatting rules, naming standards, or best practices for writing HCL code.

tfdc guide style

Fetch the official Terraform style guide from HashiCorp docs.

Usage

bash
tfdc guide style [-format text]

Flags

FlagRequiredDefaultDescription
-formatNotextOutput format: text, json, markdown

Examples

bash
# Fetch style guide as plain text
tfdc guide style

# Fetch as JSON
tfdc guide style -format json

JSON output

json
{
  "id": "style-guide",
  "content": "# Terraform Style Guide\n\n...",
  "content_type": "text/markdown"
}

Content

The style guide covers Terraform coding conventions including:

  • File and directory structure
  • Naming conventions
  • Variable and output formatting
  • Resource ordering
  • Code organization best practices