Skip to content

unleftie/terraform-skill

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Skill for Claude

Claude Skill Terraform OpenTofu License

Comprehensive Terraform and OpenTofu best practices skill for Claude Code. Get instant guidance on module patterns, and production-ready infrastructure code.

What This Skill Provides

πŸ“¦ Module Development

  • Structure and naming conventions
  • Versioning strategies
  • Public vs private module patterns

πŸ”’ Security & Compliance

  • Trivy, Checkov integration
  • Policy-as-code patterns
  • Compliance scanning workflows

Installation

git clone https://github.com/unleftie/terraform-skill ~/.claude/skills/terraform-skill

Verify Installation

After installation, try:

"Create a Terraform module with testing for an S3 bucket"

Claude will automatically use the skill when working with Terraform/OpenTofu code.

Quick Start Examples

Create a module:

"Create a Terraform module for AWS VPC"

Review existing code:

"Review this Terraform configuration following best practices"

What It Covers

Module Development Patterns

  • Naming conventions (terraform-<PROVIDER>-<NAME>)
  • Directory structure best practices
  • Input variable organization
  • Output value design
  • Version constraint patterns
  • Documentation standards

Common Patterns & Anti-patterns

Side-by-side βœ… DO vs ❌ DON'T examples for:

  • Variable naming
  • Resource naming
  • Module composition
  • State management
  • Provider configuration

Requirements

  • Claude Code or other Claude environment supporting skills
  • Terraform 1.0+ or OpenTofu 1.6+
  • Optional: MCP Terraform server for enhanced registry integration

Releases

Releases are automated based on conventional commits in commit messages:

Commit Type Version Bump Example
feat!: or BREAKING CHANGE: Major 1.2.3 β†’ 2.0.0
feat: Minor 1.2.3 β†’ 1.3.0
fix: Patch 1.2.3 β†’ 1.2.4
Other commits Patch (default) 1.2.3 β†’ 1.2.4

Releases are created automatically when changes are pushed to master.

Related Resources

Official Documentation

Community Resources

Development Tools

License & Attribution

License: Apache 2.0 - see LICENSE

Based on terraform-skill by Anton Babenko
https://github.com/antonbabenko/terraform-skill
terraform-best-practices.com | Compliance.tf

About

The Claude Agent Skill for Terraform and OpenTofu - testing, modules, CI/CD, and production patterns

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors