#601

Globales Ranking · von 601 Skills

opentofu AI Agent Skill

Quellcode ansehen: oakoss/agent-skills

Safe

Installation

npx skills add oakoss/agent-skills --skill opentofu

38

Installationen

OpenTofu

Overview

OpenTofu is an open-source infrastructure as code tool that uses HCL (HashiCorp Configuration Language) to declaratively manage cloud infrastructure. It is a community-driven fork of Terraform, fully compatible with existing Terraform providers and modules, with exclusive features like native state encryption. Pulumi provides an alternative IaC approach using general-purpose languages (TypeScript, Python, Go) instead of HCL.

When to use: Managing cloud infrastructure declaratively, provisioning multi-cloud resources, enforcing infrastructure consistency across environments, encrypting state at rest (OpenTofu), using familiar programming languages for IaC (Pulumi).

When NOT to use: One-off scripts better suited to CLI tools, application-level configuration management (use Ansible/Chef), container orchestration logic (use Kubernetes manifests), simple static hosting (use platform-native tools).

Quick Reference

Pattern Tool / Command Key Points
Initialize project tofu init Downloads providers, initializes backend
Preview changes tofu plan Shows diff without applying
Apply changes tofu apply Provisions/updates resources
Destroy resources tofu destroy Tears down managed infrastructure
Import resource tofu import <addr> <id> Brings existing resource under management
State encryption terraform.encryption block OpenTofu-exclusive, AES-GCM with key providers
Remote backend backend "s3" / backend "gcs" Store state in cloud storage with locking
Workspaces tofu workspace new <name> Isolated state per environment
Module usage module "name" { source = "..." } Reusable infrastructure components
Output values output "name" { value = ... } Expose values for other configs or CI
Variable files terraform.tfvars / -var-file Environment-specific variable overrides
Pulumi new project pulumi new typescript Scaffold TypeScript IaC project
Pulumi preview pulumi preview Shows planned changes
Pulumi deploy pulumi up Provisions/updates resources
Pulumi config pulumi config set key value Stack-scoped configuration
Pulumi secrets pulumi config set --secret key val Encrypted config values
Pulumi stacks pulumi stack select <name> Switch between environments
Automation API LocalWorkspace.createOrSelectStack() Programmatic stack management

Common Mistakes

Mistake Correct Pattern
Storing state locally in team environments Configure remote backend (S3, GCS, Azure Blob) with state locking
Hardcoding provider credentials in HCL Use environment variables or provider-specific auth chains
Using tofu apply without reviewing plan Run tofu plan -out=plan.tfplan then tofu apply plan.tfplan
Editing state manually Use tofu state mv, tofu state rm, or tofu import
Ignoring .terraform.lock.hcl Commit lock file for reproducible provider versions
Using count for complex conditional resources Prefer for_each with maps for stable resource addressing
Sharing one workspace for all environments Use separate workspaces or backend config per environment
Putting secrets in terraform.tfvars Use sensitive = true variables, vault, or environment variables
Pulumi: creating resources outside component classes Wrap related resources in ComponentResource for reuse
Pulumi: not awaiting async operations Ensure all resource operations complete before stack export
Skipping tofu plan in CI/CD Always plan and require approval before apply in pipelines
Not using -target carefully Prefer full plans; -target can leave state inconsistent

Delegation

  • Infrastructure pattern discovery: Use Explore agent
  • IaC code review: Use Task agent
  • Drift detection analysis: Use Task agent

If the amazon-web-services skill is available, delegate AWS resource patterns to it.
If the docker skill is available, delegate container infrastructure patterns to it.
If the github-actions skill is available, delegate CI/CD pipeline patterns to it.

References

Installationen

Installationen 38
Globales Ranking #601 von 601

Sicherheitsprüfung

ath Safe
socket Safe
Warnungen: 0 Bewertung: 90
snyk Low
zeroleaks Safe
Bewertung: 93
EU EU-Hosted Inference API

Power your AI Agents with the best open-source models.

Drop-in OpenAI-compatible API. No data leaves Europe.

Explore Inference API

GLM

GLM 5

$1.00 / $3.20

per M tokens

Kimi

Kimi K2.5

$0.60 / $2.80

per M tokens

MiniMax

MiniMax M2.5

$0.30 / $1.20

per M tokens

Qwen

Qwen3.5 122B

$0.40 / $3.00

per M tokens

So verwenden Sie diesen Skill

1

Install opentofu by running npx skills add oakoss/agent-skills --skill opentofu in your project directory. Führen Sie den obigen Installationsbefehl in Ihrem Projektverzeichnis aus. Die Skill-Datei wird von GitHub heruntergeladen und in Ihrem Projekt platziert.

2

Keine Konfiguration erforderlich. Ihr KI-Agent (Claude Code, Cursor, Windsurf usw.) erkennt installierte Skills automatisch und nutzt sie als Kontext bei der Code-Generierung.

3

Der Skill verbessert das Verständnis Ihres Agenten für opentofu, und hilft ihm, etablierte Muster zu befolgen, häufige Fehler zu vermeiden und produktionsreifen Code zu erzeugen.

Was Sie erhalten

Skills sind Klartext-Anweisungsdateien — kein ausführbarer Code. Sie kodieren Expertenwissen über Frameworks, Sprachen oder Tools, das Ihr KI-Agent liest, um seine Ausgabe zu verbessern. Das bedeutet null Laufzeit-Overhead, keine Abhängigkeitskonflikte und volle Transparenz: Sie können jede Anweisung vor der Installation lesen und prüfen.

Kompatibilität

Dieser Skill funktioniert mit jedem KI-Coding-Agenten, der das skills.sh-Format unterstützt, einschließlich Claude Code (Anthropic), Cursor, Windsurf, Cline, Aider und anderen Tools, die projektbezogene Kontextdateien lesen. Skills sind auf Transportebene framework-agnostisch — der Inhalt bestimmt, für welche Sprache oder welches Framework er gilt.

Data sourced from the skills.sh registry and GitHub. Install counts and security audits are updated regularly.

EU Made in Europe

Chat with 100+ AI Models in one App.

Use Claude, ChatGPT, Gemini alongside with EU-Hosted Models like Deepseek, GLM-5, Kimi K2.5 and many more.

Kundensupport