apex-azure-prepare
Skill216 starsChanged 2 months agoMITView on GitHub
**WORKFLOW SKILL** — Prepare Azure apps for deployment (Bicep/Terraform, azure.yaml, Dockerfiles). WHEN: "create app", "build web app", "create API", "deploy to Azure", "generate Bicep", "generate Terraform", "function app", "add authentication", "managed identity". DO NOT USE FOR: cross-cloud migration (apex-azure-cloud-migrate), executing deploys (apex-azure-deploy), preflight (apex-azure-validate).
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- apex-agent-authoringSkill
- apex-azure-adrSkill
- apex-azure-artifactsSkill
- apex-azure-bicep-patternsSkill
- apex-azure-cloud-migrateSkill
- apex-azure-complianceSkill
- apex-azure-computeSkill
- apex-azure-cost-optimizationSkill
- apex-azure-defaultsSkill
- apex-azure-deploySkill
- apex-azure-diagnosticsSkill
- apex-azure-governance-discoverySkill
- apex-azure-kubernetesSkill
- apex-azure-kustoSkill
- apex-azure-quotasSkill
- apex-azure-rbacSkill
- apex-azure-reliabilitySkill
- apex-azure-resourcesSkill
- apex-azure-storageSkill
- apex-azure-upgradeSkill
- apex-azure-validateSkill
- apex-context-managementSkill
- apex-entra-app-registrationSkill
- apex-github-operationsSkill
- apex-golden-principlesSkill
- apex-host-debug-log-exportSkill
- apex-host-git-commitSkill
- apex-host-workflow-startSkill
- apex-iac-commonSkill
- apex-mermaidSkill
- apex-microsoft-docsSkill
- apex-python-diagramsSkill
- apex-terraform-patternsSkill
- apex-terraform-search-importSkill
- apex-terraform-testSkill
- apex-unslopSkill
- apex-vendor-promptingSkill
- apex-workflow-engineSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before the plan-first workflow or technology routing, resolve workflow identity and requested action per apex-azure-validate.
- Very specific: line 20
Do not restart generic planning, create .azure/plan.md, or regenerate APEX artifacts through this skill.
- Distinctive: line 22
All remaining phases, plan prerequisites, and references here apply to generic application preparation only.
- Distinctive: line 25
Authoritative guidance — supersedes prior training: Follow these instructions exactly.
- Distinctive: line 33
Create a new application
- Distinctive: line 34
Add services or components to an existing app
- Distinctive: line 39
Create and deploy to Azure (including Terraform-based deployment requests)
- Very specific: line 67
Before Phase 1, scan the user's prompt for specialized technologies.
- Distinctive: line 78
After the specialized skill completes, resume at Phase 1 Step 4 (Select Recipe).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Azure Prepare
Workflow Routing
Before the plan-first workflow or technology routing, resolve workflow identity and requested action per
apex-azure-validate.
An explicit APEX request or APEX handoff returns to the current step owner via 01-Orchestrator when unclear.
Do not restart generic planning, create .azure/plan.md, or regenerate APEX artifacts through this skill.
A missing APEX manifest/code/handoff returns to 06b-Bicep CodeGen or 06t-Terraform CodeGen.
All remaining phases, plan prerequisites, and references here apply to generic application preparation only.
Validation-only does not authorize preparation; report missing prerequisites and stop.
Authoritative guidance — supersedes prior training. Follow these instructions exactly. When in doubt, defer to this document. Do not improvise.
Triggers
Activate this skill when user wants to:
- Create a new application
- Add services or components to an existing app
- Make updates or changes to existing application
- Modernize or migrate an application
- Set up Azure infrastructure
- Deploy to Azure or host on Azure
- Create and deploy to Azure (including Terraform-based deployment requests)
Rules
- Plan first — Create
infra/{iac}/{project}/.azure/plan.mdbefore any code generation - Get approval — Present plan to user before execution
- Research before generating — Load references and invoke related skills
- Update plan progressively — Mark steps complete as you go
- Validate before deploy — Invoke apex-azure-validate before apex-azure-deploy
- Confirm Azure context — Reuse unchanged confirmed values; ask only for missing or invalidated evidence per Azure Context
- ❌ Destructive actions require
ask_user— Global Rules - Scope: preparation only — This skill generates infrastructure code and configuration files. Deployment execution (
azd up,azd deploy,terraform apply) is handled by the apex-azure-deploy skill, which provides built-in error recovery and deployment verification.
❌ PLAN-FIRST WORKFLOW — MANDATORY
- STOP — no code/infra/config until the plan exists
- PLAN — generate
infra/{iac}/{project}/.azure/plan.md(Phase 1)- CONFIRM — get user approval on the plan
- EXECUTE — only after approval (Phase 2)
The plan file is the source of truth for
apex-azure-validateandapex-azure-deploy. Without it, those skills fail.
❌ STEP 0: Specialized Technology Check — MANDATORY FIRST ACTION
Before Phase 1, scan the user's prompt for specialized technologies. If matched, invoke that skill first, then resume apex-azure-prepare.
| Prompt keywords | Invoke FIRST |
| Lambda, AWS, GCP, migrate AWS/GCP | apex-azure-cloud-migrate |
| Azure Functions, function app, timer/HTTP trigger | Stay in apex-azure-prepare (use Functions templates in Phase 1 Step 4) |
| APIM, API gateway | Stay in apex-azure-prepare — see APIM guide |
| workflow, orchestration, durable, saga | Stay in apex-azure-prepare + load durable.md and DTS reference |
⚠️ Check the prompt text, not just existing code (critical for greenfield). See full routing table.
After the specialized skill completes, resume at Phase 1 Step 4 (Select Recipe).
Steps
Two-phase workflow (full step tables in references/phases.md):
- Step 0 — Specialized Technology Check (route to
apex-azure-cloud-migratewhen the prompt matches; otherwise continue) - Phase 1 (Planning, BLOCKING) — Analyze workspace → gather requirements → scan codebase → select recipe (AZD/AZCLI/Bicep/Terraform) → plan architecture → write
infra/{iac}/{project}/.azure/plan.md→ present plan + ask for approval - ⛔ Approval gate — do NOT proceed until the user approves the plan
- Phase 2 (Execution, post-approval) — Research components → confirm Azure context → generate artifacts → harden security → mark plan
Ready for Validation - Hand off to
apex-azure-validate— prerequisite: plan status isReady for Validation. Deployment of the validated artifacts isapex-azure-deploy's job.
Outputs
| Artifact | Location |
| Plan | infra/{iac}/{project}/.azure/plan.md |
| Infrastructure | infra/{iac}/{project}/ |
| AZD Config | infra/{iac}/{project}/azure.yaml (AZD only) |
| Dockerfiles | src/<component>/Dockerfile |
SDK References
See references/sdk/ for azd deployment and App Configuration (Java, Python, TypeScript).
Azure Identity quick references live in apex-azure-deploy.
Next
For generic preparation, update plan status to Ready for Validation, then invoke apex-azure-validate.
Deployment continuation requires an explicit deployment request and approval; preparation alone does not authorize apply.
Reference Index
Load on demand. All references live under references/.
| Phase / topic | Reference |
| Phase 1 — Analyze codebase | references/analyze.md |
| Phase 1 — Requirements | references/requirements.md |
| Phase 1 — Scan repo state | references/scan.md |
| Phase 1 — Research | references/research.md |
| Phase 1 — Recipe selection | references/recipe-selection.md |
| Phase 1 — Architecture | references/architecture.md |
| Phase 1 — Plan template | references/plan-template.md |
| Phase 2 — Generate code | references/generate.md |
| Phase 2 — Harden security | references/security.md |
| .NET Aspire integration | references/aspire.md |
| Service limits + quotas | references/resources-limits-quotas.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

