Skip to content

chore: add a screencast skill and its recording scripts - #1550

Merged
penso merged 2 commits into
mainfrom
chore/screencast-skill
Nov 22, 2026
Merged

penso merged 2 commits into
mainfrom
chore/screencast-skill

Conversation

@penso

@penso penso commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

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: the screencast skill, in seven steps:

    1. Pick the feature from the release notes.
    2. Put that build in the agent-test virtual Mac.
    3. Check the machine is clean, awake and 16:9.
    4. Write the feature file, trying every step by hand first.
    5. Record and render.
    6. Check every second of the result.
    7. Push previews to the screencast-previews branch.

    It never posts anywhere without the owner's go-ahead.

  • scripts/screencast/screencast.py: drives the machine through sheprd machine, records its screen once per window (--window classic,moonframe) and renders, per window and language:

    • NAME.LANG.mp4, plain, for YouTube and the site
    • NAME.LANG.srt, for YouTube's subtitles
    • NAME.en.captioned.mp4, for Twitter/X, which autoplays muted
  • scripts/screencast/tts.py: ElevenLabs eleven_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 macOS say remain as options; say was 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

  • .gitattributes sends *.mp4, *.mov and *.webm to Git LFS. This PR commits no video.
  • The repository's hooks live in .githooks (core.hooksPath), where git lfs install cannot add its own, so LFS's pre-push, post-checkout, post-commit and post-merge are added there. Each does nothing when git-lfs isn't installed, so contributors without it are unaffected.
  • Before the website serves committed clips, the Netlify project needs GIT_LFS_ENABLED=true, or it deploys LFS pointer files instead of videos.

Robustness learned while making the first video

  • screencapture -v writes 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.
  • The recorder can take about ten seconds to start, so the script waits for it and trims the start.
  • The script brings Sheprd to the front before sending Command-Q or keys, and maximizes with Window > Fill rather than a title-bar double-click, which toggles.

No Sheprd code changes. Tooling only, so chore.

Screenshots

Captioned Twitter/X cut of the Themes video (Moonframe window, Dusk Default):

Captioned cut

Full previews, classic and Moonframe, English and French: screencast-previews/themes.

QA

  • python3 -m py_compile on both scripts
  • just check-file-size: all files within 1000 lines
  • git diff --check: clean
  • sh -n on the new hooks
  • Recorded and rendered Themes end to end with these scripts (classic and Moonframe, en and fr, plus the captioned cut), checked frame by frame
  • CI: format, lint, and test (pending)
  • Set GIT_LFS_ENABLED=true on the Netlify project before committing site videos
  • Next release: run the skill for one new feature

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.
@netlify

netlify Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sheprd-labs ready!

Name Link
🔨 Latest commit 7bf695f
🔍 Latest deploy log https://app.netlify.com/projects/sheprd-labs/deploys/6b0349fa4d9d305719bf076a
😎 Deploy Preview https://deploy-preview-1550--sheprd-labs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@greptile-apps

greptile-apps Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Adds a screencast skill, recording and narration scripts, a Themes example, and Git LFS hooks for videos.

  • Operators can turn a feature plan into a narrated Sheprd screencast.
  • Git stores committed video clips through Git LFS.

Reviews (2) · Last reviewed commit: "chore(screencast): stop the recorder on ..." · Reviewed by Greptile

Comment thread scripts/screencast/screencast.py Resolved
Comment thread scripts/screencast/screencast.py Resolved
…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.
@penso

penso commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

@greptileai review

@penso
penso merged commit 4ab49ed into main Nov 22, 2026
13 of 16 checks passed
@penso
penso deleted the chore/screencast-skill branch November 22, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant