Repository navigation
Tool skills sdemo
/sdemo [feature] [what to show] shows you a feature working. Claude reads
what the feature changed, picks a few scenarios — each seen as the user it
should be seen as, from the feature's own database — and writes them as a
Playwright script; the player signs in as each user (see Signed in without a
password under bin/sclaude-proxy), clicks and types
through the steps, and puts captions on the page as it goes: what each step
does, where to look, why it matters. You get one link to a page — run by
sclaude's steps, also sent with the videos to the feature's Telegram topic, as
📱 for the phone (the tailnet's address) and 💻 for the laptop, and kept with
the videos in a demo comment on the feature's issue; run by hand, given in the
terminal only — with:
- a video per scenario — on a desktop, and on a phone where the layout differs there — and what it shows, what to look at and why this case;
- its steps beside it, the one under way written out large under the video (and as the video's captions in full screen); tap a step to jump there;
- checks marked ✓ or ✗;
- take over on every step: that page, signed in as that user, to go on by hand.
- the moment on the screen in the address: playing, seeking or pausing a video
writes
#v=<video>&t=<seconds>into it, so the link opens that video there; 📍 then a click on the frame adds a point (&p=<x>,<y>, per cent of the video's own frame from its top left corner, black bars left out, so the same on any screen) and copies the link at once; the link also ends with&u=<path>, the product's page the video shows at that second; 🔗 copies it without a point, and ⛶ goes full screen with these buttons still on it (✕ or Esc leaves), and ▣ fills the browser's window instead, its address bar, tabs and tools still there (✕, Esc or W leaves; ⛶ from there goes on to the whole screen, and leaving that comes back to the window). A click on the picture plays and pauses, on the page and in full screen. Send the link to Claude with what to change there:demo.py at <link>(which/sdemo, step 2 and every fix session know to run) names the scenario and the step at that second and cuts out the frame with the point marked, for the session to look at. - a strip of the steps under each video: a stretch per step, a failed check red; hovering says the step and shows the frame at that second, a click goes to the start of that step. In full screen the step under way shows over the picture as it starts. The step's words in both can be selected and copied.
- keys, for the video in full screen, under the pointer or holding the focus
(any of its buttons), or else the last one played while half of it is in view and
focus is on no link or button of the page (a text field keeps its keys
always): space or K play and pause, ← → or J L five seconds,
[]the step before or after,,.a frame on pause,<>the speed (kept for the next visit), M the sound, F full screen, W the window, Shift+P Shift+N the video before or after. ⛶'s tooltip lists them. - ✋ Try it yourself, under a scenario's video where part of the check is beyond the recorder — a downloaded file opened in another program, a mail, a phone's own app: the steps to take and what should happen, the files to download (the very ones the feature gave in the recording) and links into the product, opened signed in as the scenario's user. On the demo's page and on the feature's. The video says, in a caption and aloud, where its part ends and yours begins; in full screen the picture narrows at that moment and what to try slides in on the right for a few seconds, the video playing on.
- ⏮ and ⏭ over each video start the one before or after it from the beginning, on the page and in full screen alike; a video folded away (an earlier version) is passed over. Only one video plays at a time: starting one pauses whichever was playing.
- Play in a row, a checkbox in the page's heading, on by default: when a video ends the next one starts, on the page and in full screen alike; a video folded away (an earlier version) is passed over. On the feature's page it stops at the end of a section — the newer change, the current version, each earlier one — rather than run into the next. In full screen 🔁 turns it on and off. The choice is kept for the next visit. An iPhone's own full-screen player stops at the end of its video.
A wait where nothing happens on the screen — a page loading, a slow server — is cut down to a second in the videos.
Each feature has one demo page, /__sclaude/demo/<feature>/, with every demo
it ever had, as versions: a full demo and the deltas recorded before it — a
delta is a short recording of only what changed for a user, kept each time the
demo is recorded again after a change. On top the current version, marked
CURRENT: since when, what changed in it — between which stages
(2-code → 2-code, 2-code → preview), by which commits, the change in a
sentence, its videos — and the whole feature. Below it the history, newest
first: each earlier version marked OUTDATED, with the time it was the
current one (from — to, and how long), its videos folded. The feature's
Telegram topic keeps the current full demo and every delta: a new full demo
deletes the earlier full ones there, videos and all — but a message older
than 48 hours, which Telegram does not let a bot delete. The issue's demo
comment carries the current full demo alone; deltas are not posted there. /sdemo delta records one
by hand; when nothing changed for a user, it records nothing. The page is
linked from the proxy's list of features, under the feature, and from its
process map — a feature built in parts too, whose page has only the parts'
deltas until the whole is shown.
/sdemo ac walks through the acceptance criteria in the issue instead, a
scenario per criterion (or a few together), and names the ones no page can
show. /sdemo live plays the same in the laptop's chrome-debug, a window per
user with cookies of its own: ⏸ on the page hands it to you, ▶ goes on, ⏭
goes to the next scenario, ⏹ ends the script and leaves the windows signed
in. /sdemo links gives plain
links instead — one per scenario, signed in, with what to check under it —
and /sdemo links open opens them in chrome-debug, a window per user, closing
the previous demo's windows.
The links are for where you are: on the laptop http://<feature>.localhost:3000/…;
when a device of your tailnet has traffic now — you are on the phone — the
address the bot opens features at on a phone (the tailscale serve name, or
the tailnet address). Say "I'm on the laptop" or "on the phone" and it follows
that instead; the other place's link is given at the end, when there is a
phone address at all (tailscale serve or the tailnet's).
The videos are H.264 when ffmpeg is installed (sudo apt install ffmpeg),
which every browser and Telegram play; without it, the recording's own WebM,
four times the size, which Safari before 17.4 does not play. A demo is kept in the feature's .sclaude/local/demo/.
The videos are spoken: each scenario's title and each step's line, in
English, by a voice model run on the laptop's CPU. The first recording on a
machine fetches the model (~350 MB, once) through
uv; without it the videos are silent. A project
turns the voice off with "demoVoice": "off" (sclaude config).
skills/sdemo/demo.py does each part by hand: play <script.mjs> [--live]
plays a script (--only failed records again only the scenarios that failed
last time it played, the others kept from that recording), replay plays the last one again, stale says whether the
code changed since the last demo,
link <email> <path> makes one link, open <email> <path>…
opens links in chrome-debug, users lists who can sign in, db names the feature's database and criteria
prints the criteria.
Generated from docs/tools.md; edit it there, then rebuild with wiki/build.py.
SClaude is open source under MIT · Repository · Landing page · Contact
Why
How it works
- The cycle
- Big features in parts
- Limits in code
- Fewer tokens
- Feedback loops
- Metrics and the replay
- For a team
- Working from the phone
- Stack and costs
- Privacy
Guide
- Getting started
- Setting up
- Using sclaude
- The config, key by key
- When something goes wrong
- Glossary
- Gates and rules
- Team setup
- Privacy in full
- The tools
- Decks and the map
- Contributing
Inside
Links