Skip to main content
subagent GitHub Copilot official · GitHub

Bicep Specialist — GitHub Copilot subagent: what it does

Writes Azure Bicep templates following Azure Verified Modules and best practices. Use it when setting up Azure infrastructure to automate linting, formatting, and validation.

Install into GitHub Copilot · Manually: put the files in place All methods and platforms ↓
.github/agents/bicep-implement.agent.md
Open on GitHub

What Bicep Specialist does

The subagent focuses entirely on writing Azure Bicep (*.bicep) files. By default, it creates files under infra/bicep/{goal} and rejects any other file formats. It splits user requirements into actionable tasks using #todos. If you provide links in the prompt, it fetches extra context using #fetch.

The workflow checks properties against Azure Verified Modules with #azure_get_azure_verified_module and applies rules from #get_bicep_best_practices. It runs bicep restore, bicep build --stdout --no-restore, bicep format, and bicep lint via #runCommands. If a check fails, the agent inspects the output with #terminalLastCommand and fixes the issue. It also deletes any transient ARM JSON files created during testing.

You need the Bicep CLI installed on your machine for the validation steps to pass. In the final check, the agent removes dead code, validates parameter usage, and ensures no secrets are hardcoded. Skip this agent if you deploy outside of Microsoft Azure.

What it helps with

  • generate Azure Bicep templates adhering to best practices
  • validate Azure Verified Modules parameters and versions
  • format and lint templates using bicep CLI commands
  • remove unused parameters, variables, and dead code
  • clean up transient ARM JSON files after build tests

Example prompts for the agent

  • Write a Bicep template to deploy an Azure Storage Account using AVM
  • Check and format the infra/bicep/main.bicep template
  • Create an Azure Key Vault bicep module with no hardcoded secrets

How to install Bicep Specialist

Manually: put the files in place

.github/agents/bicep-implement.agent.md

From the same set554

The whole set →
git-commit official github This skill reviews Git changes, stages related files, and creates Conventional Commits. Use it when you want an agent to make one commit or split work into separate commits. GitHub Copilot 47,165installs excalidraw-diagram-generator official github Turn a plain-language description into an Excalidraw diagram. Useful for mapping processes, system structure, and relationships between entities. GitHub Copilot 31,639installs multi-stage-dockerfile official github This skill guides GitHub Copilot in writing multi-stage Dockerfiles for different languages and frameworks. Use it when the final runtime image should contain fewer build dependencies. GitHub Copilot 29,688installs documentation-writer official github Skill that turns the agent into a technical writer following the Diátaxis framework: tutorials, how-to guides, reference, and explanation. Proposes structure before writing. GitHub Copilot 27,757installs prd official github Turns a feature idea into a structured PRD with user stories, technical requirements, and risks. Use it when planning a software feature or an AI-powered one. GitHub Copilot 24,035installs refactor official github This skill reshapes existing code without changing its external behavior. Use it for gradual cleanup of large functions, duplication, weak types, and code smells. GitHub Copilot 22,321installs java-springboot official github Gives GitHub Copilot Spring Boot development practices, from project layout to tests and security. Use it when writing or reviewing Java application code. GitHub Copilot 21,272installs create-readme official github This skill reviews a project and creates a structured README.md. Use it when the repository needs clear documentation based on its actual files and code. GitHub Copilot 19,081installs

Similar

powershell-security-hardening VoltAgent Community This subagent hardens PowerShell scripts, remoting, and Windows settings. Use it to review automation, credentials, logs, and CI/CD security gates. Claude Code 194installs powershell-module-architect VoltAgent Community A subagent for designing and refactoring PowerShell modules, profiles, and automation libraries. Use it when code must work across PowerShell 5.1 and 7+. Claude Code 183installs terragrunt-expert VoltAgent Community This subagent helps structure Terragrunt stacks, manage dependencies, and deploy across environments. Use it for OpenTofu or Terraform infrastructure projects. Claude Code 174installs security-auditor VoltAgent Community Audits security controls, vulnerabilities, risks, and compliance gaps across systems, infrastructure, and processes. Use it when you need documented findings. Claude Code 10,718installs error-detective VoltAgent Community A Claude subagent that digs into failures: correlates errors across services, traces cascades and suggests how to prevent them. Claude Code 7,557installs devops-engineer VoltAgent Community This subagent reviews infrastructure and helps with CI/CD, containers, and deployment workflows. Use it when you want to automate software delivery or add security checks to the process. Claude Code 7,392installs deployment-engineer VoltAgent Community Designs and tunes CI/CD pipelines, automates rollback triggers, and sets up canary or blue-green releases. Helpful when manual deployment steps slow down your team. Claude Code 6,079installs security-engineer VoltAgent Community Automates DevSecOps workflows, CIS benchmark checks, and vulnerability scanning. Useful when securing cloud infrastructure or embedding security controls into CI/CD. Claude Code 3,243installs

Questions about Bicep Specialist

How do I install Bicep Specialist?

Save the agent prompt file to .cursor/agents/bicep-implement.md, .claude/agents/bicep-implement.md, or .codex/agents/bicep-implement.md depending on your setup.

What files does Bicep Specialist generate?

The agent generates only *.bicep files, saving them to infra/bicep/{goal} by default. It does not output any other file formats.

What dependencies are needed for verification?

You need the Bicep CLI available in your terminal environment. The agent executes bicep restore, bicep build, bicep format, and bicep lint to validate output.

Source text

bicep-implement.agent.md · MIT
---
description: 'Act as an Azure Bicep Infrastructure as Code coding specialist that creates Bicep templates.'
name: 'Bicep Specialist'
tools:
  [ 'edit/editFiles', 'web/fetch', 'runCommands', 'terminalLastCommand', 'get_bicep_best_practices', 'azure_get_azure_verified_module', 'todos' ]
---

# Azure Bicep Infrastructure as Code coding Specialist

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

## Key tasks

- Write Bicep templates 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 `#get_bicep_best_practices` to ensure Bicep best practices
- Double check the Azure Verified Modules input if the properties are correct using tool `#azure_get_azure_verified_module`
- Focus on creating Azure bicep (`*.bicep`) files. Do not include any other file types or formats.

## Pre-flight: resolve output path

- Prompt once to resolve `outputBasePath` if not provided by the user.
- Default path is: `infra/bicep/{goal}`.
- Use `#runCommands` to verify or create the folder (e.g., `mkdir -p <outputBasePath>`), then proceed.

## Testing & validation

- Use tool `#runCommands` to run the command for restoring modules: `bicep restore` (required for AVM br/public:\*).
- Use tool `#runCommands` to run the command for bicep build (--stdout is required): `bicep build {path to bicep file}.bicep --stdout --no-restore`
- Use tool `#runCommands` to run the command to format the template: `bicep format {path to bicep file}.bicep`
- Use tool `#runCommands` to run the command to lint the template: `bicep lint {path to bicep file}.bicep`
- After any command check if the command failed, diagnose why it's failed using tool `#terminalLastCommand` and retry. Treat warnings from analysers as actionable.
- After a successful `bicep build`, remove any transient ARM JSON files created during testing.

## The final check

- All parameters (`param`), variables (`var`) and types are used; remove dead code.
- AVM versions or API versions match the plan.
- No secrets or environment-specific values hardcoded.
- The generated Bicep compiles cleanly and passes format checks.

© github · MIT · github/awesome-copilot

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor