/azure-app-lifecycle:azure-scaffold-wizardfrom azure-app-lifecycle
Scaffolds complete production-ready Azure projects for any use case — RAG chatbots, multi-agent systems, API backends, data pipelines, Azure Functions, full-stack web apps, ML training, and event-driven microservices.
Ships in azure-app-lifecycle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill generates a complete, production-ready Azure project deployable with azd up. It is fully domain-agnostic and applies to any use case. It produces every file needed: requirements documentation, project structure with all source files, README, Azure Bicep infrastructure, azure.yaml, Docker configuration, CI/CD workflows, architecture diagrams, observability setup, and Responsible AI documentation.
azure.yaml, containers, CI/CD, observability, and documentation together.Follow these steps in order. Do not skip or reorder steps. Each step's output feeds the next.
This is the most critical step. Do not generate any files until this step is complete.
Ask the user: "What type of Azure project do you want to build?"
Present these options:
| # | Project Type | Description | When to Choose |
|---|---|---|---|
| 1 | RAG Chatbot | Retrieval-Augmented Generation chatbot with vector search | Conversational AI grounded in your own data |
| 2 | Multi-Agent System | Multiple AI agents coordinated by an orchestrator | Parallel/sequential AI reasoning pipeline (Foundry compatible) |
| 3 | API Backend | REST or GraphQL API service | Backend service with database and Azure deployment |
| 4 | Data Pipeline | ETL/ELT data processing pipeline | Batch or streaming data transformation |
| 5 | Azure Functions | Serverless event-driven functions | Lightweight event triggers and integrations |
| 6 | Full-Stack Web App | Frontend + Backend web application | Complete web application with UI |
| 7 | ML Training & Inference | Model training and serving endpoint | Custom ML model lifecycle on Azure ML |
| 8 | Event-Driven Microservices | Message-based distributed system | Async decoupled services at scale |
If the user's request does not fit these categories exactly, choose the closest match or combine patterns. For detailed descriptions, read references/project-types.md.
| # | Question | Guidance |
|---|---|---|
| U1 | What business problem does this solve? | One sentence. Drives README opening and all documentation. |
| U2 | Who are the end users? | Drives UI design, access control decisions, RBAC roles. |
| U3 | What is the project name? | kebab-case slug for folder names, azure.yaml, and resource naming. |
| U4 | Programming language? | Python (default), TypeScript, C#, or multi-language. Drives all source file templates. |
| U5 | Azure region? | Default: eastus2. Constrain by AI model availability if applicable. |
| U6 | Authentication required? | None (default scaffold), Microsoft Entra ID (production). |
| U7 | What Azure services beyond the defaults? | e.g., Cosmos DB, Service Bus, Key Vault, Storage, Redis. Drives extra Bicep modules. |
| U8 | Frontend required? | Yes/No. If yes: Next.js (default), React SPA, or other. |
| U9 | What compliance or regulatory requirements? | e.g., HIPAA, SOC2, GDPR. Drives TRANSPARENCY_FAQ.md and security docs. |
| U10 | Target deployment platform? | Azure Container Apps (default), Azure Functions, AKS, App Service. |
| U11 | Use Azure AI Foundry Agent Service? | Yes (default for AI-capable types): AI processing via Foundry Hosted Agents with structured output, managed deployment, and MAF. No: hand-rolled code using Azure OpenAI SDK directly. When to ask: Type 1 (RAG) — always ask. Types 3, 4, 5, 6, 8 — ask only after the type-specific "Include AI?" question is answered Yes. Skip for: Type 2 (Multi-Agent, always Foundry) and Type 7 (ML Training, uses Azure ML). |
Based on the project type selected in 1A, read the corresponding reference file and ask the type-specific questions defined there:
| Project Type | Reference File | What It Adds |
|---|---|---|
| RAG Chatbot | references/rag-chatbot.md | Vector store, embedding model, chunking strategy, data sources, conversation memory |
| Multi-Agent System | references/multi-agent.md | Agent names/roles, orchestration topology, MCP tools, Foundry model choice |
| API Backend | references/api-backend.md | Endpoints, database, API style (REST/GraphQL), rate limiting |
| Data Pipeline | references/data-pipeline.md | Data sources/sinks, scheduling, batch vs. stream, transformations |
| Azure Functions | references/function-app.md | Triggers, bindings, Durable Functions, runtime stack |
| Full-Stack Web App | references/full-stack-app.md | Frontend framework, SSR/SPA, state management, API integration |
| ML Training & Inference | references/ml-training.md | ML framework, compute targets, model registry, managed endpoints |
| Event-Driven Microservices | references/event-driven.md | Message broker, event schemas, KEDA scaling rules |
The selected reference file contains:
If U11 = Yes (or if the project type is Multi-Agent), also read references/foundry-agent-patterns.md. This file provides the shared Foundry agent scaffolding patterns (agent.yaml, MAF main.py, schemas.py, skills, two-mode dispatcher, registration script) used by the type-specific reference file's "Foundry Mode" section. Exception: Multi-Agent projects use their own complete patterns in references/multi-agent.md — do not load foundry-agent-patterns.md for Multi-Agent.
Create docs/requirements.md with a structured summary of ALL answers organized by section: Universal (U1–U11) and Type-Specific.
Based on the requirements from Step 1, generate the folder layout.
Every project, regardless of type, includes these common root files and directories:
<project-slug>/
├── azure.yaml # azd project descriptor + hooks
├── docker-compose.yml # Local dev: all containers without Azure
├── docker-compose.override.yml # Local overrides (ports, volumes, hot-reload)
├── .env.example # All env vars documented with descriptions
├── README.md
├── TRANSPARENCY_FAQ.md # Responsible AI FAQ
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── SECURITY.md
├── SUPPORT.md
├── LICENSE # MIT
│
├── .github/
│ └── workflows/
│ ├── ci.yml # PR validation: lint, type-check, test, Bicep build
│ └── deploy.yml # Push to main: build, push, deploy
│
├── infra/
│ ├── main.bicep # Subscription-scoped entry point
│ ├── main.parameters.json # azd parameter bindings
│ ├── abbreviations.json # Azure resource name prefix map
│ └── modules/ # (varies by project type + U7 choices)
│
├── scripts/
│ ├── preprovision.sh # Region + model validation (posix)
│ ├── preprovision.ps1 # Region + model validation (windows)
│ ├── postprovision.sh # Build, push, register (posix)
│ └── postprovision.ps1 # Build, push, register (windows)
│
├── docs/
│ ├── requirements.md # Output of Step 1
│ ├── architecture.md # Narrative architecture description
│ ├── DeploymentGuide.md # Step-by-step azd up walkthrough
│ ├── production-migration.md # Scaffold → production gaps
│ ├── troubleshooting.md # Common errors + fixes
│ └── images/
│ └── readme/
│ ├── solution-architecture.svg
│ └── pipeline-flow.svg # (if applicable)
│
└── <type-specific directories from reference file>
Read the type-specific reference file (loaded in Step 1C) for the additional directories and files specific to the selected project type.
Follow the generation instructions in the type-specific reference file loaded in Step 1C. This step produces the core application code.
Examples of what each type generates:
Generate ALL source files with complete, functional code — not placeholders or stubs.
When U11 = Yes (Foundry mode): The Foundry agent patterns from references/foundry-agent-patterns.md produce additional files: an agents/ directory with agent.yaml, main.py, schemas.py, skills/, plus a dispatcher (hosted_agents.py) and registration script (register_agents.py). The type-specific reference file specifies exactly which parts of the existing code the Foundry agent replaces vs which parts it augments.
Read references/bicep-patterns.md for universal Bicep patterns.
Generate infra/main.bicep (subscription-scoped) and all required modules.
Base modules for ALL project types:
monitoring.bicep — App Insights + Log Analytics workspacecontainer-registry.bicep — ACR (if containerized, which is most types)container-apps-env.bicep — Managed Environment (if U10 = ACA)container-app.bicep — Reusable per-app modulerole-assignments.bicep — RBAC for all managed identitiesAdd type-specific modules as listed in the loaded reference file (e.g., ai-foundry.bicep for RAG/Multi-Agent, ai-search.bicep for RAG, function-app.bicep for Functions).
Add optional service modules based on U7 answers: cosmos.bicep, storage.bicep, keyvault.bicep, servicebus.bicep, etc.
Read references/azure-yaml-patterns.md.
Generate:
azure.yaml with preprovision and postprovision hooksscripts/preprovision.sh + scripts/preprovision.ps1 — validate region, model availability, exit non-zero on failurescripts/postprovision.sh + scripts/postprovision.ps1 — ACR login, image build with timestamp tag, registrationRead references/docker-patterns.md.
Generate:
Dockerfile for each service (multi-stage, non-root user, health checks)docker-compose.yml for local developmentdocker-compose.override.yml for local overrides.dockerignore per serviceRead references/observability-patterns.md for OpenTelemetry + Azure Monitor patterns.
Configure observability in all backend/API entry points:
Read references/readme-template.md for the section template and conventions.
Generate a complete README with all required sections populated from requirements — no placeholder text.
Read references/architecture-diagrams.md for SVG generation prompts and conventions.
Generate:
docs/images/readme/solution-architecture.svg — Azure resource topology diagramdocs/images/readme/pipeline-flow.svg — Data/agent flow diagram (if applicable)SVG requirements: viewBox + preserveAspectRatio, system-ui fonts, no external imports, under 50KB.
Read references/responsible-ai.md for the TRANSPARENCY_FAQ.md template.
Generate TRANSPARENCY_FAQ.md addressing all 6 required questions, populated with project-specific content from Step 1.
Read references/cicd-patterns.md.
Generate .github/workflows/ci.yml and .github/workflows/deploy.yml with language-appropriate steps.
Generate:
docs/architecture.md — narrative description of the architecturedocs/DeploymentGuide.md — step-by-step azd up walkthroughdocs/production-migration.md — gaps between scaffold and production (auth, storage, scaling, security)docs/troubleshooting.md — common errors and fixesCODE_OF_CONDUCT.md, CONTRIBUTING.md, SECURITY.md, SUPPORT.mdRead references/security-patterns.md for authentication, RBAC, Key Vault, and network isolation patterns.
Use these patterns to populate docs/production-migration.md with specific guidance for:
Run through this checklist before delivering. Every item must pass.
Requirements & Documentation:
docs/requirements.md exists with all U1–U11 + type-specific answersTRANSPARENCY_FAQ.md covers all 6 required questionsdocs/production-migration.md documents all production gapsInfrastructure:
main.bicep is subscription-scoped (targetScope = 'subscription')@secure() — no plain-text secret outputsmain.parameters.json binds all params to ${AZURE_*} azd env varsazure.yaml & Deployment:
IMAGE_TAG is always a timestamp (YYYYMMDDHHmmss), never latestwindows (pwsh) and posix (sh) variantsDocker:
docker-compose.yml enables full local development without Azure.env.example documents ALL required environment variablesCI/CD:
ci.yml has lint + type-check + test + Bicep validation stepsdeploy.yml builds, pushes, and deploys on main branchArchitecture Diagrams:
viewBox + preserveAspectRatio="xMidYMid meet"system-ui)Observability:
Run the quality checklist defined in the loaded type-specific reference file from Step 1C.
Run these in addition to Universal and Type-Specific checks:
agent.yaml has meaningful description: (2-3 sentences, not a placeholder)main.py uses default_options={"response_format": Schema} for structured outputschemas.py has confidence_score, confidence_level, summary, and errors fieldsskill.md defines role, input contract, step-by-step instructions, and output requirementsregister_agents.py passes description=agent_def["description"] to create_version()hosted_agents.py correctly switches between Foundry mode and direct HTTP modedocker-compose.yml does NOT set AZURE_AI_PROJECT_ENDPOINT on the backend (enables local mode)ai-foundry.bicep module is included in infra/main.bicepCognitive Services OpenAI User and Azure AI User rolesregister_agents.py## Azure scaffold result
- Project: `<name and project type>`
- Location: `<folder>`
- Azure target: `<compute and dependent services>`
- Generated surfaces: `<application, infrastructure, CI/CD, documentation>`
- Validation: `<commands and results>`
- Deployment command: `azd up`
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin azure-app-lifecycle6 skills in this plugin
/azure-app-onboardOrchestrate an app end to end from a business idea, app idea, or existing codebase to a running Azure deployment with cost estimates and a pre-deploy approval gate, auto-detecting Azure services, scaffolding infrastructure code, and deploying without a generic template. Use when the user wants to bring an app to Azure, plan an Azure deployment, learn what Azure services an app needs, check the cost to run it, deploy an app or all its services to the cloud, migrate an existing app to Azure, or start a new app from no code./azure-app-onboard-prereqAssess whether source code is ready to deploy to Azure before any infrastructure work, evaluating build health, app completeness, dependencies and local services, stack compatibility, and deployment feasibility. Use when the user asks to evaluate a repository, check whether an app is ready or deployable to Azure, find deployment blockers, confirm dependency compatibility, ask whether Azure supports a framework, check whether a Dockerfile is needed, or determine what must change before deploying./azure-deployExecute Azure deployments for ALREADY-PREPARED applications that have existing .azure/deployment-plan.md and infrastructure files. DO NOT use this skill when the user asks to CREATE a new application — use azure-prepare instead. This skill runs azd up, azd deploy, terraform apply, and az deployment commands with built-in error recovery. Requires .azure/deployment-plan.md from azure-prepare and validated status from azure-validate. WHEN: "run azd up", "run azd deploy", "execute deployment", "push to production", "push to cloud", "go live", "ship it", "bicep deploy", "terraform apply", "publish to Azure", "launch on Azure". DO NOT USE WHEN: "create and deploy", "build and deploy", "create a new app", "set up infrastructure", "create and deploy to Azure using Terraform" — use azure-prepare for these./azure-preparePrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workflow. USE ONLY when the user explicitly wants to use azd as the deployment tool, or the project already has an azure.yaml file. DO NOT USE FOR: non-azd deployments, Python App Service code-only deploys (use python-appservice-deploy), or cross-cloud migration (use azure-cloud-migrate). WHEN: prepare app for azd, create azure.yaml, set up azd infrastructure, modernize app for Azure with azd, deploy with azd, function app, timer trigger, service bus trigger, event-driven function, managed identity, generate Bicep, generate Terraform, create and deploy to Azure./azure-validateRun pre-deployment validation for Azure readiness with deep checks on configuration, Bicep or Terraform infrastructure, RBAC role assignments, managed identity permissions, and prerequisites. Use when the user wants to validate an app or azure.yaml, check deployment readiness, run preflight checks, verify configuration before deploying, validate Bicep, Azure Functions, or Container Apps deployments, review role assignments and managed identity permissions, run what-if analysis, or troubleshoot deployment errors.Other plugins' skills for the same job