Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Deploys Python Flask, Django, or FastAPI code to Azure App Service Linux, creating resource group, plan, and web app if missing.
32% 73%+41 ptsof test cases passed
Passed 16 of 22 test cases with the skill, and 7 of 22 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
#!/usr/bin/env bash
# generate-app-name.sh
# Generates a valid Azure App Service name from a folder name + 8 hex chars
# of randomness, suitable for `az webapp create -n <name>`.
#
# Rules enforced (matches Azure App Service naming requirements):
# - lowercase a-z, 0-9, and hyphens only
# - starts with a letter, ends with letter or digit
# - total length <= 40 chars (slug truncated as needed)
# - regex: ^[a-z][a-z0-9-]{1,38}[a-z0-9]$
#
# Usage:
# ./generate-app-name.sh [folder-name]
#
# If folder-name is omitted, the current working directory's basename is used.
#
# Examples:
# ./generate-app-name.sh # uses current folder
# ./generate-app-name.sh my-flask-app # → my-flask-app-a3f9c1d2
set -euo pipefail
INPUT="${1:-$(basename "$PWD")}"
# Lowercase, replace non-[a-z0-9] with '-', collapse repeats, trim hyphens.
SLUG=$(echo "$INPUT" \
| tr '[:upper:]' '[:lower:]' \
| sed -E 's/[^a-z0-9]+/-/g; s/-+/-/g; s/^-//; s/-$//')
# Fallback if the slug ended up empty (e.g. folder was only symbols).
if [ -z "$SLUG" ]; then
SLUG="app"
fi
# 8 hex chars from a fresh GUID (segment before the first '-').
if command -v uuidgen >/dev/null 2>&1; then
SUFFIX=$(uuidgen | tr '[:upper:]' '[:lower:]' | cut -d- -f1 | cut -c1-8)
else
# Fallback: /dev/urandom + xxd / od.
SUFFIX=$(head -c 4 /dev/urandom | od -An -tx1 | tr -d ' \n' | cut -c1-8)Next to this one in the catalogue, plus more from the same author.