dominodatalab/domino-ai-plugin / skills/domino-app-init
domino-app-init
VerifiedScaffold a new Domino-ready web application (Vite + React, Streamlit, Dash, Flask, Gradio or FastAPI) with the settings Domino's reverse proxy needs, the mandatory 0.0.0.0:8888 binding, DOMINO_RUN_HOST_PATH prefixes, server-side model endpoint calls, and an app.sh entry point. Use when the user wants to start, initialize, create or scaffold a new app to publish on Domino, or asks for a starter app.sh or starter app for a web framework on Domino.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 7.8 KB |
| assets/dash/app.py.template | other | 2.5 KB |
| assets/dash/app.sh | script | 550 B |
| assets/streamlit/app.py.template | other | 1.6 KB |
| assets/streamlit/app.sh | script | 1.5 KB |
| assets/vite-react/.dominoignore | other | 203 B |
| assets/vite-react/.env.example | other | 1.1 KB |
| assets/vite-react/app.sh | script | 1.2 KB |
| assets/vite-react/scripts/build-dist.shexecutable | script | 3.1 KB |
| assets/vite-react/scripts/stamp.shexecutable | script | 701 B |
| assets/vite-react/server.js | script | 4.4 KB |
| assets/vite-react/vite.config.js | script | 1001 B |
assets/vite-react/scripts/build-dist.sh
View on GitHub#!/usr/bin/env bash
# Build the Vite app once and store it as a dated build next to the previous one:
# <root>/2026.10.15/ and <root>/2026.10.15.stamp (.2, .3, ... for later builds that day)
# Roots:
# Git-based Project (default): /mnt/artifacts/dist/<package name>, saved to Domino storage and pinned by each
# App version; one folder per App, so Apps in one Project never prune each other
# DIST_DIR=dist: inside the project (DFS Projects, or builds committed to Git by CI)
# app.sh serves the newest build whose stamp matches the App's sources, so after a code revert the
# previous build is served without a rebuild. KEEP_BUILDS (default 2) builds of different sources are
# kept. BUILD_LABEL overrides the label (CI). Needs Node 20.19+ and npm; the App itself needs only node.
set -euo pipefail
cd "$(dirname "$0")/.."
name=$(node -p "require('./package.json').name" | tr -c 'A-Za-z0-9._\n-' '-')
root=${DIST_DIR:-/mnt/artifacts/dist/$name}
keep=${KEEP_BUILDS:-2}
command -v npm >/dev/null || { echo "npm not found: build with Node 20.19 or later and npm (see the domino-apps REACT-VITE-GUIDE.md)" >&2; exit 1; }
if [ -n "$(git status --porcelain -- index.html package.json package-lock.json src public 2>/dev/null)" ]; then
echo "warning: uncommitted source changes; commit them so the App's code matches this build" >&2
fi
npm ci
npm run build # vite build into build/ (vite.config.js outDir); scratch output, never served
# Label: today's UTC date; later builds that day add .2, .3, ... past the highest one in use, so a
# label is never reused and version order (sort -V) is build order. Folders count as well as stamps:
# Domino storage keeps the folder of a deleted build as an empty placeholder.
mkdir -p "$root"
day=$(date -u +%Y.%m.%d)
last=0
for entry in "$root/$day" "$root/$day".*; do
[ -e "$entry" ] || continue
n=${entry#"$root/$day"}
n=${n%.stamp}
n=${n#.}
case $n in *[!0-9]*) continue ;; esac
if [ "${n:-1}" -gt "$last" ]; then last=${n:-1}; fi
done
label=$day
[ "$last" -eq 0 ] || label="$day.$((last + 1))"
label=${BUILD_LABEL:-$label}
hash=$(bash scripts/stamp.sh)
# Copy under a temporary name; the stamp, written last, marks the build complete.
rm -rf "$root/.$label.tmp"
cp -R build "$root/.$label.tmp"
mv "$root/.$label.tmp" "$root/$label"
{
echo "$hash"
echo "build=$label"
echo "commit=$(git rev-parse HEAD 2>/dev/null || echo none)"
echo "node=$(node --version)"
} > "$root/$label.stamp.tmp"
mv "$root/$label.stamp.tmp" "$root/$label.stamp"
# A rebuild of the same sources replaces the older copy, so the kept builds are different versions.
for stamp in "$root"/*.stamp; do
[ "${stamp%.stamp}" = "$root/$label" ] && continue
if [ "$(head -n1 "$stamp")" = "$hash" ]; then rm -rf "${stamp%.stamp}" "$stamp"; fi
done
# Keep the newest $keep builds.
for stamp in $(printf '%s\n' "$root"/*.stamp | sort -rV | tail -n +"$((keep + 1))"); do
rm -rf "${stamp%.stamp}" "$stamp"
done
echo "built $root/$label; kept: $(printf '%s\n' "$root"/*.stamp | sed 's#.*/##; s#\.stamp$##' | sort -rV | tr '\n' ' ')"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |