Terraform Skill for Claude
Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience.
When to Use
- The request matches the skill description: Terraform infrastructure as code best practices
- The task needs the implementation patterns, examples, validation checks, or edge cases listed in the topic map.
- The work would benefit from the complete guidance preserved in
references/full-guidance.md.
Core Workflow
- Confirm the request matches this skill's trigger, scope, and risk profile.
- Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.
- Load
references/full-guidance.md when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.
- Apply only the relevant guidance instead of loading or repeating the entire reference by default.
- Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.
Topic Map
- When to Use This Skill
- Core Principles
- Code Structure Philosophy
- Naming Conventions
- Testing Strategy Framework
- Decision Matrix: Which Testing Approach?
- Testing Pyramid for Infrastructure
- Native Test Best Practices (1.6+)
- Code Structure Standards
- Resource Block Ordering
- Variable Block Ordering
- Count vs For_Each: When to Use Each
- Quick Decision Guide
- Common Patterns
- Locals for Dependency Management
- Module Development
- Standard Module Structure
- Best Practices Summary
Reference Map
references/full-guidance.md preserves the complete original guidance, including examples and detailed edge cases.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Progressive Loading
Keep this SKILL.md as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.
1---2name: terraform-skill3description: Terraform infrastructure as code best practices4license: MIT5---67# Terraform Skill for Claude89Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience.1011## When to Use12- The request matches the skill description: Terraform infrastructure as code best practices13- The task needs the implementation patterns, examples, validation checks, or edge cases listed in the topic map.14- The work would benefit from the complete guidance preserved in `references/full-guidance.md`.1516## Core Workflow171. Confirm the request matches this skill's trigger, scope, and risk profile.182. Use the topic map to identify the relevant pattern, checklist, or example before writing detailed guidance or code.193. Load `references/full-guidance.md` when implementation details, examples, anti-patterns, validation checks, or edge cases are needed.204. Apply only the relevant guidance instead of loading or repeating the entire reference by default.215. Verify the result against any validation checks, limitations, security notes, or platform constraints in the reference.2223## Topic Map24- When to Use This Skill25- Core Principles26- Code Structure Philosophy27- Naming Conventions28- Testing Strategy Framework29- Decision Matrix: Which Testing Approach?30- Testing Pyramid for Infrastructure31- Native Test Best Practices (1.6+)32- Code Structure Standards33- Resource Block Ordering34- Variable Block Ordering35- Count vs For_Each: When to Use Each36- Quick Decision Guide37- Common Patterns38- Locals for Dependency Management39- Module Development40- Standard Module Structure41- Best Practices Summary4243## Reference Map44- `references/full-guidance.md` preserves the complete original guidance, including examples and detailed edge cases.4546## Limitations47- Use this skill only when the task clearly matches the scope described above.48- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.49- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.5051## Progressive Loading52Keep this `SKILL.md` as the compact routing and workflow entrypoint. Load the reference file only when the user task requires the deeper implementation material.