Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

Back to skills

Opentofu Provisioning Workflow Skill

ASecurity

Infrastructure as Code development patterns, resource lifecycle management, and state management workflows with OpenTofu

6 stars
0 votes
0 copies
0 views
Added 9/20/2026
devopsgokubernetesawsazuregitdatabasebackendci/cd

Security Analysis

A100/100

Scanned 9/20/2026

Install to Claude Code

$npx -y skills add darellchua2/opencode-config-template --skill opentofu-provisioning-workflow-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Opentofu Provisioning Workflow Skill?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Opentofu Provisioning Workflow Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/darellchua2-opentofu-provisioning-workflow-skill/badge)](https://www.skillsdirectory.com/skills/darellchua2-opentofu-provisioning-workflow-skill)

More formats (shields.io, HTML) on the badges page.

Download Zip
Files
SKILL.md
---
name: opentofu-provisioning-workflow-skill
description: Infrastructure as Code development patterns, resource lifecycle management, and state management workflows with OpenTofu
license: Apache-2.0
compatibility: opencode
category: OpenTofu
---

## What I do

IaC development workflow with OpenTofu: provisioning, lifecycle (create/modify/replace/delete), state management and drift, dependency ordering, safe plan→apply discipline.

## When to use me

Creating/updating infrastructure; pre-apply planning; state troubleshooting; safe update/rollback procedures.

## Prerequisites (house chain)

**Complete `opentofu-provider-setup-skill` first** — provider auth + remote state backend (S3/Azure/GCS) live there. Domain skills: `opentofu-aws-explorer-skill`, `opentofu-kubernetes-explorer-skill`, `opentofu-keycloak-explorer-skill`, `opentofu-neon-explorer-skill`, `opentofu-ecr-provision-skill`.

## Workflow (canonical commands)

`tofu init` → `tofu fmt` → `tofu validate` → `tofu plan -out=tfplan` → review → `tofu apply tfplan` → `tofu output` / `tofu show`. Update: `tofu plan -out=tfplan -refresh=true` → apply. Destroy: `tofu plan -destroy` → `tofu destroy`.

## House rules

- **Plan file discipline**: always `plan -out` then `apply tfplan` — NEVER bare `tofu apply` (it re-plans against drifted state). Review the plan output before applying; unknown-value warnings are investigated, not ignored.
- **Lifecycle**: rely on `lifecycle { create_before_destroy }` for replacement-sensitive resources; `prevent_destroy` on stateful resources (databases, buckets with data); explicit `depends_on` only when the dependency is invisible to the graph.
- **State**: remote backend with locking (mandatory for teams); `tofu state list`/`show`/`mv` for surgical fixes; drift = `plan -refresh=true` diff, reconcile by import or code change — never `apply` over unexplained drift. Never edit state by hand.
- **Imports**: `tofu import` for adopting existing resources; verify with plan showing no diff before the next apply.

## CI/CD anti-patterns

### `gha-artifact-name-mismatch`
Plan-then-apply split across GHA jobs: if `upload-artifact` and `download-artifact` names don't match exactly, the apply job downloads an empty artifact and applies nothing (or fails confusingly). Use one consistent name including `${{ github.sha }}` and pin both action versions.

### `no-rollback-on-deploy`
Deploying a new Lambda container image without capturing the previous URI leaves a failed smoke test un-recoverable automatically. Capture previous image (`aws lambda get-function --query 'Code.ImageUri'`) before `update-function-code`, smoke-test after `wait function-updated`, and restore the previous URI on failure.

> Removed 2026-09: step-by-step HCL provisioning walkthroughs (EC2/VPC/RDS recipes), Best Practices essays, Common Issues triage, advanced pattern catalog, Tips lists — provider-schema knowledge covered by the explorer skills; kept the workflow contract, state/lifecycle rules, and the two CI/CD anti-patterns.

Attribution

darellchua2darellchua2
View sourceMore from darellchua2 →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Terraform Module Library

Build reusable Terraform modules for AWS, Azure, and GCP infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

393431 votes

sematext-otel

Wire a service's OpenTelemetry output to Sematext Cloud. Walks through region, App-type, instrumentation flow (managed OTLP endpoint vs Sematext Agent), and signal selection (traces/metrics/logs), then produces the exact env-var block and points at a runnable reference example in this repo. Invoke when instrumenting a new app for Sematext.

01 votes

Deployment Patterns

Deployment workflows, CI/CD pipeline patterns, Docker containerization, health checks, rollback strategies, and production readiness checklists for web applications. Use when setting up deployment infrastructure or planning releases.

2459130 votes

Babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

929660 votes

V7 Roster

Interact with the Paperclip control plane API for task coordination and governance. Use when checking assignments, updating issue status, posting comments, delegating work, managing routines, or calling Paperclip API endpoints.

805540 votes
View all in devops →