Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/global-rules.md
1# Global Rules23> **MANDATORY** — These rules apply to ALL skills. Violations are unacceptable.45## Rule 1: Destructive Actions Require User Confirmation67⛔ **ALWAYS use `ask_user`** before ANY destructive action.89### What is Destructive?1011| Category | Examples |12|----------|----------|13| **Delete** | `az group delete`, `azd down`, `rm -rf`, delete resource |14| **Overwrite** | Replace existing files, overwrite config, reset settings |15| **Irreversible** | Purge Key Vault, delete storage account, drop database |16| **Cost Impact** | Provision expensive resources, scale up significantly |17| **Security** | Expose secrets, change access policies, modify RBAC |1819### How to Confirm2021```22ask_user(23question: "This will permanently delete resource group 'rg-myapp'. Continue?",24choices: ["Yes, delete it", "No, cancel"]25)26```2728### No Exceptions2930- Do NOT assume user wants to delete/overwrite31- Do NOT proceed based on "the user asked to deploy" (deploy ≠delete old)32- Do NOT batch destructive actions without individual confirmation33- ⛔ Do NOT delete user project or workspace directories (e.g., `rm -rf <project-dir>`) even when adding features, converting, or migrating — use MODIFY mode to edit existing files instead. File deletions within a project (e.g., removing build artifacts or temp files) are permitted when appropriate.34- ⛔ `azd init -t <template>` (and any `azd init` command with a template argument) is for NEW projects only — run it **only** in an empty/new directory. If the user explicitly requests re-initialization of an existing project, create a separate new directory, run the template there, and then migrate changes into the existing project with user-confirmed edits. Never run `azd init -t` directly in a non-empty existing workspace. `azd init` without a template argument may be used in existing workspaces when appropriate.3536---3738## Rule 2: Never Assume Subscription or Location3940⛔ **ALWAYS use `ask_user`** to confirm:41- Azure subscription (show actual name and ID)42- Azure region/location43