Repository navigation
chore: add a screencast skill and its recording scripts - #1550
Merged
Merged
Conversation
Feature videos for releases, the website, YouTube and Twitter/X are made by recording Sheprd in a virtual Mac, never the user's own desktop. scripts/screencast/screencast.py drives the agent-test machine through `sheprd machine`, records its screen once per window (classic and Moonframe), and renders one MP4 per window and language with ElevenLabs narration (tts.py), an .srt for YouTube, and a captioned cut for Twitter/X, which autoplays muted. A feature is one JSON file of steps and narration; features/themes.json is the first. README.md records the voices chosen (River in English, Julien in French) and the machine's setup. The `screencast` skill walks an agent through picking the feature from a release, putting that build in the machine, writing the feature file, recording, checking every second of the result, and handing previews over without posting anything. Videos go to Git LFS. The repository's hooks live in .githooks, where `git lfs install` cannot add its own, so LFS's four hooks are added there, doing nothing when git-lfs is not installed.
✅ Deploy Preview for sheprd-labs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
[Medium impact] The PR appears safe to merge. SummaryAdds a screencast skill, recording and narration scripts, a Themes example, and Git LFS hooks for videos.
Reviews (2) · Last reviewed commit: "chore(screencast): stop the recorder on ..." · Reviewed by Greptile |
…on't fit A failed action or Control-C during a take left screencapture running in the machine and the app in its changed state. The take now runs inside a handler that stops this run's recorder, by the PID it started rather than every screencapture, and tries the teardown before re-raising. --skip-record reused the last take's segment starts with whatever the narration had become, so a longer sentence or another voice could run into the next segment or past the movie's end. It now compares the new slot lengths and segment count with the ones recorded, and asks for a new take when they do not fit.
Collaborator
Author
|
@greptileai review |
5 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the tooling and an agent skill for short narrated feature videos, used at release time for Twitter/X, YouTube and the website.
.claude/skills/screencast/SKILL.md: thescreencastskill, in seven steps:agent-testvirtual Mac.screencast-previewsbranch.It never posts anywhere without the owner's go-ahead.
scripts/screencast/screencast.py: drives the machine throughsheprd machine, records its screen once per window (--window classic,moonframe) and renders, per window and language:NAME.LANG.mp4, plain, for YouTube and the siteNAME.LANG.srt, for YouTube's subtitlesNAME.en.captioned.mp4, for Twitter/X, which autoplays mutedscripts/screencast/tts.py: ElevenLabseleven_v4, with a native voice per language: River in English, Julien in French, Damien Doré as the French fallback. Spoken lines are cached, so re-renders cost no characters. OpenAI and macOSsayremain as options;saywas tried and rejected.scripts/screencast/README.md: usage, the voices and why, the rule that every new language gets a native voice chosen by data, and the machine's setup.features/themes.json: the first feature, Themes with live preview.Git LFS for videos
.gitattributessends*.mp4,*.movand*.webmto Git LFS. This PR commits no video..githooks(core.hooksPath), wheregit lfs installcannot add its own, so LFS'spre-push,post-checkout,post-commitandpost-mergeare added there. Each does nothing whengit-lfsisn't installed, so contributors without it are unaffected.GIT_LFS_ENABLED=true, or it deploys LFS pointer files instead of videos.Robustness learned while making the first video
screencapture -vwrites a frame only when the screen changes, and its movie ends at the last change. The script turns on the menu bar clock's seconds so frames keep coming and the narration stays in sync.No Sheprd code changes. Tooling only, so
chore.Screenshots
Captioned Twitter/X cut of the Themes video (Moonframe window, Dusk Default):
Full previews, classic and Moonframe, English and French:
screencast-previews/themes.QA
python3 -m py_compileon both scriptsjust check-file-size: all files within 1000 linesgit diff --check: cleansh -non the new hooksGIT_LFS_ENABLED=trueon the Netlify project before committing site videos