/training-video-generator:video-automate beat-sheet-filefrom training-video-generator
Parses a video beat sheet and generates AppleScript, bash, and timing JSON files to automate iTerm2 terminal commands during recording.
Ships in training-video-generator. Installing the plugin adds it to Claude Code.
Generate AppleScript and bash automation scripts from a beat sheet to automate terminal command execution during video recording.
Parse a beat sheet file and generate automation scripts that will:
User provides path to beat sheet file:
scripts/video-scripts/[topic]-beat-sheet.md
Read the beat sheet and extract:
iTerm2 Browser Plugin Support: If the beat sheet includes browser actions and mentions using iTerm2's browser plugin, note this in the automation script. The browser plugin allows web browsing directly in iTerm2, perfect for showing both CLI and web UI in the same window. Learn more: https://iterm2.com/browser-plugin.html
Create an AppleScript file that:
#!/usr/bin/osascript
tell application "iTerm2"
-- Create new window
create window with default profile
tell current session of current window
-- Beat 1: [Name]
delay [duration]
-- Beat 2: [Name]
write text "[command1]"
delay [duration after command]
write text "[command2]"
delay [remaining beat duration]
-- Continue for all beats...
end tell
end tell
Create a bash script for command reference:
#!/bin/bash
#Beat-by-beat commands for [topic]
echo "Beat 1: [Name]"
# [Duration] seconds
# [Narration]
echo "Beat 2: [Name]"
[command1]
[command2]
# Duration: [X] seconds
# Continue...
Create JSON file with timing data:
{
"video_title": "[Topic]",
"total_duration": "[X] minutes",
"beats": [
{
"number": 1,
"name": "[Beat Name]",
"duration": 15,
"has_commands": false
},
{
"number": 2,
"name": "[Beat Name]",
"duration": 30,
"has_commands": true,
"commands": ["command1", "command2"]
}
]
}
Save generated files to:
scripts/automation/
├── [topic]-record.sh # Main recording wrapper (run this!)
├── [topic]-automate.scpt # AppleScript automation
├── [topic]-commands.sh # Bash reference
└── [topic]-timing.json # Timing data
For a beat sheet with 3 beats, generate:
tell application "iTerm2"
create window with default profile
tell current session of current window
-- Beat 1: Introduction (15s)
delay 15
-- Beat 2: Check Prerequisites (20s)
write text "node --version"
delay 3
write text "npm --version"
delay 17
-- Beat 3: Installation (30s)
write text "npm install -g myproject"
delay 30
end tell
end tell
clear command if neededcd firstThe command should generate FOUR files:
[topic]-record.sh - Main wrapper script (uses recording-script.sh template)
[topic]-automate.scpt - AppleScript automation (uses applescript-template.scpt)
[topic]-commands.sh - Human-readable command reference
[topic]-timing.json - Machine-readable timing data
Parse beat sheet to extract:
Generate recording wrapper (from recording-script.sh template):
{{TOPIC}} with topic name{{DURATION}} with total duration in minutesscripts/automation/[topic]-record.shchmod +xGenerate AppleScript (from applescript-template.scpt):
scripts/automation/[topic]-automate.scptchmod +xGenerate command reference (bash script format):
scripts/automation/[topic]-commands.shGenerate timing JSON:
scripts/automation/[topic]-timing.jsonShow user what was generated and how to use it:
✅ Automation scripts generated!
Files created:
- scripts/automation/[topic]-record.sh (main recording wrapper)
- scripts/automation/[topic]-automate.scpt (AppleScript automation)
- scripts/automation/[topic]-commands.sh (command reference)
- scripts/automation/[topic]-timing.json (timing data)
To record your video:
bash scripts/automation/[topic]-record.sh
This will:
1. Start screen recording automatically (FFmpeg)
2. Run terminal automation (AppleScript)
3. Stop recording when complete
4. Save to: recordings/[topic].mov
The recording will be perfectly synced with your audio narration!
Complete generation with success message showing file locations.
What the command file sets; muted values are Claude Code's defaults
video-recording, applescript, iterm2, automation, beat-sheet
7-day visitors to each command page
Generated from the plugin's indexed repository (kanopi/training-video-generator) — no native marketplace selected
npx claudepluginhub p/kanopi-training-video-generator5 commands in this plugin
/video-mergeVideo MergerMerge video recording with audio narration into final MP4/video-narrateVideo Narration GeneratorGenerate TTS audio narration from beat sheet/video-scriptVideo Script GeneratorGenerate detailed beat-by-beat video script from topic/video-topicsVideo Topics GeneratorAnalyze project documentation and suggest video topicsOther plugins' commands for the same job