Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
cbef453
chore(screencast): show Windows and Linux keys, add four features
penso Nov 22, 2026
e5cbbb7
feat(site): add narrated feature guides with search
penso Nov 22, 2026
c1745cd
feat(site): pause feature videos with Space and name single-window demos
penso Nov 22, 2026
48a04cd
chore(screencast): keep each video's narration in an editable transcript
penso Nov 22, 2026
6f20200
feat(site): show switching agents in the agent chat guide
penso Nov 22, 2026
4c1db9b
feat(site): open the features page with a basics tour
penso Nov 23, 2026
ec3cb2a
fix(chat): open the agent button's chat in a new tab on Herdr 2
penso Nov 23, 2026
7a4c093
fix(review): open on the diff alone in laptop-sized windows
penso Nov 23, 2026
e065fba
fix(site): pause feature videos with Space whatever has focus
penso Nov 23, 2026
a6a39af
Merge remote-tracking branch 'origin/main' into feat/feature-guides
penso Nov 23, 2026
749d6fc
chore(screencast): rewrite the tour around Sheprd's window
penso Nov 23, 2026
912d6e9
chore(screencast): glide the pointer, mark clicks, annotate in the tour
penso Nov 23, 2026
f103bfe
chore(screencast): 60 fps, no menu bar, click rings, chosen posters
penso Nov 23, 2026
65c9d68
chore(screencast): sync takes on a mark, slower voice, subtitle title
penso Nov 23, 2026
4c827c9
chore(screencast): Moonframe only, rings on the click, lower subtitle
penso Nov 23, 2026
ad1b7c1
chore(screencast): teach the skill the house style for every video
penso Nov 23, 2026
7e54b1f
chore(site): tour with the devices panel shown
penso Nov 23, 2026
4f648ac
chore(screencast): demonstrate browser annotations in Moonframe
penso Nov 23, 2026
d0ad733
Merge remote-tracking branch 'origin/main' into feat/feature-guides
penso Nov 25, 2026
8de9513
fix(site): preserve playback and index translated feature guides
penso Nov 25, 2026
32ab358
fix(site): keep published guides when recording a new clip
penso Nov 25, 2026
9dcb8a9
chore(screencast): draft nine bilingual feature guides
penso Nov 25, 2026
6262665
Merge remote-tracking branch 'origin/main' into feat/feature-guides
penso Nov 28, 2026
73a2e4a
docs: show how to resume a branch in a new worktree
penso Nov 28, 2026
11f926c
docs: demonstrate restoring a checkout from a checkpoint
penso Nov 28, 2026
e63ab05
docs: show how repository memory follows a worktree
penso Nov 28, 2026
8c46cff
docs: walk through reviewing a scheduled test automation
penso Nov 28, 2026
50f9417
docs: show how to reuse a review prompt in chat
penso Nov 28, 2026
2765fa7
docs: refresh the native agent chat screencast
penso Nov 28, 2026
5923e53
docs: refresh the side-by-side change review screencast
penso Nov 28, 2026
b7559ec
docs: refresh the command palette screencast
penso Nov 28, 2026
ea45b2f
docs: refresh the live theme preview screencast
penso Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 115 additions & 95 deletions .claude/skills/screencast/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,45 @@
---
name: screencast
description: Make a short narrated video screencast of a Sheprd feature, recorded in a virtual Mac, voiced by ElevenLabs in English and French, in the classic and Moonframe windows, with a captioned cut for Twitter/X and an .srt for YouTube. Use when the user asks for a screencast, demo video, feature video, or a clip of what a release adds for Twitter/X, YouTube, or the website.
description: Make a short narrated video screencast of a Sheprd feature, recorded in a virtual Mac in the Moonframe window, voiced by ElevenLabs in English and French, with smooth pointer moves, click rings, a lower-third title, an .srt for YouTube, a captioned cut for Twitter/X, and a page on sheprd.org/features. Use when the user asks for a screencast, demo video, feature video, the basics tour, or a clip of what a release adds for Twitter/X, YouTube, or the website.
---

# Feature screencasts

One feature, one video of 30 seconds at most, per window and language. The
tooling lives in `scripts/screencast/` (read its `README.md` first): a feature
file says what to do in the app and what to say, and `screencast.py` voices
it, records it once per window in the `agent-test` machine, and renders the
MP4s. Never record the user's own desktop: their display is shared and their
workspaces are private.
One feature, one video of about 30 seconds (the basics tour runs longer), in
the Moonframe window, in English and French. The tooling lives in
`scripts/screencast/` (read its `README.md` first). A feature is a steps file
and a transcript; `screencast.py` voices it, records it in the `screencast`
virtual Mac, and renders the MP4s; `website/tools/features.py` puts them on
the site. Never record or drive the user's own desktop: their display is
shared and their workspaces are private.

## What every video looks like

These are the owner's choices; keep them for every new video.

- **Moonframe window only**, at 1920x1080, 60 fps, 16:9 with no bars.
- **No macOS menu bar**: the machine hides it (auto-hide Always), so the
window fills the frame. A video about a feature in a menu shows it for itself.
- **Pointer**: one size bigger than normal, and it glides to each target
(`machine/hover.c`), never jumps.
- **Clicks** show a thin ring that grows and fades, placed on the click
itself. A click that only gives a pane the keyboard before a shortcut is
`"quiet"` and shows none, so no ring appears for no visible reason.
- **Title**: a lower third at the bottom, white text with a soft shadow, no
box, during the first sentence.
- **Narration**: ElevenLabs `eleven_v4`, River in English, Julien in French
(native accents only), at speed 0.9 with a second's pause after each
sentence. No burned-in captions in the main cuts; the `.srt` is for YouTube.
- **Shortcuts**: when the narration says a macOS key, the Windows and Linux
keys show on screen in the narration's language.
- **Tidy window**: close splits, pages and dialogs once they have been shown,
so the window does not fill up.
- **Cover**: the page's still is a calm frame that shows the feature, picked
by `poster` (seconds) in `website/features.json`, never a frame mid-click.

## 1. Pick the feature

For a release, read what it adds, then agree on one feature per video with
the user:
For a release, read what it adds and agree on one feature per video:

```sh
gh release view -R sheprd-labs/sheprd --json tagName,body -q '.tagName, .body'
Expand All @@ -24,112 +48,105 @@ gh release view -R sheprd-labs/sheprd --json tagName,body -q '.tagName, .body'
`design/sheprd-website/assets/features.js` lists every feature with a one-line
description, which makes a good first narration line.

## 2. Put the build in the machine
## 2. Prepare the machine

The machine must run the build that has the feature, at
`/Users/admin/Apps/Sheprd.app`. Keep the one it replaces in `~/Apps/old`.
The `screencast` virtual Mac is reserved for this (pinned in repo memory); it
is made from the `screencast-base` image. Check it with `sheprd machine list`
(running, 2560x1440) and `sheprd machine agent screencast` (both permissions),
and take a screenshot: awake, unlocked, nothing else in front. Use the dev
app's `sheprd` (`$SHEPRD`), not an older one on PATH.

- **A published release:** download `sheprd-VERSION-macos-universal.app.tar.gz`
with `gh release download`, then push it in as below.
- **Unreleased `main`:** build outside a Git worktree, or the window shows a
worktree banner: `git archive HEAD | tar -x -C DIR`, symlink a warm
`target/` into `DIR`, then `just bundle` there.
```sh
set -a; source .envrc; set +a # ELEVENLABS_API_KEY; git-ignored, never print it
python3 scripts/screencast/machine/prepare.py --app target/release/Sheprd.app --sign-ins
```

Push a file in through the agent: `base64 | split -a 4 -b 190000`, then per
chunk `sheprd machine exec agent-test -- sh -c 'printf %s "$1" | base64 -D >>
/tmp/Sheprd.zip' _ "$(cat CHUNK)"`. Compare `shasum` on both sides before
unpacking. Quit Sheprd in the machine first (bring it to the front with `open
~/Apps/Sheprd.app`, then `machine key agent-test cmd+q`).
`prepare.py` runs `machine/setup.sh` in the guest (no sleep or lock, hidden
menu bar and Dock, Claude Code and Codex, the scripted demo agent as
`~/.local/bin/gemini`, the `~/code/forecast` demo repo, Sheprd's settings),
installs the pointer helper, installs a build with `--app`, and copies Claude
and Codex sign-ins without refresh tokens (Claude's last a few hours). Build
the app outside a Git worktree, or it shows a worktree banner: `git archive
HEAD | tar -x -C DIR`, symlink a warm `target/` into `DIR`, `just bundle`.
The pointer size cannot be scripted (macOS protects it): set Accessibility >
Display > Pointer size one step up by hand once, then save a new image.

## 3. Check the machine
If the machine is lost, `sheprd machine new screencast --from screencast-base`
brings it back. Another session may run its own VM beside it; macOS allows two.

- `sheprd machine list`: `agent-test` running at 2560x1440. `sheprd machine
agent agent-test` answers with both permissions.
- Take a `machine screenshot` and look at it: awake, unlocked (password
`admin`), no Finder window or dialog in front, and no other session using
the machine. If another agent's build or tabs are there, ask before
replacing them.
## 3. Write the feature

## 4. Write the feature file
Two files in `scripts/screencast/features/`, copied from `themes.*`:

Copy `scripts/screencast/features/themes.json` to `features/NAME.json`:
- `NAME.md`, the transcript: `# Title`, a `fr:` line, then one `## N` section
per segment with `en:` and `fr:` lines. Edit it to change what is said.
- `NAME.json`, the steps: `setup` (reset state, open the demo; not recorded),
`segments` (one `actions` list per transcript section), `teardown`.

- `title`: shown over the first segment, per language.
- `setup`: puts the app in a known state before recording: reset what the
last run changed, open a clean terminal. Not recorded.
- `segments`: 4 to 6, each one sentence in `say` (en and fr, plus the other
languages' text so they are ready) and the `actions` shown while it plays:
`["key", "cmd+shift+p"]`, `["type", "text"]`, `["slowtype", "text", 0.05]`,
`["click", x, y]` in screenshot pixels, `["wait", seconds]`,
`["repeat", n, [actions]]`, `["exec", "shell command"]` run in the
machine (to reopen the app mid-take, for example).
- `"fill": false` skips Window > Fill when the window already fills the
screen (see Gotchas).
- `teardown`: undo what the video changed, such as the theme.
Set `"fill": false` when the window already fills the screen.

Narration: plain words a new user understands, the action before the result,
no keyboard-shortcut captions on visible buttons. Keep the total of the
longest takes under about 25 seconds; the script prints segment times.
Actions: `["key", "cmd+shift+p"]`, `["type", "text"]`, `["slowtype", "t", 0.05]`,
`["click", x, y]` (add `"right"` and/or `"quiet"`), `["hover", x, y]`,
`["wait", s]`, `["repeat", n, [...]]`, `["exec", "shell in the guest"]`.
Coordinates are the guest screenshot's pixels (2560x1440); a
`{"moonframe": [x, y]}` map stands in when windows differ. A segment saying a
macOS key gets `"shortcut": "ctrl-shift-p"`, looked up in
`crates/sheprd-commands/src/shortcuts/linux.rs` (Windows takes Linux's unless
`windows.rs` overrides); they are rarely just Cmd for Ctrl.

Work out every click position from a screenshot first, and walk the steps by
hand with `sheprd machine key/type/click` and a screenshot after each, before
recording.
Narrate what the viewer is about to see, in plain words, one idea per
sentence. Walk every step by hand with `machine click/key/type` and a
screenshot after each before recording, and again after any layout change
(the menu bar's height moves everything).

## 5. Record and render
## 4. Record and render

```sh
set -a; source .envrc; set +a # ELEVENLABS_API_KEY; .envrc is git-ignored
python3 scripts/screencast/screencast.py scripts/screencast/features/NAME.json
python3 scripts/screencast/screencast.py scripts/screencast/features/NAME.json \
--skip-record --captions --langs en # the Twitter/X cut from the same take
--skip-record --captions --langs en # the Twitter/X cut from the same take
```

The key lives in the `.envrc` of the checkout that made the first videos;
copy that line, never print the key. Defaults: both windows
(`--window classic,moonframe`), English and French, River in English and
Julien in French (`scripts/screencast/README.md`, Voices). Spoken lines are
cached, so re-renders cost no characters.

Outputs, under `target/screencasts/WINDOW/elevenlabs-river/`:
A take: launch Sheprd fresh and Fill the window, run `setup`, start the
recorder, hide Sheprd for a moment as a sync mark (cut with the warm-up), play
the segments, run `teardown`, copy the movie out. A render takes seconds;
`--skip-record` re-renders after a transcript edit if each sentence still fits
its slot, and refuses otherwise. Outputs land in
`target/screencasts/moonframe/elevenlabs-river/NAME.LANG.mp4` and `.srt`.

| File | For |
| --- | --- |
| `NAME.LANG.mp4` | YouTube and the website, no captions |
| `NAME.LANG.srt` | YouTube's subtitle upload |
| `NAME.en.captioned.mp4` | Twitter/X, which autoplays muted |
## 5. Check before showing anyone

All are 1920x1080 H.264 with AAC, which Twitter/X, YouTube and the site take
as is.
- A contact sheet of the whole video: `ffmpeg -i OUT.mp4 -vf
"fps=1/2,scale=240:-1,tile=8x9" -frames:v 1 sheet.png`.
- Every click: the frames just before and after it, cropped around the
point. The ring must sit under the hand pointer as the element reacts,
never before the target appears or after it has gone.
- Nothing else on screen: no menu bar, Finder, dialog, lock screen, error,
or the user's data. If the app shows a bug, stop and report it (or hand it
to another agent) rather than recording around it.

## 6. Check before showing anyone

Tile the video and look at every second against the narration:
## 6. Publish

```sh
ffmpeg -v error -i OUT.mp4 -vf "fps=1,scale=240:-1,tile=6x5" -frames:v 1 tile.png
cd website && python3 tools/features.py publish && python3 tools/features.py build
python3 tools/features.py posters # after changing a `poster` alone
```

Each action must appear while its sentence plays, with nothing else on screen
(no Finder, dialog, or error in the status bar). If the app shows a bug, stop
and tell the user rather than recording around it.

## 7. Hand it over

Push the MP4s to the orphan `screencast-previews` branch (under
`FEATURE/WINDOW/`) and link the GitHub pages, which play on a phone. Posting to
Twitter/X or YouTube, or publishing the website, is the user's call: never do
it without their explicit go-ahead for that post.
Page copy, order and `poster` live in `website/features.json`; the tour is its
`tour` entry. Serve `website/site` locally to look (another session may hold
port 8765). Push previews to the orphan `screencast-previews` branch for the
phone. Videos are committed through Git LFS. Posting to Twitter/X or YouTube,
or deploying the site, is the user's call.

## Gotchas

- `screencapture -v` writes a frame only when the screen changes and its movie
ends at the last one; the script turns on the menu bar clock's seconds so it
keeps going. It can also take about ten seconds to start, which the script
waits for and trims.
- Command-Q and keys go to the front app: bring Sheprd to the front with
`open ~/Apps/Sheprd.app` before them. A click on the desktop raises Finder.
- After a dialog closes or the app relaunches, click inside the window
before typing.
- `screencapture -v` writes frames only on screen changes, drops its last
seconds when stopped, and can take seconds to start: the script keeps the
menu bar clock ticking, waits 16 s, and aligns on the sync mark, never on
the movie's end.
- Keys and Command-Q go to the front app: the script brings Sheprd forward
first. A click on the desktop raises Finder; after a dialog or relaunch,
click in the window before typing.
- Window > Fill (`ctrl+fn+f`) maximizes; a title bar double-click toggles.
Sheprd Agent can leave Control held after it, so every later click opens
a context menu and typing sends control characters. Restart Sheprd Agent
Expand All @@ -142,10 +159,13 @@ it without their explicit go-ahead for that post.
left over as root; it comes forward whenever Sheprd quits.
- A feature that needs a reboot is two feature files recorded on either side
of it (`tmux-sessions.json`, `tmux-reboot.json`), joined afterwards.
- A theme set in a run sticks: `setup` must reset it.
- `machine exec` keeps only the last 64 KB of output and refuses `rm` inside
`sh -c`; truncate with `cp /dev/null FILE`. `osascript` hangs on a hidden
permission prompt: don't use it.
- Moonframe can draw with Rune only in apps written wholly in Luau. Sheprd's
terminals and pages are a GPUI view, so there is no Rune version of Sheprd
to record yet.
- After the pointer rests on the status bar's CPU meter, the next click on
the device footer is swallowed unless the pointer leaves the meter about
3 s before (being fixed separately); move away right after pointing.
- Sheprd opens local pages only outside hidden folders, so demo pages come
from `~/code/forecast`, not a worktree under `~/.herdr`.
- The agent button starts the agent used last: setups run `sheprd chat new
gemini` first so the scripted agent answers.
- `machine exec` keeps the last 64 KB of output, refuses `rm` in `sh -c`
(use `cp /dev/null`), and sometimes drops a connection (the copy retries).
`osascript` hangs on a hidden permission prompt: avoid it.
8 changes: 4 additions & 4 deletions crates/sheprd-gpui/src/review/view/panels.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
//! Whether a review shows its file list and its notes beside the diff. A
//! review narrower than `NARROW` gives the diff all its room until the user
//! says otherwise with the header's icons; a note being written always shows
//! the notes, so the composer is never hidden.
//! review narrower than `NARROW`, as on a laptop, gives the diff all its room
//! until the user says otherwise with the header's icons; a note being
//! written always shows the notes, so the composer is never hidden.
use super::Review;
use crate::{SheprdWindow, browser::TabId, i18n::fl};
use gpui::{prelude::*, *};
use std::{cell::Cell, rc::Rc};

/// Below this width, in pixels, a review starts with both panels hidden.
pub(super) const NARROW: f32 = 1000.;
pub(super) const NARROW: f32 = 1600.;

/// A side panel of a review.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
Expand Down
1 change: 1 addition & 0 deletions crates/sheprd-gpui/src/review/view/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ mod en_xa;
mod files;
mod find_again;
mod keys;
mod laptop_width;
mod layout;
mod loading;
mod origin;
Expand Down
4 changes: 2 additions & 2 deletions crates/sheprd-gpui/src/review/view/tests/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn a_clicked_line_opens_while_it_is_in_view(cx: &mut gpui::TestAppContext) {
#[gpui::test]
fn e_on_a_clicked_file_in_the_list_opens_that_file(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(gpui::px(1600.), gpui::px(900.)));
cx.simulate_resize(gpui::size(gpui::px(2200.), gpui::px(900.)));
let files = super::files::many_files();
cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(files, window, cx)));
draw(cx);
Expand All @@ -110,7 +110,7 @@ fn e_on_a_clicked_file_in_the_list_opens_that_file(cx: &mut gpui::TestAppContext
#[gpui::test]
fn the_header_button_opens_its_file_but_a_deleted_file_has_none(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(gpui::px(1600.), gpui::px(900.)));
cx.simulate_resize(gpui::size(gpui::px(2200.), gpui::px(900.)));
let diff = Diff::parse(
"diff --git a/kept.rs b/kept.rs\n--- a/kept.rs\n+++ b/kept.rs\n@@ -1,1 +1,1 @@\n-a\n+b\n\
diff --git a/gone.rs b/gone.rs\ndeleted file mode 100644\n--- a/gone.rs\n+++ /dev/null\n\
Expand Down
6 changes: 3 additions & 3 deletions crates/sheprd-gpui/src/review/view/tests/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub(super) fn many_files() -> Loaded {
#[gpui::test]
fn clicking_a_file_brings_it_to_the_top_in_either_layout(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(px(1600.), px(900.)));
cx.simulate_resize(gpui::size(px(2200.), px(900.)));
cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx)));
draw(cx);
draw(cx);
Expand Down Expand Up @@ -75,7 +75,7 @@ fn clicking_a_file_brings_it_to_the_top_in_either_layout(cx: &mut gpui::TestAppC
#[gpui::test]
fn folders_close_filters_narrow_and_viewed_files_fold(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(px(1600.), px(900.)));
cx.simulate_resize(gpui::size(px(2200.), px(900.)));
cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx)));
draw(cx);
// `src/` holds two files; closed, they leave the list.
Expand Down Expand Up @@ -130,7 +130,7 @@ fn folders_close_filters_narrow_and_viewed_files_fold(cx: &mut gpui::TestAppCont
#[gpui::test]
fn the_arrows_pick_a_file_and_enter_shows_it(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(px(1600.), px(900.)));
cx.simulate_resize(gpui::size(px(2200.), px(900.)));
cx.update(|window, cx| view.update(cx, |view, cx| view.seed_review(many_files(), window, cx)));
draw(cx);
let first = cx.debug_bounds("review-file-0").unwrap();
Expand Down
23 changes: 23 additions & 0 deletions crates/sheprd-gpui/src/review/view/tests/laptop_width.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
use super::{changes, window};

fn draw(cx: &mut gpui::VisualTestContext) {
cx.update(|window, cx| crate::sidebar::layout_tests::full_draw(window, cx).clear(cx));
}

/// A laptop-sized window gives the diff all its room: both side panels
/// start hidden, as on a small screen, until the header's icons ask.
#[gpui::test]
fn a_laptop_wide_review_opens_on_the_diff_alone(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(gpui::px(1280.), gpui::px(800.)));
cx.update(|window, cx| {
view.update(cx, |view, cx| {
view.seed_review(changes(), window, cx);
})
});
draw(cx);
draw(cx);
assert!(cx.debug_bounds("review-files").is_none());
assert!(cx.debug_bounds("review-notes").is_none());
assert!(cx.debug_bounds("review-toggle-files").is_some());
}
2 changes: 1 addition & 1 deletion crates/sheprd-gpui/src/review/view/tests/resize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn a_narrow_review_hides_its_panels_until_asked(cx: &mut gpui::TestAppContext) {
#[gpui::test]
fn a_wide_review_shows_its_panels_unless_hidden(cx: &mut gpui::TestAppContext) {
let (view, cx) = window(cx, None);
cx.simulate_resize(gpui::size(px(1600.), px(900.)));
cx.simulate_resize(gpui::size(px(2200.), px(900.)));
cx.update(|window, cx| {
view.update(cx, |view, cx| {
view.seed_review(changes(), window, cx);
Expand Down
Loading