ワンクリックで
bicep-scaffolder
Scaffold parameterized Bicep modules. Use when the user requests a new Bicep module or asks to scaffold infrastructure code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Scaffold parameterized Bicep modules. Use when the user requests a new Bicep module or asks to scaffold infrastructure code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Recommend and reference Azure Verified Modules (AVMs) for common Azure resource patterns. Use when a user asks whether to reimplement or customize core resources (Key Vault, Storage, Log Analytics) or when weighing trade-offs between reuse vs custom code; keywords: azure verified modules, AVM, modules, reuse, keyvault, storage, loganalytics, compliance, region
Validate Bicep modules and parameter files. Use for PR checks, CI validation, or manual validation of generated modules; keywords: bicep, bicepparam, validate, PR, CI, bicepconfig
Collect `az` CLI context and produce reproducible, sanitized troubleshooting steps for failing `az` commands or Azure deployments. Use when a user reports failing `az` commands, `--debug` output, or deployment logs; includes redaction guidance and reproducible-step templates. Keywords: --debug, redact, repro, deployment logs, az --version
Generate Conventional Commits messages and PR templates. Use when authoring commit messages or summarizing staged changes for a PR.
Scaffold PowerShell modules with Pester tests. Use when the user requests a new PowerShell module or sample functions; keywords: powershell, psm1, psd1, pester, PSScriptAnalyzer, scaffold
Run Pester tests and summarize results. Use when the user requests test execution or a test summary for a module; keywords: powershell, pester, Invoke-Pester, tests, CI
| name | bicep-scaffolder |
| description | Scaffold parameterized Bicep modules. Use when the user requests a new Bicep module or asks to scaffold infrastructure code. |
Summary: Scaffold a small, parameterized Bicep module (idempotent main.bicep + parameters.json) and guidance for production use. Use when a user requests a new Bicep module, needs a repeatable module scaffold, or asks whether to use an Azure Verified Module (AVM) vs a custom module.
When to use (triggers):
Inputs
resource_type (string): Azure resource type, e.g., Microsoft.Storage/storageAccounts.name_pattern (string, optional): pattern for resource names (short prefix, environment token)parameters (object, optional): minimal parameter hints (types and example defaults)Outputs
module_dir/ with main.bicep, parameters.json, README.example.md and scripts/validate_bicep.sh (automation helpers)Core workflow
main.bicep with clear parameter metadata, @description() and safe defaults for test deployments.README.example.md and a scripts/validate_bicep.sh to run bicep build and bicep linter.pr_description and pr_checks describing CI validation steps to use in a PR.NEVER — Anti-patterns (explicit examples + WHY)
name: '${vnetName}-subnet').
parent instead.@allowed decorators for parameters.
@secure() on outputs or avoid emitting secrets altogether.bicep build or linter checks in CI.
references/ and mark them MANDATORY - READ when needed.Decision checklist — AVM vs Custom
Progressive disclosure & references
references/:
references/main.bicep (template)references/parameters.json (example params)references/README.example.md (deploy + linter + CI usage)Validation & CI
scripts/validate_bicep.sh to run bicep build and bicep linter and exit non‑zero on failure..github/workflows/validate-bicep.yml) to run validation on PRs.Evaluation scenarios
Microsoft.Storage/storageAccounts with env=dev and verify bicep build passes.@secure() used and linter flags are resolved.References