azure-swa
21
总安装量
14
周安装量
#17693
全站排名
安装命令
npx skills add https://github.com/markpitt/claude-skills --skill azure-swa
Agent 安装分布
claude-code
12
opencode
10
gemini-cli
8
antigravity
8
codex
8
github-copilot
7
Skill 文档
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.