/v1tamins:v1-prove-workfrom v1tamins
Records browser interactions as animated GIFs and embeds them in GitHub PRs to provide visual proof of UI changes.
Ships in v1tamins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate an animated GIF showing the result of work done during a session and embed it in a GitHub PR.
This skill records actual browser behavior. For a requested conceptual animation, use v1-explainer-video; an illustration is not proof that the implementation works. If a backend change cannot be recorded here, explain that limit rather than automatically substituting an animation. When the user requests a narrated explanation using an existing recording, pass that footage, what it demonstrates, and its verification limits to the video skill. Keep observed footage distinct from illustrative scenes.
Typical invocations:
/v1-prove-work http://localhost:3000/settings --pr 42v1-prove-work from the skills menu or use $v1-prove-work http://localhost:3000/settings --pr 42This records a browser interaction with localhost:3000/settings, converts the recording to a GIF, uploads it to GitHub, and embeds it in PR #42's ## Demo section.
Without arguments, the skill infers the URL from the git diff and auto-detects the PR:
/v1-prove-work
In Codex, the slash examples below map directly to $v1-prove-work ....
Typical invocations:
Claude Code: /v1-prove-work [url] [--pr NUMBER] [--no-upload]
Codex: invoke v1-prove-work from the skills menu or use $v1-prove-work [url] [--pr NUMBER] [--no-upload]
url -- Override the target URL (default: inferred from context)
--pr NUMBER -- PR number to embed the GIF into (default: auto-detected)
--no-upload -- Save GIF locally without uploading to GitHub
Determine what to demonstrate. Read the recent git diff to identify changed files:
git diff --name-only HEAD~1..HEAD 2>/dev/null || git diff --name-only --cached
Decision tree:
.tsx, .jsx, .vue, .html, .css, templates) -> Infer the route/page affected, construct localhost URL.py, .rb, .go, API routes with no views) -> Tell the user: "This change has no visual component. Skipping proof-of-work." and exitWhen inferring the URL, look for:
Default base URL: http://localhost:3000 (override if project uses a different port).
Verify the URL is reachable before recording:
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/ROUTE
If the server is not running (connection refused), tell the user:
"Dev server is not running on localhost:3000. Start it and run the
v1-prove-workskill again."
Do this only after Step 1 establishes a reachable visual target. Backend-only and configuration-only changes exit before any environment or package setup. Reuse a suitable project-local Python virtual environment if one exists; otherwise create the default below. Use its Python for dependency checks, package installation, Playwright browser setup, recording, and GIF conversion. Environment setup is part of the requested recording workflow; follow the user's existing scope and local policy without a redundant approval loop.
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
# Set this to the existing project-local environment when reusing one.
VENV_DIR="$REPO_ROOT/.venv/prove-work"
if [ ! -x "$VENV_DIR/bin/python" ]; then
python3 -m venv "$VENV_DIR" || exit 1
fi
PYTHON="$VENV_DIR/bin/python"
if ! "$PYTHON" -c "import playwright; import av; from PIL import Image" 2>/dev/null; then
"$PYTHON" -m pip install playwright av pillow || exit 1
fi
if ! "$PYTHON" -c "from playwright.sync_api import sync_playwright; p=sync_playwright().start(); p.chromium.launch(headless=True).close(); p.stop()" 2>/dev/null; then
"$PYTHON" -m playwright install chromium || exit 1
fi
# gifsicle is optional; conversion works without it.
command -v gifsicle >/dev/null 2>&1 || echo "WARNING: gifsicle not found; optional optimization will be skipped."
printf '%s\n' "$PYTHON"
Record the emitted absolute Python path. Replace <selected-python> below
with that exact path in every fresh shell. If setup fails, report the failure
before recording. The converter reports missing dependencies and exits; it
does not install packages or change the active Python environment.
Create one directory for this run and keep its exact path through the following
steps. Write a Python Playwright script to $RUN_DIR/interact.py that
demonstrates the feature. Do not reuse or clear another run's directory.
RUN_DIR="$(mktemp -d "${TMPDIR:-/tmp}/v1-proof-run.XXXXXX")"
printf '%s\n' "$RUN_DIR"
Record the emitted absolute path. Shell variables do not persist across tool
calls. Replace <recorded-run-directory> below with that exact path in each
fresh shell; never create another directory for a later step.
Read references/recording-patterns.md for the script template, interaction patterns, and timing guidelines. Use the template from that file as the starting point -- fill in the interaction section based on context analysis.
RUN_DIR="<recorded-run-directory>"
PYTHON="<selected-python>"
# Run the interaction script
"$PYTHON" "$RUN_DIR/interact.py" "$RUN_DIR"
If the script fails, read the error output. Common issues:
wait_for_load_state timeout or check if the server is respondingRun the conversion script:
Run this shell block with Bash. If your tool defaults to zsh or another shell, select Bash first; cache glob handling depends on it.
RUN_DIR="<recorded-run-directory>"
PYTHON="<selected-python>"
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
RESOLVER=""
for candidate in \
"$REPO_ROOT/plugins/v1tamins/scripts/resolve-skill-root.sh" \
"${CLAUDE_PLUGIN_ROOT:-}/scripts/resolve-skill-root.sh" \
"$HOME/.claude/skills/v1-prove-work/../../scripts/resolve-skill-root.sh" \
"$HOME/.codex/skills/v1-prove-work/../../scripts/resolve-skill-root.sh" \
"$HOME/.claude/plugins/cache"/*/v1tamins/*/scripts/resolve-skill-root.sh \
"$HOME/.codex/plugins/cache/v1tamins/v1tamins"/*/scripts/resolve-skill-root.sh; do
[ -x "$candidate" ] && RESOLVER="$candidate" && break
done
if [ -z "${RESOLVER:-}" ]; then
echo "ERROR: Could not find resolve-skill-root.sh" >&2
exit 1
fi
SKILL_DIR="$("$RESOLVER" v1-prove-work scripts/video_to_gif.py)"
"$PYTHON" "$SKILL_DIR/scripts/video_to_gif.py" \
--input "$RUN_DIR" \
--output "$RUN_DIR/demo.gif" \
--max-size-mb 10
The script:
Every size-reduction attempt preserves the complete recording. If it cannot fit, report the failure and make a shorter recording of the complete action and its result. Inspect the GIF's important states and final feedback before calling it proof; successful encoding alone does not establish the behavior.
If --no-upload was specified: Report the local path and stop.
Auto-detect PR number (if not provided):
gh pr view --json number --jq .number 2>/dev/null
If a PR exists, upload and embed:
RUN_DIR="<recorded-run-directory>"
PYTHON="<selected-python>"
# Reuse the $SKILL_DIR resolved in Step 5 (re-run that resolver block first if this is a fresh shell).
"$PYTHON" "$SKILL_DIR/scripts/video_to_gif.py" \
--input "$RUN_DIR" \
--output "$RUN_DIR/demo.gif" \
--max-size-mb 10 \
--upload \
--pr PR_NUMBER
If no PR exists, save locally and report:
GIF saved to: <actual-run-directory>/demo.gif
No open PR found for this branch. Run the `v1-prove-work` skill again with `--pr NUMBER` after creating a PR, or use `--no-upload` to keep the GIF local.
After completion, report:
Proof of work recorded!
GIF: <actual-run-directory>/demo.gif (X.X MB)
URL: https://github.com/owner/repo/releases/download/media-assets/demo-pr42-20260224-143022.gif
PR: #42 -- ## Demo section updated
Recorded: [brief description of what was demonstrated]
Example 1: New settings page
Input: /v1-prove-work
Diff: app/pages/settings.tsx, app/api/settings.ts
Output:
Proof of work recorded!
GIF: <actual-run-directory>/demo.gif (1.8 MB)
URL: https://github.com/acme/app/releases/download/media-assets/demo-pr12-20260224-091500.gif
PR: #12 -- ## Demo section updated
Recorded: Navigated to /settings, filled display name, clicked Save, showed success toast
Example 2: Explicit URL with PR number
Input: /v1-prove-work http://localhost:5173/dashboard --pr 27
Output:
Proof of work recorded!
GIF: <actual-run-directory>/demo.gif (2.4 MB)
URL: https://github.com/acme/app/releases/download/media-assets/demo-pr27-20260224-143000.gif
PR: #27 -- ## Demo section updated
Recorded: Navigated to /dashboard, scrolled through widgets, toggled dark mode
Example 3: Backend-only change
Input: /v1-prove-work
Diff: app/services/billing.py, tests/test_billing.py
Output: This change has no visual component. Skipping proof-of-work.
Example 4: Local only
Input: /v1-prove-work --no-upload
Output:
GIF saved to: <actual-run-directory>/demo.gif (1.1 MB)
| Error | Action |
|---|---|
| Dev server not running | Report the error, suggest starting the server |
| Playwright not installed | Auto-install via pip + playwright install chromium |
| No .webm produced | Check interact.py output, report the error |
| GIF exceeds 10MB after all reductions | Report the size, suggest a shorter recording |
| gh CLI not authenticated | Report the error, suggest gh auth login |
| No visual changes detected | Tell the user, exit cleanly |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub v1-io/v1tamins --plugin v1tamins42 skills in this plugin
/v1-address-reviewUse when resolving existing PR review comments or threads. Triggers on "address review feedback", "fix review comments", or "resolve review threads"./v1-autoresearch-skillUse when explicitly running a measured optimization loop against a target. Triggers on "run autoresearch" or "keep only measured improvements"./v1-bare-bonesUse when reducing a plan, PRD, or proposal to the smallest useful scope. Triggers on "strip this plan", "MVP only", or "remove scope"./v1-bigxtha-pluginUse when designing or reviewing a skill plugin's architecture, shared resources, skill handoffs, or cross-skill change impact./v1-canon2skillUse when extracting reusable Agent Skill ideas from books, PDFs, articles, courses, or notes. Triggers on "extract skills from this" or "what skills could come from this?"./v1-changelogUse when writing release notes from merged PRs. Triggers on "write changelog", "release notes", or "what shipped".Other plugins' skills for the same job