Robertjam954/multimodal_rag_application / .claude/skills/python-appservice-deploy
python-appservice-deploy
VerifiedDeploy Python (Flask/Django/FastAPI) code to Azure App Service Linux. WHEN: "Flask App Service", "Django App Service", "FastAPI App Service", "deploy Python to App Service". DO NOT USE FOR: Container Apps, Functions, non-Python, Terraform/Bicep/IaC, full infra — use azure-prepare.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 2.7 KB |
| references/create-app.md | markdown | 6.1 KB |
| references/deploy-azcli.md | markdown | 4.7 KB |
| references/deploy-azd.md | markdown | 2.3 KB |
| references/detect.md | markdown | 3.6 KB |
| references/errors.md | markdown | 3.8 KB |
| references/post-deploy-message.md | markdown | 4.4 KB |
| references/startup-commands.md | markdown | 4.3 KB |
| references/transient-retry.md | markdown | 2.3 KB |
| scripts/generate-app-name.ps1 | script | 1.7 KB |
| scripts/generate-app-name.shexecutable | script | 1.8 KB |
| scripts/retry-az-create.ps1 | script | 2.1 KB |
| scripts/retry-az-create.shexecutable | script | 1.9 KB |
scripts/retry-az-create.sh
View on GitHub#!/usr/bin/env bash
# retry-az-create.sh
# Wraps the idempotent `(az ... show ...) || (az ... create ...)` pair with
# silent retries against transient ARM frontend errors (connection resets,
# 429/502/503/504, timeouts).
#
# Usage:
# ./retry-az-create.sh "<show-command>" "<create-command>"
#
# Both commands are passed as single shell-quoted strings. The script:
# - runs `show` first (short-circuits any partially-succeeded prior attempt
# and avoids false NameAlreadyExists / Conflict errors);
# - if `show` fails, runs `create`;
# - on transient failure, retries up to 2 times (3 attempts total) with
# 5s then 15s backoff;
# - on non-transient failure, surfaces the original error and exits 1.
#
# Examples:
# ./retry-az-create.sh \
# "az group show -n my-rg --only-show-errors" \
# "az group create -n my-rg -l eastus2"
#
# ./retry-az-create.sh \
# "az appservice plan show -n my-plan -g my-rg --only-show-errors" \
# "az appservice plan create -n my-plan -g my-rg --is-linux --sku P0v3 -l eastus2"
set -uo pipefail
SHOW_CMD="${1:?Usage: $0 \"<show-command>\" \"<create-command>\"}"
CREATE_CMD="${2:?Usage: $0 \"<show-command>\" \"<create-command>\"}"
TRANSIENT='Connection reset|Connection aborted|ConnectionError|Read timed out|BadGatewayConnection|ServiceUnavailable|Max retries exceeded|TooManyRequests|\b429\b|\b50[234]\b'
for attempt in 1 2 3; do
# Run show silently; on failure, run create and capture stderr.
if err=$({ eval "$SHOW_CMD -o none 2>/dev/null" || eval "$CREATE_CMD -o none"; } 2>&1); then
exit 0
fi
if ! echo "$err" | grep -qE "$TRANSIENT"; then
echo "$err" >&2
exit 1
fi
if [ "$attempt" -eq 3 ]; then
echo "$err" >&2
echo "ARM frontend is returning transient errors — please retry in a few minutes." >&2
exit 1
fi
sleep "$([ "$attempt" -eq 1 ] && echo 5 || echo 15)"
done
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 117k | Updated | Claude CodeCodex | Verified | Install |