deploying-azure-static-web-apps

deploying-azure-static-web-apps is a skill for Claude Code from alexpizarro/azure-lean-stack-skills. It costs 104 tokens per session (2,914 once invoked), scanned A, original, MIT.

A deployment workflow for React websites with Azure Functions APIs on Azure Static Web Apps. React is a JavaScript interface framework, while Azure Functions runs small pieces of backend code in response to requests or events.

In plain words
What is it for?
Use it to deploy HTTP-based React applications with managed Azure Functions, configure routes and security headers, connect local development proxies, and register API functions.
Why use it?
It supplies the project structure and routing setup needed to deploy the frontend and API together, including conventions that prevent newly added API routes from silently returning 404 errors.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { query } from '../lib/database';.

Part of the azure-lean-stack-skills plugin — 17 skills shipped together

Good fit Use it to deploy HTTP-based React applications with managed Azure Functions, configure routes and security headers, connect local development proxies, and register API functions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/alexpizarro/azure-lean-stack-skills
agentmods
npx agentmods add skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps

Made for: Claude Code.

Or install azure-lean-stack-skills, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deploying-azure-static-web-apps

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps/github.svg)](https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps)
Your own site
<a href="https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps"><img src="https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deploying-azure-static-web-apps

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps"><img src="https://agentmods.dev/badge/skills/alexpizarro/azure-lean-stack-skills/deploying-azure-static-web-apps.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,914 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.02914
Opus 5.5 $0.00042 $0.01166
Sonnet 5.5 $0.00021 $0.00583
Haiku 4.5 $0.00010 $0.00291

Measured 1mo ago against content hash 488150581cb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deploying-azure-static-web-apps scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (templates/api/src/functions/createItem.ts, templates/api/src/functions/getItems.ts, templates/api/src/functions/health.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/deploying-azure-static-web-apps/SKILL.md · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deploying Azure Static Web Apps

The default deployment target for React + Functions web apps. Free tier, global CDN, managed Functions baked in, zero ongoing cost when idle.

When to use SWA vs FC1 vs Container Apps vs App Service

Need Use
CRUD REST API, React frontend, HTTP-only, < 30s requests, build output < 250 MB per environment (500 MB total on Free) SWA managed functions (this skill)
Timer triggers, queue triggers, AI workloads, > 30s execution, managed identity / Key Vault refs FC1 Flex Consumption
Long-running server, WebSocket/SSE, custom Docker runtime, Next.js with middleware Container Apps
Next.js ISR / SSR that outgrew SWA's app-size ceiling (250 MB/env Free, 500 MB/env Standard), always-on with no cold start App Service B1 (~US$13/mo/env; share the plan with a Function App). Proven: trg-directory-website. Not a pack skill yet — a deliberate fixed-cost trade, documented in cost-guardrails "Known floors".

SWA's Next.js hybrid (SSR) support is preview and breaks with middleware on Next ≥13.4; BC-Quick Check In (Next 16 + middleware) moved to Container Apps for that reason.

Project structure

frontend/                        — React 19 + Vite 8 + TypeScript
├── src/
│   ├── App.tsx
│   └── services/api.ts
├── public/
│   └── staticwebapp.config.json — routing + security headers
├── vite.config.ts               — proxy /api/* → localhost:7071 (or the test SWA via `npm run dev:test`)
└── package.json                 — scripts: dev, dev:test, typecheck, build

api/                              — Managed Azure Functions v4 (Node 22)
├── src/
│   ├── index.ts                 — Entry point — IMPORT EVERY FUNCTION FILE HERE
│   ├── functions/
│   │   ├── health.ts            — shallow /api/health (DB-free); ?deep=1 probes SQL
│   │   ├── hello.ts             — app.http(...) at the bottom registers the route
│   │   ├── getItems.ts
│   │   └── createItem.ts
│   └── lib/
│       └── database.ts          — mssql pool, module-level singleton
├── host.json
├── tsconfig.json                — "module": "commonjs" required for SWA
├── package.json                 — "main": "dist/index.js", "engines": {"node":"22"}, "typecheck" script
└── local.settings.json.example  — empty strings + __HINT_* keys

Read the full file on GitHub · 212 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 lines 488150581cb1
  2. 1mo ago Changed · +19 lines 3cee4ff331c3
  3. 1mo ago First seen · 192 lines · 104 tokens per session scan A 71280eb9b847

Subscribe to this mod's changes

deploying-azure-static-web-apps is a skill published in the GitHub repository alexpizarro/azure-lean-stack-skills (1 stars, last pushed 1mo ago), licensed MIT. It adds 104 tokens to every session and 2,914 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

azure-expert

Expert-level Microsoft Azure cloud platform, services, and architecture. Use when the user mentions cloud, Microsoft platforms, Azure Functions, or Cosmos DB.

personamanagmentlayer/pcl · 33 tokens

cloud-native-azure-functions

Use this skill when the user says 'azure functions', 'durable functions', 'orchestrator function', 'activity function', 'durable entities', 'event grid trigger', 'flex consumption', 'azure functions hosting plan', 'fan-out fan-in azure'. Designs Azure Functions apps and Durable Functions workflows with correct…

j4flmao/agent-skills · 124 tokens

azure-mgmt-applicationinsights-dotnet

Azure Application Insights SDK for .NET. Application performance monitoring and observability resource management. Use for creating Application Insights components, web tests, workbooks, analytics items, and API keys. Triggers: "Application Insights", "ApplicationInsights", "App Insights", "APM", "application…

microsoft/skills · 82 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens