michaelst/spendable / .claude/skills/record-demo-video
record-demo-video
VerifiedRecord a narrated video of a feature running in the local dev app, for a PR or a stakeholder. Drives a headless Chrome over the DevTools Protocol so clicks and keystrokes are real, captures frames, and encodes an mp4 with no extra tooling installed. Use when the user asks to "record a video", "make a demo", "show this working", or wants a screen recording of a change.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.5 KB |
| scripts/driver.mjs | script | 9.8 KB |
| scripts/encode.swift | script | 3.2 KB |
| scripts/example-scenario.mjs | script | 2.5 KB |
| scripts/record.shexecutable | script | 3.1 KB |
| scripts/session_cookie.exs | other | 1.9 KB |
| scripts/worktree_env.shexecutable | script | 1.0 KB |
scripts/worktree_env.sh
View on GitHub# Where this checkout's dev app lives. Source it, do not run it.
#
# A worktree runs its own app on its own port (scripts/setup-worktree.sh writes them to
# .env.worktree), so a QA or demo pass that assumes 4000 drives whatever else is on 4000 - the main
# checkout, or another worktree's app - and reports on the wrong code. Everything keyed off the slot
# so two worktrees can record at the same time without fighting over a debug port or a state dir.
#
# Sets: PORT, WORKTREE_SLOT. Expects ROOT to be the repo root.
#
# An explicit PORT in the environment always wins.
WORKTREE_ENV="$ROOT/.env.worktree"
read_worktree_var() {
[ -f "$WORKTREE_ENV" ] || return 0
grep -E "^$1=" "$WORKTREE_ENV" 2>/dev/null | head -1 | cut -d= -f2
}
WORKTREE_SLOT="$(read_worktree_var WORKTREE_SLOT)"
WORKTREE_SLOT="${WORKTREE_SLOT:-0}"
if [ -z "${PORT:-}" ]; then
PORT="$(read_worktree_var PORT)"
PORT="${PORT:-4000}"
fi
if [ "$WORKTREE_SLOT" != "0" ]; then
echo "worktree slot $WORKTREE_SLOT: driving the app on port $PORT" >&2
fi
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 |