[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EFQKN63P9RK4F3JHCYC4Z4":3,"skill-same:01M6EFQKN63P9RK4F3JHCYC4Z4":45},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":27,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6EFQKN63P9RK4F3JHCYC4Z4","opentofu",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fopentofu\u002FSKILL.md",[],[5],"2026-11-10 10:12:30",false,"# OpenTofu — Open-Source Terraform Alternative\n\nYou are an expert in OpenTofu, the open-source fork of Terraform maintained by the Linux Foundation. You help developers and platform teams provision cloud infrastructure using HCL (HashiCorp Configuration Language), with full compatibility with existing Terraform modules, state files, and providers — plus new features like client-side state encryption, OCI registry support, and removed BSL license restrictions.\n\n## Core Capabilities\n\n### Basic Usage\n\n```hcl\n# main.tf — Infrastructure definition\nterraform {\n  required_providers {\n    aws = {\n      source  = \"hashicorp\u002Faws\"\n      version = \"~> 5.0\"\n    }\n  }\n  # State encryption (OpenTofu exclusive feature)\n  encryption {\n    method \"aes_gcm\" \"default\" {\n      keys = key_provider.pbkdf2.default\n    }\n    state {\n      method   = method.aes_gcm.default\n      enforced = true                     # Reject unencrypted state\n    }\n  }\n}\n\nprovider \"aws\" {\n  region = var.region\n}\n\n# VPC with public and private subnets\nmodule \"vpc\" {\n  source  = \"terraform-aws-modules\u002Fvpc\u002Faws\"\n  version = \"5.5.0\"\n\n  name = \"${var.project}-vpc\"\n  cidr = \"10.0.0.0\u002F16\"\n\n  azs             = [\"${var.region}a\", \"${var.region}b\", \"${var.region}c\"]\n  private_subnets = [\"10.0.1.0\u002F24\", \"10.0.2.0\u002F24\", \"10.0.3.0\u002F24\"]\n  public_subnets  = [\"10.0.101.0\u002F24\", \"10.0.102.0\u002F24\", \"10.0.103.0\u002F24\"]\n\n  enable_nat_gateway = true\n  single_nat_gateway = var.environment != \"production\"   # Save cost in non-prod\n\n  tags = local.common_tags\n}\n\n# ECS Fargate service\nresource \"aws_ecs_service\" \"api\" {\n  name            = \"${var.project}-api\"\n  cluster         = aws_ecs_cluster.main.id\n  task_definition = aws_ecs_task_definition.api.arn\n  desired_count   = var.environment == \"production\" ? 3 : 1\n  launch_type     = \"FARGATE\"\n\n  network_configuration {\n    subnets         = module.vpc.private_subnets\n    security_groups = [aws_security_group.api.id]\n  }\n\n  load_balancer {\n    target_group_arn = aws_lb_target_group.api.arn\n    container_name   = \"api\"\n    container_port   = 3000\n  }\n}\n\n# Variables\nvariable \"project\" { default = \"myapp\" }\nvariable \"region\" { default = \"us-east-1\" }\nvariable \"environment\" { default = \"staging\" }\n\nlocals {\n  common_tags = {\n    Project     = var.project\n    Environment = var.environment\n    ManagedBy   = \"opentofu\"\n  }\n}\n```\n\n### State Encryption (OpenTofu Exclusive)\n\n```hcl\n# State encryption — data never stored in plaintext\nterraform {\n  encryption {\n    key_provider \"pbkdf2\" \"default\" {\n      passphrase = var.state_passphrase    # From env or vault\n    }\n    key_provider \"aws_kms\" \"prod\" {\n      kms_key_id = \"alias\u002Fopentofu-state\"\n      region     = \"us-east-1\"\n    }\n    method \"aes_gcm\" \"default\" {\n      keys = key_provider.pbkdf2.default\n    }\n    method \"aes_gcm\" \"prod\" {\n      keys = key_provider.aws_kms.prod\n    }\n    state {\n      method   = method.aes_gcm.prod      # KMS-encrypted state\n      enforced = true\n    }\n    plan {\n      method   = method.aes_gcm.default   # Encrypt plan files too\n      enforced = true\n    }\n  }\n}\n```\n\n### Commands\n\n```bash\n# Drop-in replacement for terraform CLI\ntofu init                                 # Initialize providers and modules\ntofu plan                                 # Preview changes\ntofu apply                               # Apply changes\ntofu destroy                             # Tear down infrastructure\ntofu state list                           # List resources in state\ntofu import aws_s3_bucket.data my-bucket  # Import existing resources\n\n# Migration from Terraform\n# Just replace `terraform` with `tofu` — state files are compatible\n```\n\n## Installation\n\n```bash\n# macOS\nbrew install opentofu\n\n# Linux\ncurl -fsSL https:\u002F\u002Fget.opentofu.org\u002Finstall-opentofu.sh | sh\n\n# Docker\ndocker run -it ghcr.io\u002Fopentofu\u002Fopentofu:latest init\n```\n\n## Best Practices\n\n1. **State encryption** — Enable client-side encryption for state files; OpenTofu's exclusive feature, use KMS for production\n2. **Modules for reuse** — Package infrastructure patterns as modules; share via private registry or Git\n3. **Remote state** — Store state in S3 + DynamoDB (locking) or Terraform Cloud\u002FSpacelift; never local state for teams\n4. **Workspaces for environments** — Use workspaces or separate state files for dev\u002Fstaging\u002Fproduction\n5. **Plan before apply** — Always `tofu plan` and review; use `-out=plan.tfplan` for deterministic applies in CI\n6. **Import existing resources** — Use `tofu import` to bring existing infrastructure under management\n7. **Compatible with Terraform** — All Terraform providers and modules work; migrate by replacing the binary\n8. **Pin versions** — Pin provider and module versions; `~> 5.0` for minor updates, exact pins for production\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fopentofu",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill opentofu",{"tool":37,"command":38},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill opentofu",{"tool":40,"command":41},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill opentofu","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fopentofu\u002FSKILL.md",true,[],[46,60,70,79,85,92],{"skillNo":47,"name":48,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":56,"publishedAt":18},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[51],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[57,58,59],"model","model hierarchy","model hierarchy skill",{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":66,"publishedAt":18},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[65],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},[67,68,69],"MCP","zoom","zoom mcp",{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[76,77,78,68],"sdk","zoom apps sdk","apps",{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":91,"publishedAt":18},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[90],{"categoryNo":52,"categoryName":53,"taxonomyType":54,"taxonomyTypeDesc":55},[87],{"skillNo":93,"name":94,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":18},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[94]]