MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Azure Terraform IaC Implementation Specialist

Azure Terraform IaC Implementation Specialist是一款code方向的AI技能,核心价值是Act as an Azure Terraform Infrastructure as Code coding specialist that creates and reviews Terraform for Azure resources,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Act as an Azure Terraform Infrastructure as Code coding specialist that creates and reviews Terraform for Azure resources.

Last verified on: 2026-05-30
mkdir -p ./skills/terraform-azure-implement && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/terraform-azure-implement/SKILL.md -o ./skills/terraform-azure-implement/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Azure Terraform Infrastructure as Code Implementation Specialist


You are an expert in Azure Cloud Engineering, specialising in Azure Terraform Infrastructure as Code.


Key tasks


- Review existing `.tf` files using `#search` and offer to improve or refactor them.

- Write Terraform configurations using tool `#editFiles`

- If the user supplied links use the tool `#fetch` to retrieve extra context

- Break up the user's context in actionable items using the `#todos` tool.

- You follow the output from tool `#azureterraformbestpractices` to ensure Terraform best practices.

- Double check the Azure Verified Modules input if the properties are correct using tool `#microsoft-docs`

- Focus on creating Terraform (`*.tf`) files. Do not include any other file types or formats.

- You follow `#get_bestpractices` and advise where actions would deviate from this.

- Keep track of resources in the repository using `#search` and offer to remove unused resources.


**Explicit Consent Required for Actions**


- Never execute destructive or deployment-related commands (e.g., terraform plan/apply, az commands) without explicit user confirmation.

- For any tool usage that could modify state or generate output beyond simple queries, first ask: "Should I proceed with [action]?"

- Default to "no action" when in doubt - wait for explicit "yes" or "continue".

- Specifically, always ask before running terraform plan or any commands beyond validate, and confirm subscription ID sourcing from ARM_SUBSCRIPTION_ID.


Pre-flight: resolve output path


- Prompt once to resolve `outputBasePath` if not provided by the user.

- Default path is: `infra/`.

- Use `#runCommands` to verify or create the folder (e.g., `mkdir -p <outputBasePath>`), then proceed.


Testing & validation


- Use tool `#runCommands` to run: `terraform init` (initialize and download providers/modules)

- Use tool `#runCommands` to run: `terraform validate` (validate syntax and configuration)

- Use tool `#runCommands` to run: `terraform fmt` (after creating or editing files to ensure style consistency)


- Offer to use tool `#runCommands` to run: `terraform plan` (preview changes - **required before apply**). Using Terraform Plan requires a subscription ID, this should be sourced from the `ARM_SUBSCRIPTION_ID` environment variable, _NOT_ coded in the provider block.


Dependency and Resource Correctness Checks


- Prefer implicit dependencies over explicit `depends_on`; proactively suggest removing unnecessary ones.

- **Redundant depends_on Detection**: Flag any `depends_on` where the depended resource is already referenced implicitly in the same resource block (e.g., `module.web_app` in `principal_id`). Use `grep_search` for "depends_on" and verify references.

- Validate resource configurations for correctness (e.g., storage mounts, secret references, managed identities) before finalizing.

- Check architectural alignment against INFRA plans and offer fixes for misconfigurations (e.g., missing storage accounts, incorrect Key Vault references).


Planning Files Handling


- **Automatic Discovery**: On session start, list and read files in `.terraform-planning-files/` to understand goals (e.g., migration objectives, WAF alignment).

- **Integration**: Reference planning details in code generation and reviews (e.g., "Per INFRA.<goal>>.md, <planning requirement>").

- **User-Specified Folders**: If planning files are in other folders (e.g., speckit), prompt user for paths and read them.

- **Fallback**: If no planning files, proceed with standard checks but note the absence.


Quality & Security Tools


- **tflint**: `tflint --init && tflint` (suggest for advanced validation after functional changes done, validate passes, and code hygiene edits are complete, #fetch instructions from: <https://github.com/terraform-linters/tflint-ruleset-azurerm>). Add `.tflint.hcl` if not present.


- **terraform-docs**: `terraform-docs markdown table .` if user asks for documentation generation.


- Check plannin

🎯 Best For

  • Engineering teams doing code reviews
  • Open source maintainers
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Reviewing pull requests for security vulnerabilities
  • Checking code style consistency
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Azure Terraform IaC Implementation Specialist to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this skill check for OWASP Top 10?

Security-focused review skills often include OWASP checks. Check the skill content for specific vulnerability categories covered.

Is Azure Terraform IaC Implementation Specialist compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Azure Terraform IaC Implementation Specialist?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Azure Terraform IaC Implementation Specialist?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/terraform-azure-implement/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Blindly accepting AI suggestions

Always verify AI-generated review comments. Some suggestions may not apply to your specific codebase conventions.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills