AgentSkillsCN

tfdc-guide-module-dev

使用 tfdc 获取 Terraform 模块开发指南。适用于需要模块构建、结构设计、发布流程或重构指导时使用。支持获取模块的特定章节,如模块构成、模块结构或模块提供者等内容。

SKILL.md
--- frontmatter
name: tfdc-guide-module-dev
description: Fetch the Terraform module development guide using tfdc. Use when you need guidance on building, structuring, publishing, or refactoring Terraform modules. Supports fetching specific sections like composition, structure, or providers.

tfdc guide module-dev

Fetch the Terraform module development guide from HashiCorp docs.

Usage

bash
tfdc guide module-dev [-section all] [-format text]

Flags

FlagRequiredDefaultDescription
-sectionNoallSection to fetch (see below)
-formatNotextOutput format: text, json, markdown

Sections

SectionDescription
allFetch all sections concatenated
indexOverview and introduction
compositionModule composition patterns
structureDirectory and file structure
providersProvider configuration in modules
publishPublishing modules to the registry
refactoringRefactoring and versioning modules

Examples

bash
# Fetch entire module development guide
tfdc guide module-dev

# Fetch only the structure section
tfdc guide module-dev -section structure

# Fetch composition guide as JSON
tfdc guide module-dev -section composition -format json

JSON output

json
{
  "id": "module-dev/structure",
  "content": "# Module Structure\n\n...",
  "content_type": "text/markdown"
}

When -section all is used, the id field is "module-dev".