[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EW5YA7G3Y3VA0RCA1SPG9F":3,"skill-same:01M7EW5YA7G3Y3VA0RCA1SPG9F":47},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7EW5YA7G3Y3VA0RCA1SPG9F","terraform-pro",null,"Terraform guidance — HCL structure, modules, state management, workspaces, planning discipline, and safe applies.","TanNhatCMS\u002Fjarvis","TanNhatCMS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F113796420?v=4","01M753MV17KG5CD3152G3WQEQY","KietNT","01M7EKEDYVYQ6PWVJJMZ911VMX",0,"MIT","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-terraform-pro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: terraform-pro\ndescription: Terraform guidance — HCL structure, modules, state management, workspaces, planning discipline, and safe applies.\ncategory: development\n---\n\n## Overview\n\nTerraform manages infrastructure as code: you declare resources in HCL, Terraform plans the diff between config and reality, and applies it. The plan\u002Fapply separation is the core safety mechanism — every infrastructure change gets reviewed before it executes. Teams that respect the plan step sleep well; teams that `-auto-approve` everything learn why the hard way.\n\nThe hard parts of Terraform are state management, module design, and blast-radius control — not HCL syntax. This skill covers structuring Terraform projects, handling state safely, writing reusable modules, and the planning discipline that keeps applies boring.\n\n## When to use\n\n- Structuring a new Terraform project (layout, modules, environments).\n- Managing remote state (backends, locking, state surgery).\n- Writing reusable modules (interfaces, versioning).\n- Reviewing plans safely (what to look for, when to stop).\n- Refactoring Terraform code (moved blocks, imports, renames).\n- Choosing workspaces vs directories vs separate states.\n- Migrating to\u002Ffrom Terraform, or adopting OpenTofu.\n\n## Core concepts\n\n- **Plan before apply, always.** `terraform plan` shows the diff; review it like code — especially deletions and replacements. Save plans (`-out`) and apply the saved plan so what you reviewed is what runs.\n- **State is the source of truth.** The state file maps config to real resources. Lose it and Terraform wants to recreate everything; corrupt it and applies go sideways. Remote backends (S3+GCS+Azure with locking) are mandatory for teams.\n- **State locking.** DynamoDB\u002FGCS\u002FAzure locks prevent concurrent applies from corrupting state. If a lock sticks, investigate before force-unlocking — the other apply might still be running.\n- **Modules are the unit of reuse.** Encapsulate patterns (a VPC, a service with its IAM\u002FDB\u002FDNS) behind clean variable\u002Foutput interfaces. Publish versioned modules (registry, git tags); pin versions in consumers.\n- **Blast radius.** Small states per environment\u002Fcomponent beat one giant state. A bad apply in a 500-resource state is a company-wide incident; in a 20-resource state it's a scoped fix. Split by lifecycle and team.\n- **Workspaces vs directories.** Workspaces suit near-identical environments with tiny differences; separate directories\u002Fstates suit environments that diverge. Most production setups use separate states per environment.\n- **Resource addressing and `moved`.** Renaming resources or modules orphans them without `moved` blocks — Terraform plans to destroy + recreate. Use `moved` for refactors; verify with plan before applying.\n- **Importing existing infrastructure.** `import` blocks (or `terraform import`) bring hand-created resources under management. Import, then immediately reconcile config to match reality — imported resources with drifting config are a trap.\n- **Data sources.** Read existing infrastructure (AMIs, VPCs, secrets) without managing it. Prefer data sources over hardcoding IDs that change.\n- **Sensitive values.** Mark variables\u002Foutputs `sensitive`; state files contain secrets in plaintext — encrypt backends, restrict access, and consider `sensitive` + external secret stores.\n- **Provider versioning.** Pin provider versions (`required_providers` with `~>` constraints) and commit lock files. Unpinned providers upgrade themselves into breaking changes.\n- **Count vs for_each.** `for_each` over maps for named instances (stable addressing when items change); `count` for identical multiples. `for_each` plans are readable; `count` plans shift identities.\n- **Lifecycle meta-arguments.** `prevent_destroy` for stateful resources (databases), `create_before_destroy` for zero-downtime replacements, `ignore_changes` for externally-managed attributes.\n- **Drift.** Reality diverges from state (console clicks, external automation). `terraform plan` shows drift; decide per case whether to reconcile config or re-import. Regular drift detection beats surprise diffs.\n- **Policy as code.** Sentinel\u002FOPA\u002FConftest checks in CI (no public S3 buckets, required tags, allowed regions) — guardrails that don't depend on reviewer vigilance.\n\n## Practical workflow\n\n1. **Lay out the project.** One directory per environment, shared modules in `modules\u002F`, remote backend configured from the start.\n   ```\n   infra\u002F\n     modules\u002Fvpc\u002F  modules\u002Fservice\u002F\n     prod\u002F  staging\u002F\n       main.tf backend.tf variables.tf outputs.tf\n   ```\n2. **Configure the backend first.** S3 with versioning + encryption + DynamoDB lock (or GCS\u002FAzure equivalents); never local state for shared infrastructure.\n   ```hcl\n   terraform {\n     backend \"s3\" {\n       bucket         = \"acme-tf-state\"\n       key            = \"prod\u002Fterraform.tfstate\"\n       region         = \"us-east-1\"\n       dynamodb_table = \"tf-state-locks\"\n       encrypt        = true\n     }\n   }\n   ```\n3. **Write modules with clean interfaces.** Typed variables with descriptions and defaults, outputs for what consumers need, READMEs with examples. Version with git tags; pin in consumers.\n4. **Plan and review.** `terraform plan -out=tfplan`; read the whole diff — count changes, scrutinize every deletion\u002Freplacement, check for unexpected modifications. In CI, post plans as PR comments.\n5. **Apply the saved plan.** `terraform apply tfplan` — never re-plan at apply time in CI. For production, require approval on the plan artifact.\n6. **Refactor with `moved`.** Renames and module extractions get `moved` blocks; verify the plan shows moves, not destroy\u002Fcreate.\n   ```hcl\n   moved {\n     from = aws_instance.web\n     to   = module.web.aws_instance.main\n   }\n   ```\n7. **Protect stateful resources.** `prevent_destroy` on databases and buckets; `create_before_destroy` where replacements must not cause downtime; backups independent of Terraform.\n8. **Detect drift and enforce policy.** Scheduled `plan` runs reporting drift; policy checks in CI; tag everything (owner, environment, cost center) via provider default_tags.\n\n## Common pitfalls\n\n- **Auto-approving applies** — skipping plan review; the plan is the safety mechanism, don't bypass it.\n- **Local state for shared infra** — unmergeable, unlockable, losable; remote backend with locking from day one.\n- **Giant monolithic state** — blast radius of a bad apply; split by environment and component.\n- **Editing state by hand** — use `state mv\u002Frm` commands; hand-edits corrupt.\n- **Force-unlocking blindly** — another apply may be running; investigate first.\n- **Unpinned providers** — surprise breaking upgrades; pin versions and commit lock files.\n- **Secrets in state\u002Foutputs** — plaintext secrets in the state file; encrypt backend, restrict access, mark sensitive.\n- **Renames without `moved`** — destroy + recreate instead of a move; data loss on stateful resources.\n- **Console drift** — hand-editing resources Terraform manages; reconcile or import, don't ignore.\n- **Missing `prevent_destroy`** — one bad plan deleting the production database; guard stateful resources.\n- **`count` for named resources** — identity shifts when the list changes; `for_each` with stable keys.\n- **Applying different plan than reviewed** — re-planning at apply time; apply the saved plan artifact.\n- **No backups of state** — backend versioning on, plus periodic copies; state loss is rebuild-everything.\n","## Overview\n\nTerraform manages infrastructure as code: you declare resources in HCL, Terraform plans the diff between config and reality, and applies it. The plan\u002Fapply separation is the core safety mechanism — every infrastructure change gets reviewed before it executes. Teams that respect the plan step sleep well; teams that `-auto-approve` everything learn why the hard way.\n\nThe hard parts of Terraform are state management, module design, and blast-radius control — not HCL syntax. This skill covers structuring Terraform projects, handling state safely, writing reusable modules, and the planning discipline that keeps applies boring.\n\n## When to use\n\n- Structuring a new Terraform project (layout, modules, environments).\n- Managing remote state (backends, locking, state surgery).\n- Writing reusable modules (interfaces, versioning).\n- Reviewing plans safely (what to look for, when to stop).\n- Refactoring Terraform code (moved blocks, imports, renames).\n- Choosing workspaces vs directories vs separate states.\n- Migrating to\u002Ffrom Terraform, or adopting OpenTofu.\n\n## Core concepts\n\n- **Plan before apply, always.** `terraform plan` shows the diff; review it like code — especially deletions and replacements. Save plans (`-out`) and apply the saved plan so what you reviewed is what runs.\n- **State is the source of truth.** The state file maps config to real resources. Lose it and Terraform wants to recreate everything; corrupt it and applies go sideways. Remote backends (S3+GCS+Azure with locking) are mandatory for teams.\n- **State locking.** DynamoDB\u002FGCS\u002FAzure locks prevent concurrent applies from corrupting state. If a lock sticks, investigate before force-unlocking — the other apply might still be running.\n- **Modules are the unit of reuse.** Encapsulate patterns (a VPC, a service with its IAM\u002FDB\u002FDNS) behind clean variable\u002Foutput interfaces. Publish versioned modules (registry, git tags); pin versions in consumers.\n- **Blast radius.** Small states per environment\u002Fcomponent beat one giant state. A bad apply in a 500-resource state is a company-wide incident; in a 20-resource state it's a scoped fix. Split by lifecycle and team.\n- **Workspaces vs directories.** Workspaces suit near-identical environments with tiny differences; separate directories\u002Fstates suit environments that diverge. Most production setups use separate states per environment.\n- **Resource addressing and `moved`.** Renaming resources or modules orphans them without `moved` blocks — Terraform plans to destroy + recreate. Use `moved` for refactors; verify with plan before applying.\n- **Importing existing infrastructure.** `import` blocks (or `terraform import`) bring hand-created resources under management. Import, then immediately reconcile config to match reality — imported resources with drifting config are a trap.\n- **Data sources.** Read existing infrastructure (AMIs, VPCs, secrets) without managing it. Prefer data sources over hardcoding IDs that change.\n- **Sensitive values.** Mark variables\u002Foutputs `sensitive`; state files contain secrets in plaintext — encrypt backends, restrict access, and consider `sensitive` + external secret stores.\n- **Provider versioning.** Pin provider versions (`required_providers` with `~>` constraints) and commit lock files. Unpinned providers upgrade themselves into breaking changes.\n- **Count vs for_each.** `for_each` over maps for named instances (stable addressing when items change); `count` for identical multiples. `for_each` plans are readable; `count` plans shift identities.\n- **Lifecycle meta-arguments.** `prevent_destroy` for stateful resources (databases), `create_before_destroy` for zero-downtime replacements, `ignore_changes` for externally-managed attributes.\n- **Drift.** Reality diverges from state (console clicks, external automation). `terraform plan` shows drift; decide per case whether to reconcile config or re-import. Regular drift detection beats surprise diffs.\n- **Policy as code.** Sentinel\u002FOPA\u002FConftest checks in CI (no public S3 buckets, required tags, allowed regions) — guardrails that don't depend on reviewer vigilance.\n\n## Practical workflow\n\n1. **Lay out the project.** One directory per environment, shared modules in `modules\u002F`, remote backend configured from the start.\n   ```\n   infra\u002F\n     modules\u002Fvpc\u002F  modules\u002Fservice\u002F\n     prod\u002F  staging\u002F\n       main.tf backend.tf variables.tf outputs.tf\n   ```\n2. **Configure the backend first.** S3 with versioning + encryption + DynamoDB lock (or GCS\u002FAzure equivalents); never local state for shared infrastructure.\n   ```hcl\n   terraform {\n     backend \"s3\" {\n       bucket         = \"acme-tf-state\"\n       key            = \"prod\u002Fterraform.tfstate\"\n       region         = \"us-east-1\"\n       dynamodb_table = \"tf-state-locks\"\n       encrypt        = true\n     }\n   }\n   ```\n3. **Write modules with clean interfaces.** Typed variables with descriptions and defaults, outputs for what consumers need, READMEs with examples. Version with git tags; pin in consumers.\n4. **Plan and review.** `terraform plan -out=tfplan`; read the whole diff — count changes, scrutinize every deletion\u002Freplacement, check for unexpected modifications. In CI, post plans as PR comments.\n5. **Apply the saved plan.** `terraform apply tfplan` — never re-plan at apply time in CI. For production, require approval on the plan artifact.\n6. **Refactor with `moved`.** Renames and module extractions get `moved` blocks; verify the plan shows moves, not destroy\u002Fcreate.\n   ```hcl\n   moved {\n     from = aws_instance.web\n     to   = module.web.aws_instance.main\n   }\n   ```\n7. **Protect stateful resources.** `prevent_destroy` on databases and buckets; `create_before_destroy` where replacements must not cause downtime; backups independent of Terraform.\n8. **Detect drift and enforce policy.** Scheduled `plan` runs reporting drift; policy checks in CI; tag everything (owner, environment, cost center) via provider default_tags.\n\n## Common pitfalls\n\n- **Auto-approving applies** — skipping plan review; the plan is the safety mechanism, don't bypass it.\n- **Local state for shared infra** — unmergeable, unlockable, losable; remote backend with locking from day one.\n- **Giant monolithic state** — blast radius of a bad apply; split by environment and component.\n- **Editing state by hand** — use `state mv\u002Frm` commands; hand-edits corrupt.\n- **Force-unlocking blindly** — another apply may be running; investigate first.\n- **Unpinned providers** — surprise breaking upgrades; pin versions and commit lock files.\n- **Secrets in state\u002Foutputs** — plaintext secrets in the state file; encrypt backend, restrict access, mark sensitive.\n- **Renames without `moved`** — destroy + recreate instead of a move; data loss on stateful resources.\n- **Console drift** — hand-editing resources Terraform manages; reconcile or import, don't ignore.\n- **Missing `prevent_destroy`** — one bad plan deleting the production database; guard stateful resources.\n- **`count` for named resources** — identity shifts when the list changes; `for_each` with stable keys.\n- **Applying different plan than reviewed** — re-planning at apply time; apply the saved plan artifact.\n- **No backups of state** — backend versioning on, plus periodic copies; state loss is rebuild-everything.\n",{"name":5,"category":24,"description":7},"development","main","af388a77c2fe5e0b4fd879cca4300a0ffa9a6579","skills\u002Fams-terraform-pro",1,"https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis","https:\u002F\u002Fgithub.com\u002FTanNhatCMS","https:\u002F\u002Fmrkiet.name.vn","2026-11-07 14:23:08",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add TanNhatCMS\u002Fjarvis --skill terraform-pro",{"tool":39,"command":40},"bunx","bunx skills add TanNhatCMS\u002Fjarvis --skill terraform-pro",{"tool":42,"command":43},"pnpm","pnpm dlx skills add TanNhatCMS\u002Fjarvis --skill terraform-pro","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fams-terraform-pro\u002FSKILL.md",true,[],[48,55,63,70,77,84],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7EWYJR0J8DARY7E59Z6Y9MV","web-scrape","Turn web pages into LLM-ready markdown via the Firecrawl API (renders JS, anti-bot handling). Use when browser_open\u002Ffetch fails on JS-heavy pages, or when you need clean markdown\u002Fstructured extraction from a site. Requires FIRECRAWL_API_KEY.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fweb-scrape\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":59,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":19},"01M7EWYBN5P6F2AJG3FR24T9BP","design-taste-frontend","tasteskill v2, the anti-slop frontend skill. Art direction for websites, distilled from a study of 247 curated gallery sites (One Page Love, Awwwards Sites of the Day). Deals researched directions (idea, composition, type, palette, photographs, section blueprints) from a library, enforces a strict no-slop house style with a real-browser inspector, and runs a look-and-fix loop on screenshots. Use this whenever you build, design, redesign, restyle, polish or review a landing page, marketing site, portfolio, product page, one-pager, hero or any public-facing web page, in any stack (HTML\u002FCSS, React, Next.js, Vue, Svelte, Astro, Tailwind) — also when the user says a page looks generic, templated, \"AI-made\", sloppy, or asks to make it look designed, premium, award-level or less like every other site. Not for dashboards or app screens.","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Ftaste-design\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7EWY8FQFNQ2GB7NZZWGSSDX","test-driven-development","Use when implementing any feature or bugfix, before writing implementation code","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-tdd\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7EWY5SHBFRH1HDHVWM9K7TV","systematic-debugging","Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-debugging\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7EWY3NM0Z0JAKS7HDZ24K66","requesting-code-review","Use when completing tasks, implementing major features, or before merging to verify work meets requirements","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-code-review\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7EWY0WRMWX4M9ZFY0WKC593","brainstorming","You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).","https:\u002F\u002Fgithub.com\u002FTanNhatCMS\u002Fjarvis\u002Fblob\u002Fmain\u002Fskills\u002Fsuperpowers-brainstorming\u002FSKILL.md",[],[]]