Bicep Specialist — субагент для GitHub Copilot: обзор
Субагент пишет шаблоны Azure Bicep по практикам из проверенных модулей AVM. Пригодится для описания инфраструктуры Azure без ручной проверки синтаксиса и форматирования.
.github/agents/bicep-implement.agent.mdЧто делает Bicep Specialist
Субагент создаёт шаблоны инфраструктуры Azure Bicep. По умолчанию он складывает готовые файлы *.bicep в каталог infra/bicep/{goal} и не генерирует файлы других форматов. Если вы передали ссылки в описании задачи, агент извлекает контекст через инструмент #fetch, после чего делит работу на шаги с помощью #todos.
Внутри зашита проверка модулей Azure Verified Modules через #azure_get_azure_verified_module и следование рекомендациям из #get_bicep_best_practices. После написания кода агент последовательно выполняет команды bicep restore, bicep build, bicep format и bicep lint. Ошибки в терминале он разбирает через #terminalLastCommand, а созданные при сборке промежуточные файлы ARM JSON сразу удаляет.
Для запуска требуется установленный в системе Bicep CLI — без него валидация шаблонов не сработает. Агент строго вычищает неиспользуемые параметры и переменные, а также блокирует хардкод секретов. Если ваша инфраструктура не использует Azure, этот субагент вам не нужен.
Какие задачи решает
- создать шаблоны Azure Bicep по правилам Azure Verified Modules
- проверить свойства модулей через azure_get_azure_verified_module
- отформатировать и протестировать код через bicep lint и bicep format
- удалить неиспользуемые переменные и параметры из шаблонов bicep
- очистить временные файлы ARM JSON после пробной сборки
Примеры запросов агенту
- Напиши шаблон Bicep для развертывания Azure Storage Account с модулем AVM
- Проверь и отформатируй инфраструктурный файл infra/bicep/main.bicep
- Создай bicep-модуль для Azure Key Vault без хардкода секретов
Как установить Bicep Specialist
Вручную: положить файлы
.github/agents/bicep-implement.agent.mdВручную: положить файлы
.claude/agents/bicep-implement.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию. Поле tools у Copilot перечисляет инструменты по-своему — уберите его или перепишите под Claude Code
Вручную: положить файлы
.codex/agents/bicep-implement.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/bicep-implement.mdCursor понимает и .claude/agents/
Из того же набора554
Весь набор →Похожие
Вопросы о Bicep Specialist
Как установить Bicep Specialist?
Добавьте конфигурацию субагента в файл .cursor/agents/bicep-implement.md, .claude/agents/bicep-implement.md или .codex/agents/bicep-implement.md в зависимости от используемой среды.
Какие файлы создаёт субагент Bicep Specialist?
Агент создаёт исключительно файлы с расширением *.bicep и размещает их в папке infra/bicep/{goal}. Другие расширения и типы файлов он игнорирует.
Что требуется для проверки шаблонов?
В системе должен быть установлен Bicep CLI. Субагент вызывает через терминал команды bicep restore, bicep build, bicep format и bicep lint.
Исходный текст
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