opentofu-provider-setup-skill

opentofu-provider-setup-skill is a skill for OpenCode from darellchua2/opencode-config-template. It costs 25 tokens per session (2,446 once invoked), scanned A, original, Apache-2.0.

A guide for configuring OpenTofu providers, authentication, and remote state backends. Providers connect OpenTofu to services such as AWS, Azure, or Google Cloud, while state records managed resources.

In plain words
What is it for?
Use it to initialize projects, connect cloud accounts, configure remote state, and troubleshoot provider authentication.
Why use it?
It removes common setup and credential problems and supports shared state for team infrastructure work.

Skill for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions OpenCode.

Good fit Use it to initialize projects, connect cloud accounts, configure remote state, and troubleshoot provider authentication.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/darellchua2/opencode-config-template/opentofu-provider-setup-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add darellchua2/opencode-config-template --skill opentofu-provider-setup-skill
Clone the repo
git clone --depth 1 https://github.com/darellchua2/opencode-config-template

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opentofu-provider-setup-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opentofu-provider-setup-skill.svg)](https://agentmods.dev/skills/darellchua2/opencode-config-template/opentofu-provider-setup-skill)
Your own site
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/opentofu-provider-setup-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/opentofu-provider-setup-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.02446
Opus 5 $0.00013 $0.01223
Sonnet 5 $0.00005 $0.00489
Haiku 4.5 $0.00003 $0.00245

Measured 4d ago against content hash f6da7160866d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

opentofu-provider-setup-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

opencode_app/.opencode/skills/opentofu-provider-setup-skill/SKILL.md · 403 lines

How it starts

The opening of the file, as written. The whole thing — 403 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenTofu Provider Setup

What I do

I guide you through configuring OpenTofu with various cloud providers by leveraging official OpenTofu and Terraform provider documentation. I help you:

  • Provider Configuration: Set up provider blocks with required and optional parameters
  • Authentication: Configure authentication methods (access keys, service principals, etc.)
  • State Management: Configure remote state backends (S3, Azure Storage, GCS, etc.)
  • Best Practices: Follow provider-specific configuration patterns from official docs

When to use me

Use this skill when you need to:

  • Initialize a new OpenTofu project with provider configuration
  • Configure authentication for cloud providers (AWS, Azure, GCP, etc.)
  • Set up remote state backends for team collaboration
  • Understand provider configuration options and best practices
  • Troubleshoot provider connection or authentication issues

Prerequisites

  • OpenTofu CLI installed: Install from https://opentofu.org/docs/intro/install/
  • Cloud Provider Account: Valid credentials for your target provider
  • Basic Terraform Knowledge: Understanding of HCL syntax and configuration structure
  • Provider Documentation: Reference to your provider's official documentation

Steps

Step 1: Install OpenTofu CLI

# Verify OpenTofu installation
tofu version

# If not installed, install using package manager or download from:
# https://opentofu.org/docs/intro/install/

Step 2: Initialize OpenTofu Project

# Create new project directory
mkdir my-opentofu-project
cd my-opentofu-project

# Initialize OpenTofu
tofu init

Step 3: Configure Provider

Create versions.tf to specify required provider versions:

terraform {
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "~> 5.0"
    }
    # Or for Azure:
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "~> 3.0"
    }
    # Or for GCP:
    google = {
      source  = "hashicorp/google"
      version = "~> 5.0"
    }
  }

  # Configure state backend (see Step 4)
  backend "s3" {
    bucket = "my-opentofu-state"
    key    = "prod/terraform.tfstate"
    region = "us-east-1"
  }
}

Read the full file on GitHub · 403 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 403 lines · 25 tokens per session scan E f6da7160866d

Subscribe to this mod's changes

opentofu-provider-setup-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 25 tokens to every session and 2,446 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

terraform-best-practices

Terraform and Infrastructure as Code optimization guidelines from Terramate. This skill should be used when writing, reviewing, or refactoring Terraform/OpenTofu code to ensure optimal patterns for security, maintainability, and reliability. Triggers on tasks involving Terraform modules, infrastructure provisioning…

terramate-io/agent-skills · 67 tokens

terramate-best-practices

Terramate CLI, Cloud, and Catalyst best practices and usage guides. This skill should be used when working with Terramate stacks, orchestration, code generation, Cloud integration, or Catalyst components and bundles.

terramate-io/agent-skills · 49 tokens

terraform-iac

Terraform and OpenTofu infrastructure as code best practices - generate HCL configurations, module patterns, state management, CI/CD workflows, and cloud provider templates for AWS, GCP, Azure.

chainlesschain/chainlesschain · 41 tokens

tf-plan-review

Analyze Terraform plans for risk before you apply. Classifies every change as safe, moderate, dangerous, or critical. Detects destroys, IAM changes, data-loss risks, and blast radius. Entirely read-only — never runs apply.

cacheforge-ai/cacheforge-skills · 51 tokens

gke-compute-classes

Configures, optimizes, and troubleshoots GKE ComputeClasses. Use when configuring Spot VMs with on-demand fallback, targeting specific accelerators (GPUs/TPUs) or machine families, restricting ComputeClass access, or debugging pending pods related to node pool auto-creation. Do not use for cluster-level Node Auto…

google/skills · 83 tokens

gke-workload-security

Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running cluster security audits (auditcluster.sh), configuring Workload Identity Federation (impersonation, KSA/GSA binding, and pod setup), enforcing Network Policies (default-deny…

google/skills · 181 tokens