[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6HAVX9PNV40AY8WGT6FG4Q8":3,"skill-same:01M6HAVX9PNV40AY8WGT6FG4Q8":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":27,"linkOnly":28,"markdownContent":29,"markdownBody":30,"frontMatter":31,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":14,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":39,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M6HAVX9PNV40AY8WGT6FG4Q8","terraform",null,"Terraform Infrastructure as Code best practices","NeuralBlitz\u002FMito","NeuralBlitz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F79354388?v=4","01M6H8T2TFH477HRS0KTSTKR2E","David Riggs","01M6H8T2YQQDXPYM092P670Z21",0,"MIT","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fterraform\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26],"infrastructure","code","best practices","infrastructure as code","devops","opencode","terraform infrastructure","as","2026-11-10 10:12:30",false,"---\nname: terraform\ndescription: Terraform Infrastructure as Code best practices\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  audience: developers\n  category: devops\n---\n## What I do\n- Write Terraform configurations for cloud infrastructure\n- Manage state files and backends\n- Use modules for reusable infrastructure\n- Implement remote state with locking\n- Handle secrets with Vault or cloud providers\n- Use workspaces for environment management\n- Implement CI\u002FCD for Terraform\n- Follow security best practices\n\n## When to use me\nWhen creating Terraform configurations or managing cloud infrastructure.\n\n## Terraform Structure\n```\nterraform\u002F\n├── environments\u002F\n│   ├── prod\u002F\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   ├── outputs.tf\n│   │   └── terraform.tfvars\n│   ├── staging\u002F\n│   │   └── ...\n│   └── dev\u002F\n│       └── ...\n├── modules\u002F\n│   ├── networking\u002F\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   └── outputs.tf\n│   ├── compute\u002F\n│   │   └── ...\n│   └── database\u002F\n│       └── ...\n└── global\u002F\n    └── s3\u002F\n        └── ...\n```\n\n## Main Configuration\n```hcl\nterraform {\n  required_version = \">= 1.5.0\"\n\n  required_providers {\n    aws = {\n      source  = \"hashicorp\u002Faws\"\n      version = \"~> 5.0\"\n    }\n    random = {\n      source  = \"hashicorp\u002Frandom\"\n      version = \"~> 3.5\"\n    }\n  }\n\n  # Remote state with locking\n  backend \"s3\" {\n    bucket         = \"my-terraform-state\"\n    key            = \"environments\u002Fprod\u002Fterraform.tfstate\"\n    region         = \"us-east-1\"\n    encrypt        = true\n    dynamodb_table = \"terraform-locks\"\n  }\n}\n\nprovider \"aws\" {\n  region = var.aws_region\n\n  default_tags {\n    tags = {\n      Environment = var.environment\n      ManagedBy   = \"terraform\"\n      Project     = var.project_name\n    }\n  }\n}\n\n# Variables\nvariable \"aws_region\" {\n  description = \"AWS region\"\n  type        = string\n  default     = \"us-east-1\"\n}\n\nvariable \"environment\" {\n  description = \"Environment name\"\n  type        = string\n  validation {\n    condition     = contains([\"dev\", \"staging\", \"prod\"], var.environment)\n    error_message = \"Environment must be dev, staging, or prod.\"\n  }\n}\n\nvariable \"vpc_cidr\" {\n  description = \"VPC CIDR block\"\n  type        = string\n  default     = \"10.0.0.0\u002F16\"\n}\n\n# Use workspaces for environment separation\n# terraform workspace new prod\n# terraform workspace select prod\n```\n\n## VPC Module\n```hcl\n# modules\u002Fnetworking\u002Fmain.tf\nresource \"aws_vpc\" \"main\" {\n  cidr_block           = var.vpc_cidr\n  enable_dns_hostnames = true\n  enable_dns_support   = true\n\n  tags = {\n    Name        = \"${var.environment}-vpc\"\n    Environment = var.environment\n  }\n}\n\nresource \"aws_internet_gateway\" \"main\" {\n  vpc_id = aws_vpc.main.id\n\n  tags = {\n    Name = \"${var.environment}-igw\"\n  }\n}\n\nresource \"aws_subnet\" \"public\" {\n  count                   = length(var.public_subnet_cidrs)\n  vpc_id                  = aws_vpc.main.id\n  cidr_block              = var.public_subnet_cidrs[count.index]\n  availability_zone       = var.availability_zones[count.index]\n  map_public_ip_on_launch = true\n\n  tags = {\n    Name = \"${var.environment}-public-${count.index + 1}\"\n  }\n}\n\nresource \"aws_subnet\" \"private\" {\n  count             = length(var.private_subnet_cidrs)\n  vpc_id            = aws_vpc.main.id\n  cidr_block       = var.private_subnet_cidrs[count.index]\n  availability_zone = var.availability_zones[count.index]\n\n  tags = {\n    Name = \"${var.environment}-private-${count.index + 1}\"\n  }\n}\n\nresource \"aws_nat_gateway\" \"main\" {\n  count         = length(var.public_subnet_cidrs)\n  subnet_id     = aws_subnet.public[count.index].id\n  allocation_id = aws_eip.nat[count.index].id\n\n  tags = {\n    Name = \"${var.environment}-nat-${count.index + 1}\"\n  }\n}\n\nresource \"aws_eip\" \"nat\" {\n  count = length(var.public_subnet_cidrs)\n  vpc   = true\n}\n```\n\n## EC2 and Auto Scaling\n```hcl\nresource \"aws_launch_template\" \"app\" {\n  name_prefix   = \"${var.environment}-app\"\n  image_id      = data.aws_ami.amazon_linux.id\n  instance_type = var.instance_type\n  key_name      = var.ssh_key_name\n\n  vpc_security_group_ids = [aws_security_group.app.id]\n\n  user_data = base64encode(templatefile(\"${path.module}\u002Fuser-data.sh\", {\n    environment = var.environment\n    api_key     = var.api_key\n  }))\n\n  iam_instance_profile {\n    name = aws_iam_instance_profile.app.name\n  }\n\n  tag_specifications {\n    resource_type = \"instance\"\n    tags = {\n      Name        = \"${var.environment}-app\"\n      Environment = var.environment\n    }\n  }\n}\n\nresource \"aws_autoscaling_group\" \"app\" {\n  name                = \"${var.environment}-app-asg\"\n  vpc_zone_identifier = module.vpc.private_subnet_ids\n  target_group_arns   = [aws_lb_target_group.app.arn]\n\n  launch_template {\n    id      = aws_launch_template.app.id\n    version = \"$Latest\"\n  }\n\n  min_size         = var.min_size\n  max_size         = var.max_size\n  desired_capacity = var.desired_capacity\n\n  health_check_type         = \"ELB\"\n  health_check_grace_period = 300\n\n  lifecycle {\n    create_before_destroy = true\n  }\n\n  tag {\n    key                 = \"Name\"\n    value               = \"${var.environment}-app\"\n    propagate_at_launch = true\n  }\n}\n```\n\n## Terraform Workflow\n```bash\n# Initialize and plan\nterraform init\nterraform plan -var-file=\"environments\u002Fprod\u002Fterraform.tfvars\"\n\n# Apply with approval\nterraform apply -var-file=\"environments\u002Fprod\u002Fterraform.tfvars\"\n\n# Format and validate\nterraform fmt -recursive\nterraform validate\nterraform plan -detailed-exitcode\n\n# State management\nterraform state list\nterraform state mv aws_instance.old aws_instance.new\nterraform state rm aws_instance.deprecated\n\n# Workspaces\nterraform workspace list\nterraform workspace new staging\nterraform workspace select prod\n\n# Import existing resources\nterraform import aws_instance.existing i-1234567890abcdef0\n\n# Destroy\nterraform destroy -var-file=\"environments\u002Fdev\u002Fterraform.tfvars\"\n```\n","## What I do\n- Write Terraform configurations for cloud infrastructure\n- Manage state files and backends\n- Use modules for reusable infrastructure\n- Implement remote state with locking\n- Handle secrets with Vault or cloud providers\n- Use workspaces for environment management\n- Implement CI\u002FCD for Terraform\n- Follow security best practices\n\n## When to use me\nWhen creating Terraform configurations or managing cloud infrastructure.\n\n## Terraform Structure\n```\nterraform\u002F\n├── environments\u002F\n│   ├── prod\u002F\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   ├── outputs.tf\n│   │   └── terraform.tfvars\n│   ├── staging\u002F\n│   │   └── ...\n│   └── dev\u002F\n│       └── ...\n├── modules\u002F\n│   ├── networking\u002F\n│   │   ├── main.tf\n│   │   ├── variables.tf\n│   │   └── outputs.tf\n│   ├── compute\u002F\n│   │   └── ...\n│   └── database\u002F\n│       └── ...\n└── global\u002F\n    └── s3\u002F\n        └── ...\n```\n\n## Main Configuration\n```hcl\nterraform {\n  required_version = \">= 1.5.0\"\n\n  required_providers {\n    aws = {\n      source  = \"hashicorp\u002Faws\"\n      version = \"~> 5.0\"\n    }\n    random = {\n      source  = \"hashicorp\u002Frandom\"\n      version = \"~> 3.5\"\n    }\n  }\n\n  # Remote state with locking\n  backend \"s3\" {\n    bucket         = \"my-terraform-state\"\n    key            = \"environments\u002Fprod\u002Fterraform.tfstate\"\n    region         = \"us-east-1\"\n    encrypt        = true\n    dynamodb_table = \"terraform-locks\"\n  }\n}\n\nprovider \"aws\" {\n  region = var.aws_region\n\n  default_tags {\n    tags = {\n      Environment = var.environment\n      ManagedBy   = \"terraform\"\n      Project     = var.project_name\n    }\n  }\n}\n\n# Variables\nvariable \"aws_region\" {\n  description = \"AWS region\"\n  type        = string\n  default     = \"us-east-1\"\n}\n\nvariable \"environment\" {\n  description = \"Environment name\"\n  type        = string\n  validation {\n    condition     = contains([\"dev\", \"staging\", \"prod\"], var.environment)\n    error_message = \"Environment must be dev, staging, or prod.\"\n  }\n}\n\nvariable \"vpc_cidr\" {\n  description = \"VPC CIDR block\"\n  type        = string\n  default     = \"10.0.0.0\u002F16\"\n}\n\n# Use workspaces for environment separation\n# terraform workspace new prod\n# terraform workspace select prod\n```\n\n## VPC Module\n```hcl\n# modules\u002Fnetworking\u002Fmain.tf\nresource \"aws_vpc\" \"main\" {\n  cidr_block           = var.vpc_cidr\n  enable_dns_hostnames = true\n  enable_dns_support   = true\n\n  tags = {\n    Name        = \"${var.environment}-vpc\"\n    Environment = var.environment\n  }\n}\n\nresource \"aws_internet_gateway\" \"main\" {\n  vpc_id = aws_vpc.main.id\n\n  tags = {\n    Name = \"${var.environment}-igw\"\n  }\n}\n\nresource \"aws_subnet\" \"public\" {\n  count                   = length(var.public_subnet_cidrs)\n  vpc_id                  = aws_vpc.main.id\n  cidr_block              = var.public_subnet_cidrs[count.index]\n  availability_zone       = var.availability_zones[count.index]\n  map_public_ip_on_launch = true\n\n  tags = {\n    Name = \"${var.environment}-public-${count.index + 1}\"\n  }\n}\n\nresource \"aws_subnet\" \"private\" {\n  count             = length(var.private_subnet_cidrs)\n  vpc_id            = aws_vpc.main.id\n  cidr_block       = var.private_subnet_cidrs[count.index]\n  availability_zone = var.availability_zones[count.index]\n\n  tags = {\n    Name = \"${var.environment}-private-${count.index + 1}\"\n  }\n}\n\nresource \"aws_nat_gateway\" \"main\" {\n  count         = length(var.public_subnet_cidrs)\n  subnet_id     = aws_subnet.public[count.index].id\n  allocation_id = aws_eip.nat[count.index].id\n\n  tags = {\n    Name = \"${var.environment}-nat-${count.index + 1}\"\n  }\n}\n\nresource \"aws_eip\" \"nat\" {\n  count = length(var.public_subnet_cidrs)\n  vpc   = true\n}\n```\n\n## EC2 and Auto Scaling\n```hcl\nresource \"aws_launch_template\" \"app\" {\n  name_prefix   = \"${var.environment}-app\"\n  image_id      = data.aws_ami.amazon_linux.id\n  instance_type = var.instance_type\n  key_name      = var.ssh_key_name\n\n  vpc_security_group_ids = [aws_security_group.app.id]\n\n  user_data = base64encode(templatefile(\"${path.module}\u002Fuser-data.sh\", {\n    environment = var.environment\n    api_key     = var.api_key\n  }))\n\n  iam_instance_profile {\n    name = aws_iam_instance_profile.app.name\n  }\n\n  tag_specifications {\n    resource_type = \"instance\"\n    tags = {\n      Name        = \"${var.environment}-app\"\n      Environment = var.environment\n    }\n  }\n}\n\nresource \"aws_autoscaling_group\" \"app\" {\n  name                = \"${var.environment}-app-asg\"\n  vpc_zone_identifier = module.vpc.private_subnet_ids\n  target_group_arns   = [aws_lb_target_group.app.arn]\n\n  launch_template {\n    id      = aws_launch_template.app.id\n    version = \"$Latest\"\n  }\n\n  min_size         = var.min_size\n  max_size         = var.max_size\n  desired_capacity = var.desired_capacity\n\n  health_check_type         = \"ELB\"\n  health_check_grace_period = 300\n\n  lifecycle {\n    create_before_destroy = true\n  }\n\n  tag {\n    key                 = \"Name\"\n    value               = \"${var.environment}-app\"\n    propagate_at_launch = true\n  }\n}\n```\n\n## Terraform Workflow\n```bash\n# Initialize and plan\nterraform init\nterraform plan -var-file=\"environments\u002Fprod\u002Fterraform.tfvars\"\n\n# Apply with approval\nterraform apply -var-file=\"environments\u002Fprod\u002Fterraform.tfvars\"\n\n# Format and validate\nterraform fmt -recursive\nterraform validate\nterraform plan -detailed-exitcode\n\n# State management\nterraform state list\nterraform state mv aws_instance.old aws_instance.new\nterraform state rm aws_instance.deprecated\n\n# Workspaces\nterraform workspace list\nterraform workspace new staging\nterraform workspace select prod\n\n# Import existing resources\nterraform import aws_instance.existing i-1234567890abcdef0\n\n# Destroy\nterraform destroy -var-file=\"environments\u002Fdev\u002Fterraform.tfvars\"\n```\n",{"name":5,"license":15,"metadata":32,"description":7,"compatibility":24},{"audience":33,"category":23},"developers","main","2ea764e153842704d24a2e9aa4170441a7f03081",".opencode\u002Fskills\u002Fterraform","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito","https:\u002F\u002Fgithub.com\u002FNeuralBlitz","nuralnexus.org","Independent Multidisciplinary Researcher, Creative Producer, and AI Systems Architect\r\nAn independent creator and research-driven systems designer.","2026-11-12 03:13:05",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add NeuralBlitz\u002FMito --skill terraform",{"tool":48,"command":49},"bunx","bunx skills add NeuralBlitz\u002FMito --skill terraform",{"tool":51,"command":52},"pnpm","pnpm dlx skills add NeuralBlitz\u002FMito --skill terraform","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fterraform\u002FSKILL.md",true,[],[57,73,85,98,106,121],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":27},"01M6HAZSAQK1S27CEZYAYJTQDX","wireless-communications","Wireless systems, mobile networks, and 5G\u002F6G","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwireless-communications\u002FSKILL.md",[],[64,65,66,67,68,69,70,71,24,72],"communications","wireless communications","wireless","systems","engineering","networks","5G","students","mobile",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":27},"01M6HAZFX6E8NK3WZWDX5YCKYY","websockets","WebSocket implementation and best practices","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwebassembly\u002Fwebsockets\u002FSKILL.md",[],[75,80,81,82,24,83,84,21],"websocket implementation","time","implementation","real-time","websocket",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":27},"01M6HAZ6DAXBQ7QHXXM1EM7715","vulnerability-auditing","Vulnerability assessment and auditing","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvulnerability-auditing\u002FSKILL.md",[],[92,93,94,95,24,96,97],"vulnerability","vulnerability auditing","security","vulnerability assessment","cybersecurity","assessment",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":27},"01M6HAZ3FKF3CS9Z3J96RVE2ZE","vulnerability-assessment","Finding and assessing security vulnerabilities","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvue\u002Fvulnerability-assessment\u002FSKILL.md",[],[95,92,97,94,105,24],"vulnerabilities",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":27},"01M6HAYSHM6HKRKEHFP0SGZQX7","vlsi-design","Very-Large-Scale Integration circuit design and semiconductor engineering","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvlsi-design\u002FSKILL.md",[],[113,114,115,116,117,68,118,24,119,71,120],"vlsi design","VLSI","design","hardware","integration","computer","scale","circuit",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":27},"01M6HAYPQ30FFE2JXD7WQJ8R6C","unsupervised","Unsupervised learning concepts","https:\u002F\u002Fgithub.com\u002FNeuralBlitz\u002FMito\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fvisualization\u002Funsupervised\u002FSKILL.md",[],[123,128,24,129,130,131,132,133],"learning","intelligence","unsupervised learning","machine","concepts","machine-learning"]