Skip to content

dominodatalab/domino-ai-plugin / skills/domino-app-init

domino-app-init

Verified

Scaffold 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.

assets/vite-react/app.sh

View on GitHub
#!/usr/bin/env bash
# Domino App entry point for a Vite + React app. Serves a build that scripts/build-dist.sh made, with
# server.js (Node built-ins only); never installs or builds, so it starts in seconds and needs no npm.
# It picks the newest build, in /mnt/artifacts/dist/<package name> (or $DIST_DIR) and then ./dist, whose stamp
# matches these sources.
set -euo pipefail
cd "$(dirname "$0")"
want=$(bash scripts/stamp.sh)
build=
found=
name=$(node -p "require('./package.json').name" | tr -c 'A-Za-z0-9._\n-' '-')
roots=("${DIST_DIR:-/mnt/artifacts/dist/$name}")
[ "${roots[0]}" = dist ] || roots+=(dist)

for root in "${roots[@]}"; do
  for stamp in $(printf '%s\n' "$root"/*.stamp | sort -rV); do
    [ -f "$stamp" ] && [ -f "${stamp%.stamp}/index.html" ] || continue
    label=${stamp##*/}
    found="$found ${label%.stamp}"
    if [ "$(head -n1 "$stamp")" = "$want" ]; then
      build=${stamp%.stamp}
      break 2
    fi
  done
done

if [ -z "$build" ]; then
  echo "app.sh: no build matches these sources (found:${found:- none}); run scripts/build-dist.sh, save, and publish again" >&2
  exit 1
fi

export BUILD_DIR=$build APP_BUILD=${build##*/}
echo "app.sh: serving build $APP_BUILD from ${build%/*}"
exec node server.js
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall