Skip to content

Commit 1be056d

Browse files
authored
docs: say how agents in a session show recordings (#14)
The `screenshots` skill told agents to record motion with Playwright and attach the `.webm`. Neither works in an fctl session. `gh … --attach` fails with `unsupported authentication type`, and `fctl publish` refuses videos. The skill now says to turn the recording into an animated WebP with ffmpeg and publish that, and gives the commands. hyperstructure/fctl#78 makes the same change to fctl's skill. The branch also carries the empty commit from #13, the dummy pull request that checked publishing from a session. It changes no files. ## How I checked - #13 showed an animated WebP of fctl.sh's hero, made this way and published from a session. GitHub's image proxy served it as `image/webp`, byte for byte. - The documented `ffmpeg` command, run on a 5 s Playwright recording of https://fctl.sh, makes an animated WebP of 36 frames, 0.8 MB. - Markdown only. `npm run check` doesn't read `.claude/skills`, and CI runs it anyway. Refs hyperstructure/fctl#40 Session: https://app.fctl.sh/s/ses_01M57YJF6VBYJZ93Q1ZVZ10QKG --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
1 parent eb3ef2a commit 1be056d

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎.claude/skills/screenshots/SKILL.md‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ node shoot.mjs http://localhost:5174/ after-dark-390.png dark 390x844
8888

8989
For a whole docs page, pass `fullPage: true` to `page.screenshot`; for one
9090
element, use `page.locator(…).screenshot()`. When the change is motion,
91-
record it (`recordVideo` in `newPage`) and attach the `.webm`.
91+
record it (`recordVideo` in `newPage`) and attach the `.webm`, or in an fctl
92+
session an animated WebP made from it (below).
9293

9394
Look at every screenshot before you use it. If `npm ci` couldn't fetch
9495
`@hyperstructure/design`, the colors and fonts are a stand-in: say so under
@@ -147,6 +148,18 @@ publish screenshots, look at them anyway, describe what they show in the
147148
description, and say that the session can't attach them. Don't commit them
148149
instead.
149150

151+
`fctl publish` takes images, not videos: turn a recording into an animated
152+
WebP and publish that. `-ss` and `-t` keep the seconds that show the change.
153+
Three seconds at 12 frames a second and 800 px wide come to about 1 MB, well
154+
under the 5 MB limit:
155+
156+
```sh
157+
sudo apt-get update && sudo apt-get install -y ffmpeg # once per sandbox
158+
ffmpeg -ss 1 -t 3 -i recording.webm -vf "fps=12,scale=800:-1" \
159+
-c:v libwebp_anim -q:v 60 -loop 0 after.webp
160+
fctl publish after.webp
161+
```
162+
150163
## Keeping them current
151164

152165
The screenshots show the pull request's newest commit. When a later commit

0 commit comments

Comments
 (0)