"It works" in a pull request is a claim. A person who must test the feature, or use it, needs
the steps and what to see at each step. People write such documents by hand, and the
screenshots are old after the next change. This skill writes the steps as a file and takes
the screenshots with a headless browser. After a change of the app, one command makes the
same screenshots again.
When to use it
Use it when you want a walkthrough, a manual test script, QA steps, a how-to guide or a help
page for one flow of a web app. It reads the PRD or the one-pager of the feature, if there is
one, for the flow and the expected results.
Read. The request, the capture profile, the PRD, the routes and the components of the flow, and the start command of the app.
Interview. Who reads the document, which devices, and the profile questions if the repo has no profile.
Save the profile. The address of the app, the start command and the sign-in method. The profile has no secret: a password comes from an environment variable.
Write the steps file.steps.json: one step for each thing that the reader must see. A step is one screenshot.
Capture. The CLI runs the steps with Playwright and writes one screenshot for each step, with the element to use marked on it.
Write the page, build and check. The lead, "Before you start" and the interview record. The build puts the steps into the page.
Video, as an option.capture --video records the same run with a voice. The page then has a Video tab.
The test script has a pass / fail / blocked control and a note for each step. The page keeps
the results in the browser, and the tester can export them as JSON or as text.
The interview from a real run
The subject is the example "Fetch, with retries" in the guide of switchyard. The flow has no
account and no data, so skip rules removed 7 questions. The maintainer answered 2.
The request
Make a walkthrough of the Fetch, with retries demo on the Getting started page of the guide.
Note.skillsaw in the commands is node ~/dev/skillsaw/packages/cli/dist/cli.js, run from the root of the clone. The question about folders (skillsaw-interviews.md section 7) applied but the maintainer was not asked, so it is in assumptions, not in asked.
The agent found these answers in the repo. It did not ask these questions.
Which flow does this document show?
The example 'Fetch, with retries' on the Getting started page of the Switchyard guide.
Source request of the user; docs-app/app/templates/index.gts
Where does the flow start and where does it end?
Start: the Getting started page with the state Idle and 'The API is down' selected. End: the state Done with 'user: Ada Lovelace', then Reset to Idle.
pnpm --filter docs-app exec vite --port 4327 --strictPort, after pnpm install, pnpm build and one build of the two design pages. The start script of docs-app fails in a new clone with switchyard: command not found.
Source docs-app/package.json; interviews.json (subjects.docsApp); a test run in the clone
What is the address of the app?
http://localhost:4327/switchyard/guide/. The base path is from the Vite config; the start command sets the port.
Source docs-app/vite.config.mjs
Which name, accent colour and logo do the pages of this repo get?
Switchyard, indigo #4f46e5, logo docs/logo.svg. livery show had exit code 1, so the values were saved with livery set.
Source earlier interview (accent, answered by the maintainer); README.md (name); docs/site/site.css --brand-indigo (same colour); docs/logo.svg
Owner of the page
Joe Gaudet.
Source earlier interview
A skip rule of the question bank removed these questions.
Which role or account does the reader use?
Skip when the app has one role: the guide has no accounts.
Which data must be there before the first step?
Skip when the flow needs no data: the demo has its own pretend API.
One file to send, or a folder to commit?
Skip when the user did not speak of mail, chat or a ticket.
How does the capture sign in?
Skip when the flow needs no account (--sign-in none).
Which environment variables hold the name and the password of the test account?
Skip when sign-in is none.
How does the seed data get into the app?
Skip when the flow needs no data.
Which viewport and language?
Skip when the user did not ask for a size or a language.
The maintainer saw these questions. The first option is the recommended one.
ReadersQuestion 1 of 2
Who reads the walkthrough of the 'Fetch, with retries' demo in the Switchyard guide?
QA and end usersRecommendedChosen
One capture gives the two documents as tabs: a test script with pass and fail controls, and a help guide.
QA only
The page has only the test script, with an expected result for each step.
End users only
The page has only the help guide, in task language with no expected results.
DevicesQuestion 2 of 2
The Switchyard guide has a layout for narrow screens (860 px or less). Do you want phone screenshots in the walkthrough of the Fetch demo?
Desktop onlyRecommendedChosen
One set of screenshots at 1280×800; the capture is faster and the page is smaller.
Desktop and phone
Each step also has a phone screenshot, which shows the narrow layout of the guide.
The agent recorded these assumptions. Nobody answered them.
Paths of the test script: the main path only. The flow has no PRD and no one-pager. The fetch that fails is a part of the main path.
Words: the labels of the UI (Fetch, Retry, Reset, 'The API is down', State, retries). The flow has no PRD and no one-pager.
Folders: docs/ holds the published site (docs/site) and the generated API reference (docs/api), so the folder question of skillsaw-interviews.md section 7 applies. The maintainer was not asked. The default for a repo whose docs/ has a different use was used: skillsaw/walkthroughs, and skillsaw/<kind> for the other page types. The line skillsaw/ was added to .prettierignore, because the repo has format:check.
Sequence of the steps: the steps clear 'The API is down' after the first retry. The text of the guide says to clear it after three retries, but the machine permits no retry after the third (hasRetriesLeft in docs-app/app/machines/fetch.ts).
Profile: the navigation timeout and the start timeout are 180000 ms, not the default 60000 ms. The first load of the Vite dev server took 70 s on this computer (load average more than 100 during the run). The action timeout is the default, 10000 ms.
Profile: the port 4327 is fixed with --strictPort. The default port 5173 of Vite can be in use, and the base URL must be the same each time.
Viewport, scale and locale: the defaults (1280x800, scale 2, en-US). The user did not ask for other values.
The build of the two design pages (design build) is a precondition that a person runs one time. It is not a part of the start command, because the start command has no shell and cannot join commands.
Address for end users in 'Before you start': https://joegaudet.com/switchyard/guide/, from the comment in docs-app/vite.config.mjs and README.md. The capture ran on the local dev server only.
The artifact from that run
The page has 7 steps and 7 screenshots, as a test script and as a help guide. Select a result
for a step, then load the page again: the result stays.
The pictures in the walkthrough are desktop screenshots of the app: the maintainer answered "Desktop only". The third picture above shows the walkthrough page itself on a phone.
Narrated video
walkthrough capture --video records the same run as the screenshots. A voice
speaks the narration of each step, and the page gets a Video tab with captions, chapters and a
transcript. This is the real video of the walkthrough above: 80 seconds, 6.1 MB, made in 109
seconds by Piper on the computer of the run.
A title card and an end card with the logo, the name of the flow and the intro and outro texts, spoken. The end card names no repo path.
The real run of the steps, at the speed of the narration. The voice of a step starts when its actions and waits are complete, so it describes the screen that the viewer sees.
Visual aids: a pointer that goes to the highlighted control before the voice names it, a ring on each click, the numbered highlight box, a slow zoom to the control, and a bar with the number and the title of the step. Each aid can be off: walkthrough video set --aids.
Privacy masking. A field that gets a secret from an environment variable is grey in each screenshot and in each frame. A narration text must have no secret: check refuses a text that looks like one.
How the voice is chosen
walkthrough doctor shows ffmpeg, Playwright and each speech engine, with what to do. The CLI never installs a program.
walkthrough voice samples makes a short sample of 3 or 4 voices, with a real sentence of the walkthrough. You listen and choose. voice set saves the voice.
The default engine is Piper, on your computer: the text goes nowhere. The default voice is en_US-ryan-medium. walkthrough voice install downloads a voice only when you agree.
With no Piper, the CLI uses the system voice: say on macOS, espeak-ng on Linux. It tells you so.
OpenAI and ElevenLabs are cloud engines, and they are off by default. The text goes to them only after a person gives consent with walkthrough voice consent, which records the engine, the person and the date. The key comes from an environment variable only.
The interview also asks how much the voice says at each step:
Level
The voice says
brief
The action only, in one short sentence.
standard
The action and what the user sees. This video uses it.
detailed
Also the reason, the tips and the warnings.
What the real run learned
The first video took 7 captures, and 3 failed. The run found 14 problems. After the fixes, one capture with a cold server gave the video above.
Fixed: a cold dev server gave 18 seconds of a white page under the voice of step 1.
The CLI now loads the first page one time before the recording starts, and waits until it is ready.
Fixed: the voice said a result over the loading screen.
The narration started before the actions of the step. It now starts after the actions and
their waits, so "The fetch fails" plays over "State: Failed".
Fixed: the pointer was on the control of the last step while the voice named the next one.
It now goes to the highlighted control before the voice starts. The ring of a click also ends before the bar of the next step shows.
Better: the zoom has a margin.
The zoom now stops at the edge of a part of the page, with a margin of 24 CSS pixels, so at
rest it does not cut the navigation through a word. While the zoom moves in, for about one
second, the edge of the view still crosses the navigation.
Fixed: a stylesheet with HTTP 404 was reported as a slow server.
Three captures failed, and the hint said "run it again". The CLI now says that the stylesheet
answered HTTP 404 and that the server does not serve that path. A probe with the plain dev
server gave this message in 56 seconds.
No agent can listen.
An agent cannot hear how the voice says "switchyard" or "Ada Lovelace". voice phonemes
prints what Piper says, but only a person can confirm the sound. The owner listens to the
video, and the agent adds a pronunciation only when the owner says that a word is wrong.
The limits. OpenAI and ElevenLabs are tested only with a fake client, not
with a real call. Windows has no system voice. The Linux system voice, espeak-ng,
is tested with fakes. The video was checked in Google Chrome only, not in Safari or Firefox.
The commands
This list is the full record, with the captures that failed. skillsaw is the
built CLI of the repo.
$ git clone --local ~/dev/switchyard <S>/examples/walk/switchyard (branch feat/design-skill was the checked-out branch)$ pnpm install && pnpm build (in the clone root, 29 s)$ skillsaw walkthrough profile show (exit code 1)$ skillsaw livery show (exit code 1)$ skillsaw docs show
$ skillsaw livery set --name Switchyard --accent '#4f46e5' --logo docs/logo.svg
$ skillsaw docs set --adr skillsaw/adr --prd skillsaw/prd --one-pager skillsaw/one-pagers --walkthrough skillsaw/walkthroughs --quality skillsaw/quality
$ skillsaw walkthrough profile set --base-url http://localhost:4327/switchyard/guide/ --start-command "pnpm --filter docs-app exec vite --port 4327 --strictPort" --sign-in none
(in docs-app) node ../packages/cli/dist/cli.js design build designs/order --out public/designs/order.html && node ../packages/cli/dist/cli.js design build designs/text-editor --out public/designs/text-editor.html$ printf '# Built by skillsaw: generated HTML pages.\nskillsaw/\n' >> .prettierignore
$ skillsaw walkthrough new fetch-with-retries --title "Fetch, with retries" --owner "Joe Gaudet" --audience both
(wrote steps.json)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (exit 1: goto timeout 10000 ms)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (exit 2: start command stopped with exit code 1, the port was not free yet)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (exit 1: goto timeout again)$ skillsaw walkthrough profile set --action-timeout 60000
$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (exit 0, 79 s, 7 screenshots; the example was at the bottom edge of the screenshots)(added a scroll action to step 1)$ pnpm --filter docs-app exec vite --port 4327 --strictPort & (server started by hand, to save the start time of each run)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries (exit 1: goto timeout 60000 ms)$ skillsaw walkthrough profile set --action-timeout 120000
$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries (exit 0, 13 s; the scroll went too far)(changed the scroll target of step 1)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries (exit 0, 18 s; all 7 screenshots correct)$ skillsaw walkthrough build skillsaw/walkthroughs/2026-12-02-fetch-with-retries/index.html
$ skillsaw walkthrough check skillsaw/walkthroughs/2026-12-02-fetch-with-retries/index.html (exit 1: 4 placeholder problems)$ rm skillsaw/walkthroughs/2026-12-02-fetch-with-retries/shots/failed-01-open.png
(wrote the lead, 'Before you start' and the interview record in index.html)$ skillsaw walkthrough build …/index.html && skillsaw walkthrough check …/index.html (ok)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries (second capture with no change: exit 0, 77 s, same 7 file names)$ skillsaw walkthrough build …/index.html --inline (copied as inline.html)$ skillsaw walkthrough build …/index.html && skillsaw walkthrough check …/index.html (ok)$ node <S>/examples/walk/tools/pagetest.mjs <out> (Playwright library script: tabs, results, exports, lightbox, screenshots)(changed straight quotation marks in steps.json to curved ones; no change to actions)$ skillsaw walkthrough build …/index.html --inline; skillsaw walkthrough build …/index.html; skillsaw walkthrough check …/index.html (ok)$ node <S>/examples/walk/tools/pagetest.mjs <out> (no errors)$ pkill -f 'walk/switchyard.*vite'; lsof -nP -iTCP:4327 -sTCP:LISTEN (the port is free)$ --- 2026-12-02, with the fixed CLI: the commands below made the pages of this folder ---
(changed steps.json to the current schema: `expected` is the screen of the screenshot, `expectedAfter` is the result of the `after` actions, `settle` is `animations` on the five steps that come after a change of state; removed the scroll action of step 1)$ skillsaw walkthrough profile set --navigation-timeout 180000 --action-timeout 10000 --start-timeout 180000
$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (exit 0; the port was free after it)$ skillsaw walkthrough capture skillsaw/walkthroughs/2026-12-02-fetch-with-retries --start (directly after the first one: exit 0; the same 7 files, byte for byte)$ skillsaw walkthrough build …/index.html --inline (copied as inline.html)$ skillsaw walkthrough build …/index.html; skillsaw walkthrough check …/index.html (ok)$ lsof -nP -iTCP:4327 -sTCP:LISTEN (the port is free)
<S> and <out> are the scratch folders of the run.
What we learned from this run
The capture ran 7 times until each screenshot was correct, and 3 of those runs failed. The
computer had a very high load, so each time is longer than usual. The run found 16 problems.
Fixed: the first page load of a dev server took 70 seconds, and the limit was 10.
The capture failed three times with a time limit error and a white screenshot. A page load
now has its own limit, walkthrough.navigationTimeout, with a default of 60 seconds.
Fixed: a second capture directly after the first one failed.
The CLI stopped the app, but the port was not free for 1 to 2 seconds. With
--start, the CLI now stops the app and its child processes, and the command
returns only when the port is free. Two captures in sequence passed in the rebuild.
Fixed: the screenshot of a step did not show its expected result.
The text did not say if "expected" was the result before or after the last action. A step
of the test script now has three parts: "Do this", "You see" and "Then". The screenshot
shows expected, and expectedAfter is the result of the action after it.
Two captures are the same, byte for byte, only with settle on each step after a change of the screen.
In the first run, one of seven files had 3,933 different pixels, because the app marks a
transition for a short time. With settle on one step, a different file
changed. With four steps, one of three captures differed. With five of the seven steps,
four captures gave the same 7 files. A step can also wait for a state, and the capture
puts the highlight in the centre of the picture.
One capture gave screenshots with no styles, and it reported ok. Fixed.
In the rebuild, one of ten captures showed the app in the default browser style. A second
heavy job ran at that time, and the dev server had not put the CSS into the page. The
capture now waits for each stylesheet before a screenshot. A stylesheet that does not load
fails the step and names the stylesheet. The capture also waits for animations to end
before each screenshot, so settle is now the default for each step. Look at
each screenshot after a capture: a tool cannot see a wrong state.
The walkthrough found an error in the subject.
The text of the switchyard guide says to clear a checkbox after three retries. The machine
permits no retry after the third. The walkthrough clears it after the first retry and has
a warning for the user.
Not done in these runs: phone screenshots of the app, and the options --headed, --step and --save-state.
Config keys
All keys are optional. The livery keys apply to each page.
Key
Default
Meaning
Who reads it
docs.walkthrough
docs/walkthroughs
The folder of the walkthroughs.
CLI
walkthrough.baseUrl
empty
The address of the app. The capture needs it.
CLI: src/walkthrough/profile.ts. Write with walkthrough profile set --base-url.
walkthrough.start
[]
The start command, as a list of the program and its arguments. It has no shell: && is not permitted.
CLI. --start-command.
walkthrough.startTimeout
60000
The time that capture --start waits for the app, in milliseconds.
CLI. --start-timeout.
walkthrough.actionTimeout
10000
The time limit of one action, in milliseconds.
CLI. --action-timeout.
walkthrough.navigationTimeout
60000
The time limit of one page load (goto), in milliseconds.
CLI. --navigation-timeout.
walkthrough.settle
animations
The wait before each screenshot, for a step with no settle: animations, milliseconds, or 0 for no wait.
CLI. --settle.
walkthrough.signIn
none
none, steps or storage-state.
CLI. --sign-in.
walkthrough.storageState
empty
The path of the storage state file. Git must ignore it.