terraform

Write, plan, and apply Terraform and OpenTofu infrastructure as code.

18.1k|2.3k|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/RightNow-AI/openfang --skill terraform-rightnow-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform
Source: https://github.com/RightNow-AI/openfang/tree/main/crates/openfang-skills/bundled/terraform
Command: npx skills add https://github.com/RightNow-AI/openfang --skill terraform-rightnow-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill assists users in writing, planning, applying, and managing infrastructure as code (IaC) using Terraform and OpenTofu, ensuring robust and maintainable cloud deployments.

Core Features & Use Cases

  • IaC Development: Guides users in writing Terraform/OpenTofu configurations, including provider setup and resource definition.
  • State Management: Provides best practices for secure and efficient management of Terraform state, including remote backends and state manipulation.
  • Module Design: Offers advice on creating reusable, well-documented Terraform modules.
  • Best Practices & Pitfalls: Educates on IaC principles, common mistakes, and how to avoid them.
  • Use Case: A user needs to set up a new AWS S3 bucket with versioning and encryption. This Skill can help them write the correct Terraform code, plan the changes, and apply them safely.

Quick Start

Use the terraform skill to generate a plan for the current Terraform configuration.

Frequently Asked Questions about terraform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Terraform configurations for cloud infrastructure deployment?

To write Terraform configurations, define your cloud resources and provider setup using infrastructure as code principles. This approach guides you in creating robust, secure, and maintainable deployments by structuring your code for reusability and planning changes before application.

What are the best practices for Terraform state management?

Terraform state management best practices involve using remote backends for secure storage and efficient manipulation. Proper state management ensures safe collaboration, prevents configuration drift, and maintains the integrity of your infrastructure as code deployments.

Does OpenTofu work with existing Terraform provider configurations?

OpenTofu works with existing Terraform provider configurations to manage infrastructure as code. It supports provider setup, resource definition, and module design, allowing you to create, plan, and apply IaC while maintaining security and reusability across your cloud environments.

How do I create reusable Terraform modules?

To create reusable Terraform modules, structure your infrastructure as code with clear inputs, outputs, and documentation. This ensures your modules are maintainable, promote robust cloud deployment, and can be easily shared across different projects and environments.

What are common pitfalls when applying infrastructure as code?

Common infrastructure as code pitfalls include improper state management, hardcoded values, and poorly structured modules. Avoid these mistakes by following best practices for security, reusability, and maintainability to ensure robust and safe cloud infrastructure deployment.