deploying-to-azure-swa
Deploy a static front end to Azure Static Web Apps from GitHub Actions — preview-per-PR environments, production promotion on push to main, capturing the…
Skill by hierovision
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/hierovision-deploying-to-azure-swa
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, frontend, testing, devops
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/deploying-to-azure-swa
What's inside
- Skill name
deploying-to-azure-swa- Description
- Deploy a static front end to Azure Static Web Apps from GitHub Actions — preview-per-PR environments, production promotion on push to main, capturing the `static_web_app_url` action output for e2e, `skip_app_build` vs Oryx build, and custom domains. Use whenever the user says "deploy to Azure SWA", "set up Azure Static Web Apps", "preview environment per PR", "azure static web app github action", or surfaces an SWA release needing design — even without saying "Azure". Pairs with designing-cicd (the topology) and writing-e2e-tests (run e2e against the PR preview URL); routes token safety to securing-ci. Not for the CI topology itself (designing-cicd), non-SWA clouds (deploying-with-supabase), or application code (implementing-features).
- License
- MIT
- Instructions
- 119 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (6)
- SKILL.md
- evals.json · evals/
- deploy.yml · evals/fixtures/phasewave/azure-swa/.github/workflows/
- AGENTS.md · evals/fixtures/phasewave/azure-swa/
- verify-swa.cjs · evals/fixtures/phasewave/azure-swa/scripts/
- azure-swa.md · references/
SKILL.md (first lines)
# Deploying to Azure SWA
Turn an Azure Static Web Apps release into a GitHub Actions workflow that a
separate build session can run cold. A deploy pass is **done** when the SWA
workflow exists (a plan artifact and/or a drafted workflow), the preview-
per-PR + production-promotion split is correct, and the user has approved
it. The skill is **gated** for the production promotion: it drafts the
workflow and stops; an `implementing-features` pass (or manual dispatch)
executes the deploy. Implementation of the topology routes to
`designing-cicd`.
This skill fills the **Azure SWA deploy step** for `designing-cicd`'s
topology. It owns SWA-specific mechanics.
## The deploy pass
Copy this checklist and check off items as you complete them.
```
Azure SWA Deploy Progress:
- [ ] 1. Identify the SWA project + the build output location
- [ ] 2. Use the Azure SWA GitHub Action
- [ ] 3. Preview-per-PR: a pull_request job builds a preview env
- [ ] 4. Production promotion: push to main promotes (not the PR)
- [ ] 5. Capture `static_web_app_url` for e2e (link writing-e2e-tests)
- [ ] 6. skip_app_build vs Oryx (own build vs framework auto-build)
- [ ] 7. Custom domains via SWA config / azure CLI (not the action)
- [ ] 8. Secrets: the SWA deployment token from secrets
- [ ] 9. Present workflow + approval question; STOP (don't promote)
```
### Step 1 — Project + build output
The SWA project has an API token (from the SWA portal / `az staticwebapp`),
and the app build outputs to a known location (`dist/`, `build/`). The plan
names both. `app_location` is the source root; `output_location` is the
built asset dir.
### Step 2 — The Azure SWA action
Use `Azure/static-web-apps-deploy@v1`. The wizard-generated workflow is the
canonical shape; the skill's job is to get the **trigger split** and
**build mode** right, not to reinvent the action.
### Step 3 — Preview-per-PR
SWA auto-creates a **preview environment per PR** when the workflow runs on
`pull_request`. The `pull_request` job (or the `if: github.event_name ==
'pull_request'` branch of a shared job) produces an isolated preview URL —
no manual env wiring needed. A workflow with **no `pull_request` trigger**
ships no previews; a finding.
### Step 4 — Production promotion
Production deploys on **`push` to `main`**, never from `pull_request`
(PR refs must not hold the prod deployment token). The `push` job promotes;
the `pull_request` job only previews. A workflow that promotes prod from a
PR is a **blocker** (`securing-ci` territory — untrusted refs with deploy
power).
### Step 5 — Capture `static_web_app_url`
The action emits `static_web_app_url` as a step output. Capture it
(`id: swa` → `steps.swa.outputs.static_web_app_url`) so `writing-e2e-tests`
can run the e2e suite **against the PR preview** — the canonical "run e2e
against the PR preview" setup. The plan notes this handoff so e2e has a
real URL to target.
### Step 6 — `skip_app_build` vs Oryx
- **`skip_app_build: true`** — you run your own build (Vite, Next custom,
etc.) and hand SWA the `output_location` assets. Required when the app's
build is not Oryx-auto-detectable or you already build in a prior job.
- **Oryx (default)** — SWA auto-builds supported frameworks if you don't
skip. Use it only when the framework is Oryx-supported and you want SWA
to build. A Vite/other app left to Oryx double-builds or misbuilds —
set `skip_app_build: true`.
### Step 7 — Custom domains
Configure custom domains in the SWA config / Azure CLI, **not** in the
deploy action. The action deploys the app; DNS/CNAME for the domain is a
separate, idempotent `az` step or portal setting. The plan keeps domain
config out of the hot deploy path.
### Step 8 — Secrets
The SWA deployment token (`AZURE_STATIC_WEB_APPS_API_TOKEN` / your named
secret) is a **secret** (`${{ secrets.X }}`). A token in `vars`, or echoed,
is a leak — route to `securing-ci`.
### Step 9 — Present + STOP
Hand back: the trigger split (PR preview / push prod), `skip_app_build`
decision, the `static_web_app_url` capture for e2e, and the secret token
source. End with the approval question. **Do not promote prod** — the user
approves, then an `implementing-features` pass executes the deploy.
## When not to use this skill
- **CI topology / triggers / job DAG** — `designing-cicd`.
- **Token / secret hardening** — `securing-ci`.
- **Non-SWA clouds** — `deploying-with-supabase` (Supabase).
- **Running e2e against the preview** — `writing-e2e-tests` (this skill
hands it the `static_web_app_url`).
- **Application code** — `implementing-features`.
## References
- [references/azure-swa.md](references/azure-swa.md) — the SWA action
shape, preview-vs-prod trigger split, `skip_app_build` vs Oryx, and the
`static_web_app_url` capture. Read at Steps 2–8 when drafting the
workflow.
- Azure docs: *Build configuration for Azure Static Web Apps*, *Deploy to
Azure Static Web Apps* (authoritative for any field this skill
summarizes — verify against current docs via
`validating-against-official-docs` when in doubt).From hierovision/ai-framework, MIT.
More from hierovision/ai-framework
- 0.592score
auditing-supply-chain
hierovision
Audit a software supply chain — dependency manifests and lockfiles, build provenance, SBOMs, and release artifacts — for what makes it untrustworthy…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
optimizing-model-routing
hierovision
Re-derive the library's model bindings from objective evidence — gather the live opencode catalogs (or a local snapshot), identify and verify the most…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
refining-issue-acceptance
hierovision
Refine a GitHub issue into a proper engineering spec — a short, clear description plus well-defined acceptance criteria (AC) written as observable, external…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
reviewing-code
hierovision
Review a change (a diff, a branch, or an implement pass's output) against the plan that authorized it and against engineering quality, then issue a verdict…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
debugging-test-failures
hierovision
Diagnose WHY a failing verification won't converge — reproduce first, hypothesis + discriminating experiment, classify the defect (code / test / plan /…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
capturing-ui-evidence
hierovision
Captures the current visual state of UI targets into a structured, addressable EVIDENCE ARTIFACT — screenshots (full-page + element-clipped) plus a…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
deploying-with-supabase
hierovision
Deploy to Supabase from CI — `supabase db push` forward-only semantics, "only one db push at a time" concurrency, migrations in CI via session-mode `--db-url`…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-architecture
hierovision
Turn ONE selected roadmap entry or direct feature request into a verifiable implementation plan that a separate build session can execute cold — then stop at…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-cicd
hierovision
Design GitHub Actions CI/CD topology — trigger selection (push / pull_request / workflow_run / workflow_dispatch), job sequencing via needs, concurrency…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
facilitating-product-vision
hierovision
Facilitates an owner-led product vision session and produces two artifacts: a strategy-only vision document plus roadmap items (outcome themes under…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
handling-security-incidents
hierovision
Handle a security incident through the NIST SP 800-61 lifecycle — validate and scope the signal, build a timestamped fact timeline, classify severity, plan…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
managing-github-issues
hierovision
Persist an established ROADMAP.md as GitHub issues — one issue per open roadmap row, enriched from its source files, tagged with a stable roadmap-id label for…
SkillAFreshness: A★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Sep 30, 2026 (28 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/hierovision/ai-framework
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from hierovision
- 0.592score
auditing-supply-chain
hierovision
Audit a software supply chain — dependency manifests and lockfiles, build provenance, SBOMs, and release artifacts — for what makes it untrustworthy…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
facilitating-product-vision
hierovision
Facilitates an owner-led product vision session and produces two artifacts: a strategy-only vision document plus roadmap items (outcome themes under…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
deploying-with-supabase
hierovision
Deploy to Supabase from CI — `supabase db push` forward-only semantics, "only one db push at a time" concurrency, migrations in CI via session-mode `--db-url`…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-architecture
hierovision
Turn ONE selected roadmap entry or direct feature request into a verifiable implementation plan that a separate build session can execute cold — then stop at…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
designing-cicd
hierovision
Design GitHub Actions CI/CD topology — trigger selection (push / pull_request / workflow_run / workflow_dispatch), job sequencing via needs, concurrency…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
handling-security-incidents
hierovision
Handle a security incident through the NIST SP 800-61 lifecycle — validate and scope the signal, build a timestamped fact timeline, classify severity, plan…
SkillAFreshness: A★ 1Claude Code +9
Cite this page
deploying-to-azure-swa skill. Agent Mart. https://agentmart.dev/skills/hierovision-deploying-to-azure-swa (last updated 2026-10-24)