opentofu-modules
✓為家庭實驗室基礎架構編寫 OpenTofu/Terraform 模組和綜合測試。 在下列情況下使用:(1) 建立新的 OpenTofu 或 Terraform 模組,(2) 編寫或修改 .tftest.hcl 測試文件, (3) 在模組中加入變數、輸出或資源,(4) 偵錯測試失敗, (5) 了解模組測試模式,(6) 編寫基礎設施單元測試, (7)有關tftest語法或斷言的問題。 觸發器:「opentofu 模組」、「terraform 模組」、「tofu 模組」、「建立模組」、 ".tftest.hcl", "tftest", "測試我的模組", "模組測試", "基礎架構測試", “測試基礎設施”,“variables.tf”,“outputs.tf”,“模組測試”,“斷言”, “任務 tg:測試”、“測試配置”、“測試失敗” 此技能涵蓋 OpenTofu v1.11 測驗語法、變數繼承模式、 斷言最佳實務以及基礎設施/模組/中特定於儲存庫的約定。
SKILL.md
Write OpenTofu modules and tests for the homelab infrastructure. Modules live in infrastructure/modules/, tests in infrastructure/modules/ /tests/.
Use .tftest.hcl extension. Define top-level variables for defaults inherited by all run blocks.
Use command = plan Always use plan mode for tests. This validates configuration without creating resources.
為家庭實驗室基礎架構編寫 OpenTofu/Terraform 模組和綜合測試。 在下列情況下使用:(1) 建立新的 OpenTofu 或 Terraform 模組,(2) 編寫或修改 .tftest.hcl 測試文件, (3) 在模組中加入變數、輸出或資源,(4) 偵錯測試失敗, (5) 了解模組測試模式,(6) 編寫基礎設施單元測試, (7)有關tftest語法或斷言的問題。 觸發器:「opentofu 模組」、「terraform 模組」、「tofu 模組」、「建立模組」、 ".tftest.hcl", "tftest", "測試我的模組", "模組測試", "基礎架構測試", “測試基礎設施”,“variables.tf”,“outputs.tf”,“模組測試”,“斷言”, “任務 tg:測試”、“測試配置”、“測試失敗” 此技能涵蓋 OpenTofu v1.11 測驗語法、變數繼承模式、 斷言最佳實務以及基礎設施/模組/中特定於儲存庫的約定。 來源:ionfury/homelab。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/ionfury/homelab --skill opentofu-modules- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-11
- 更新時間
- 2026-02-18
快速解答
什麼是 opentofu-modules?
為家庭實驗室基礎架構編寫 OpenTofu/Terraform 模組和綜合測試。 在下列情況下使用:(1) 建立新的 OpenTofu 或 Terraform 模組,(2) 編寫或修改 .tftest.hcl 測試文件, (3) 在模組中加入變數、輸出或資源,(4) 偵錯測試失敗, (5) 了解模組測試模式,(6) 編寫基礎設施單元測試, (7)有關tftest語法或斷言的問題。 觸發器:「opentofu 模組」、「terraform 模組」、「tofu 模組」、「建立模組」、 ".tftest.hcl", "tftest", "測試我的模組", "模組測試", "基礎架構測試", “測試基礎設施”,“variables.tf”,“outputs.tf”,“模組測試”,“斷言”, “任務 tg:測試”、“測試配置”、“測試失敗” 此技能涵蓋 OpenTofu v1.11 測驗語法、變數繼承模式、 斷言最佳實務以及基礎設施/模組/中特定於儲存庫的約定。 來源:ionfury/homelab。
如何安裝 opentofu-modules?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/ionfury/homelab --skill opentofu-modules 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/ionfury/homelab