SKILL.md: rewritten following Anthropic best practices - Concise (233 lines, down from 347) - Critical VHS parser limitations section (base64 workaround) - Advanced patterns: self-bootstrap, output filtering, frame verification - Better description for skill triggering New files: - references/advanced_patterns.md: production patterns from dbskill project - assets/templates/self-bootstrap.tape: self-cleaning demo template auto_generate_demo.py: new flags - --bootstrap: hidden setup commands (self-cleaning state) - --filter: regex pattern to filter noisy output - --speed: post-processing speed multiplier (gifsicle) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
52 lines
1.1 KiB
VHS
52 lines
1.1 KiB
VHS
# Self-bootstrapping demo template
|
|
# Cleans previous state, sets up environment, records clean demo
|
|
#
|
|
# MARKETPLACE_REPO — replaced by recording script via sed
|
|
# BASE64_WRAPPER — base64-encoded output filter function
|
|
# To create: echo 'my_func() { command my_func "$@" 2>&1 | grep -v "noise"; }' | base64
|
|
|
|
Output demo.gif
|
|
Set Theme "Catppuccin Latte"
|
|
Set FontSize 24
|
|
Set Width 1400
|
|
Set Height 600
|
|
Set Padding 20
|
|
Set TypingSpeed 10ms
|
|
Set Shell zsh
|
|
|
|
# Hidden bootstrap: cleanup + output filter + clear screen
|
|
Hide
|
|
Type "cleanup-command-here 2>/dev/null"
|
|
Enter
|
|
Sleep 3s
|
|
# Base64-encoded wrapper filters noisy output lines.
|
|
# VHS cannot parse shell special chars ($, \") in Type strings, so base64 is the workaround.
|
|
Type "echo BASE64_WRAPPER | base64 -d > /tmp/cw.sh && source /tmp/cw.sh"
|
|
Enter
|
|
Sleep 500ms
|
|
Type "clear"
|
|
Enter
|
|
Sleep 500ms
|
|
Show
|
|
|
|
# Stage 1: Setup
|
|
Type "setup-command MARKETPLACE_REPO"
|
|
Enter
|
|
Sleep 8s
|
|
Enter
|
|
Sleep 300ms
|
|
|
|
# Stage 2: Main action
|
|
Type "main-command"
|
|
Enter
|
|
Sleep 3s
|
|
Enter
|
|
Sleep 300ms
|
|
|
|
# Stage 3: Verify
|
|
Type "verify-command"
|
|
Enter
|
|
Sleep 2s
|
|
|
|
Sleep 1s
|