Help us improve
Share bugs, ideas, or general feedback.
Generate automation scripts from beat sheet for recording
npx claudepluginhub kanopi/training-video-generatorHow this command is triggered — by the user, by Claude, or both
Slash command
/training-video-generator:video-automate beat-sheet-fileThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Video Automation Script Generator Generate AppleScript and bash automation scripts from a beat sheet to automate terminal command execution during video recording. ## Your Task Parse a beat sheet file and generate automation scripts that will: 1. Open iTerm2 and execute terminal commands automatically 2. Handle timing delays between commands 3. Navigate browser tabs if needed 4. Control the recording flow ## Input User provides path to beat sheet file: ## Step 1: Parse Beat Sheet Read the beat sheet and extract: - Beat numbers and names - Duration for each beat - Terminal commands...
/record-terminalRecords terminal sessions from VHS tape files into GIFs for tutorials and documentation. Also supports creating tape templates and validation.
/yt-outlineBuilds a step-by-step YouTube video outline with demo prep, screen-share planning, and visual needs from a provided brief file.
/explainerCreates and produces explainer videos from content, production orders, or research. Handles setup, injection, script/storyboard generation, review, and rendering via multi-phase workflow.
/update-tutorialGenerates or updates tutorials with VHS terminal and Playwright browser recording GIFs. Supports single/multiple names, --all, --list, --scaffold, validation, and rebuild flags.
/video-productionPlans and coordinates video marketing production from concept to delivery, generating briefs, scripts, storyboards, production plans, budgets, shot lists, deliverables specs, and distribution strategies in .aiwg/marketing/video/ directory.
/video-makerCreates, edits, and renders programming videos using React-based Remotion framework. Supports project setup, component generation, and MP4 output.
Share bugs, ideas, or general feedback.
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.