Azure Static Web Apps (SWA) Orchestration Skill
Master Azure Static Web Apps—Microsoft's managed platform for full-stack web applications. This skill provides focused guidance organized by concern area. Select the resource that matches your current task.
Quick Reference: When to Load Which Resource
| Task / Scenario |
Load Resource |
| Understanding SWA concepts, architecture, frameworks |
resources/core-concepts.md |
| Routing, authentication rules, headers, fallback routes |
resources/configuration-routing.md |
| Building APIs, calling from frontend, error handling |
resources/api-integration.md |
| Login flow, roles, protecting routes, token management |
resources/authentication.md |
| GitHub Actions, deployment, environment variables |
resources/deployment-cicd.md |
| Custom domains, SSL, monitoring, troubleshooting |
resources/operations-monitoring.md |
Orchestration Protocol
Phase 1: Task Analysis
Classify your task to identify the right resource:
Task Type Classification:
- Architectural: Understanding SWA concepts, choosing frameworks, design patterns → Load
core-concepts.md
- Configuration: Setting up routing, security, headers, fallback behavior → Load
configuration-routing.md
- API Development: Building functions, calling APIs, error handling → Load
api-integration.md
- Authentication: Login flows, role-based access, user info → Load
authentication.md
- Deployment: Setting up pipelines, environments, CI/CD configuration → Load
deployment-cicd.md
- Operations: Monitoring, troubleshooting, custom domains, SSL → Load
operations-monitoring.md
Complexity Indicators:
- Single concern vs. multi-component setup
- Development vs. production requirements
- Pre-existing vs. new project
Phase 2: Resource Selection
Load only the resource(s) needed:
- Single Resource: When task clearly maps to one area
- Sequential Resources: When setup requires multiple steps (e.g., deployment → monitoring)
- Cross-Resource: When building complete solution (e.g., API → authentication → deployment)
Phase 3: Execution & Validation
During Execution:
- Follow examples for your framework/language
- Apply patterns from the selected resource
- Test locally with SWA CLI when appropriate
Before Deployment:
- Verify configuration is complete
- Check staticwebapp.config.json
- Test authentication and API locally
- Review deployment logs
Common Development Scenarios
Scenario 1: Building a React App with API
- Load
core-concepts.md → Understand SWA architecture for React
- Load
configuration-routing.md → Set up SPA routing fallback
- Load
api-integration.md → Build Azure Functions API
- Load
authentication.md → Add login if needed
- Load
deployment-cicd.md → Configure GitHub Actions
Scenario 2: Deploying Existing Angular App
- Load
core-concepts.md → Verify Angular is supported framework
- Load
configuration-routing.md → Set up navigation fallback for Angular routing
- Load
deployment-cicd.md → Configure build output location (dist/<app-name>)
- Load
operations-monitoring.md → Set up monitoring after deployment
Scenario 3: Troubleshooting 404 Errors
- Load
configuration-routing.md → Check navigation fallback and route exclusions
- Load
deployment-cicd.md → Verify app_location and output_location
- Load
operations-monitoring.md → Enable debugging and review logs
Scenario 4: Adding Role-Based Access Control
- Load
authentication.md → Configure auth providers
- Load
configuration-routing.md → Define routes with role restrictions
- Load
api-integration.md → Protect API endpoints with role checks
Decision Tree: Which Resource?
START: What are you doing?
├─ Understanding/designing? → core-concepts.md
├─ Configuring routing/security? → configuration-routing.md
├─ Building/testing API? → api-integration.md
├─ Implementing login/auth? → authentication.md
├─ Setting up deployment? → deployment-cicd.md
└─ Running in production? → operations-monitoring.md
Version: 2.0 (Refactored - Modular Orchestration Pattern)
Last Updated: December 2024
Maintained by: Claude Skills Repository
Resource Files Summary
The main SKILL.md is now an orchestration hub. Content is organized into 6 focused resource files:
- core-concepts.md - Architecture, frameworks, key concepts
- configuration-routing.md - staticwebapp.config.json, routing rules, headers
- api-integration.md - Azure Functions, calling APIs, error handling
- authentication.md - Auth providers, login flows, role-based access
- deployment-cicd.md - GitHub Actions, environments, CLI deployment
- operations-monitoring.md - Custom domains, SSL, monitoring, troubleshooting
All content preserved and significantly enhanced with better organization and accessibility.
1---2name: azure-swa3description: Comprehensive expertise for Azure Static Web Apps including architecture, configuration, API integration with Azure Functions, authentication, routing, deployment, and CI/CD. Use when building, configuring, deploying, or troubleshooting Azure Static Web Apps projects with frameworks like React, Angular, Vue, Blazor, or vanilla JavaScript.4---5
6# Azure Static Web Apps (SWA) Orchestration Skill
7
8Master Azure Static Web Apps—Microsoft's managed platform for full-stack web applications. This skill provides focused guidance organized by concern area. Select the resource that matches your current task.
9
10## Quick Reference: When to Load Which Resource
11
12| Task / Scenario | Load Resource |
13|-----------------|---------------|
14| Understanding SWA concepts, architecture, frameworks | `resources/core-concepts.md` |
15| Routing, authentication rules, headers, fallback routes | `resources/configuration-routing.md` |
16| Building APIs, calling from frontend, error handling | `resources/api-integration.md` |
17| Login flow, roles, protecting routes, token management | `resources/authentication.md` |
18| GitHub Actions, deployment, environment variables | `resources/deployment-cicd.md` |
19| Custom domains, SSL, monitoring, troubleshooting | `resources/operations-monitoring.md` |
20
21## Orchestration Protocol
22
23### Phase 1: Task Analysis
24
25Classify your task to identify the right resource:
26
27**Task Type Classification:**
28- **Architectural**: Understanding SWA concepts, choosing frameworks, design patterns → Load `core-concepts.md`
29- **Configuration**: Setting up routing, security, headers, fallback behavior → Load `configuration-routing.md`
30- **API Development**: Building functions, calling APIs, error handling → Load `api-integration.md`
31- **Authentication**: Login flows, role-based access, user info → Load `authentication.md`
32- **Deployment**: Setting up pipelines, environments, CI/CD configuration → Load `deployment-cicd.md`
33- **Operations**: Monitoring, troubleshooting, custom domains, SSL → Load `operations-monitoring.md`
34
35**Complexity Indicators:**
36- Single concern vs. multi-component setup
37- Development vs. production requirements
38- Pre-existing vs. new project
39
40### Phase 2: Resource Selection
41
42Load only the resource(s) needed:
43
44- **Single Resource**: When task clearly maps to one area
45- **Sequential Resources**: When setup requires multiple steps (e.g., deployment → monitoring)
46- **Cross-Resource**: When building complete solution (e.g., API → authentication → deployment)
47
48### Phase 3: Execution & Validation
49
50**During Execution:**
51- Follow examples for your framework/language
52- Apply patterns from the selected resource
53- Test locally with SWA CLI when appropriate
54
55**Before Deployment:**
56- Verify configuration is complete
57- Check staticwebapp.config.json
58- Test authentication and API locally
59- Review deployment logs
60
61## Common Development Scenarios
62
63### Scenario 1: Building a React App with API
64
651. Load `core-concepts.md` → Understand SWA architecture for React
662. Load `configuration-routing.md` → Set up SPA routing fallback
673. Load `api-integration.md` → Build Azure Functions API
684. Load `authentication.md` → Add login if needed
695. Load `deployment-cicd.md` → Configure GitHub Actions
70
71### Scenario 2: Deploying Existing Angular App
72
731. Load `core-concepts.md` → Verify Angular is supported framework
742. Load `configuration-routing.md` → Set up navigation fallback for Angular routing
753. Load `deployment-cicd.md` → Configure build output location (`dist/<app-name>`)
764. Load `operations-monitoring.md` → Set up monitoring after deployment
77
78### Scenario 3: Troubleshooting 404 Errors
79
801. Load `configuration-routing.md` → Check navigation fallback and route exclusions
812. Load `deployment-cicd.md` → Verify app_location and output_location
823. Load `operations-monitoring.md` → Enable debugging and review logs
83
84### Scenario 4: Adding Role-Based Access Control
85
861. Load `authentication.md` → Configure auth providers
872. Load `configuration-routing.md` → Define routes with role restrictions
883. Load `api-integration.md` → Protect API endpoints with role checks
89
90## Decision Tree: Which Resource?
91
92```
93START: What are you doing?
94├─ Understanding/designing? → core-concepts.md
95├─ Configuring routing/security? → configuration-routing.md
96├─ Building/testing API? → api-integration.md
97├─ Implementing login/auth? → authentication.md
98├─ Setting up deployment? → deployment-cicd.md
99└─ Running in production? → operations-monitoring.md
100```
101
102---
103
104**Version:** 2.0 (Refactored - Modular Orchestration Pattern)
105**Last Updated:** December 2024
106**Maintained by:** Claude Skills Repository
107
108## Resource Files Summary
109
110The main SKILL.md is now an orchestration hub. Content is organized into 6 focused resource files:
111
112- **core-concepts.md** - Architecture, frameworks, key concepts
113- **configuration-routing.md** - staticwebapp.config.json, routing rules, headers
114- **api-integration.md** - Azure Functions, calling APIs, error handling
115- **authentication.md** - Auth providers, login flows, role-based access
116- **deployment-cicd.md** - GitHub Actions, environments, CLI deployment
117- **operations-monitoring.md** - Custom domains, SSL, monitoring, troubleshooting
118
119All content preserved and significantly enhanced with better organization and accessibility.