Prove

walkthrough

A test script for QA, a help guide for users, or the two, from one capture of the real app. As an option, the same capture makes a narrated video.

Why this skill exists

"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.

  1. Read. The request, the capture profile, the PRD, the routes and the components of the flow, and the start command of the app.
  2. Interview. Who reads the document, which devices, and the profile questions if the repo has no profile.
  3. 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.
  4. Write the steps file. steps.json: one step for each thing that the reader must see. A step is one screenshot.
  5. Capture. The CLI runs the steps with Playwright and writes one screenshot for each step, with the element to use marked on it.
  6. Write the page, build and check. The lead, "Before you start" and the interview record. The build puts the steps into the page.
  7. 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.

    Source docs-app/app/components/demos/fetch-demo.gts, docs-app/app/machines/fetch.ts

  • Which command starts the app?

    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.

Readers Question 1 of 2

Who reads the walkthrough of the 'Fetch, with retries' demo in the Switchyard guide?

  • QA and end users Recommended Chosen

    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.

Devices Question 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 only Recommended Chosen

    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 walkthrough, liveOpen the full page · The index of the walkthroughs
The walkthrough in the light theme at 1280 px
Light, 1280 px
The walkthrough in the dark theme at 1280 px
Dark, 1280 px
The walkthrough on a phone at 390 px
Phone, 390 px

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.

The video of "Fetch, with retries"Open the page with its Video tab

What the video shows

How the voice is chosen

  1. walkthrough doctor shows ffmpeg, Playwright and each speech engine, with what to do. The CLI never installs a program.
  2. 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.
  3. 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.
  4. With no Piper, the CLI uses the system voice: say on macOS, espeak-ng on Linux. It tells you so.
  5. 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:

LevelThe voice says
briefThe action only, in one short sentence.
standardThe action and what the user sees. This video uses it.
detailedAlso 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.

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.

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.

KeyDefaultMeaningWho reads it
docs.walkthroughdocs/walkthroughsThe folder of the walkthroughs.CLI
walkthrough.baseUrlemptyThe 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.startTimeout60000The time that capture --start waits for the app, in milliseconds.CLI. --start-timeout.
walkthrough.actionTimeout10000The time limit of one action, in milliseconds.CLI. --action-timeout.
walkthrough.navigationTimeout60000The time limit of one page load (goto), in milliseconds.CLI. --navigation-timeout.
walkthrough.settleanimationsThe wait before each screenshot, for a step with no settle: animations, milliseconds, or 0 for no wait.CLI. --settle.
walkthrough.signInnonenone, steps or storage-state.CLI. --sign-in.
walkthrough.storageStateemptyThe path of the storage state file. Git must ignore it.CLI. --storage-state.
walkthrough.seedemptyText that says how to make the seed data.CLI. --seed.
walkthrough.viewportWidth, walkthrough.viewportHeight1280, 800The size of the screenshots.CLI. --viewport 1280x800.
walkthrough.deviceScale2The pixel scale of the screenshots.CLI. --scale.
walkthrough.localeen-USThe locale of the browser.CLI. --locale.
walkthrough.video.engineemptyThe speech engine of the video: piper, system, openai or elevenlabs. Empty: Piper, else the system voice.CLI: src/walkthrough/video/settings.ts. Write with walkthrough voice set --engine.
walkthrough.video.voiceemptyThe voice of the engine. Empty: for Piper en_US-ryan-medium when it is installed, else the first voice for the language.CLI. voice set --voice.
walkthrough.video.modelemptyThe model of a cloud engine. Empty: gpt-4o-mini-tts or eleven_multilingual_v2.CLI. voice set --model.
walkthrough.video.aidsall truepointer, highlight, zoom and bar: the visual aids of the video.CLI. walkthrough video set --aids pointer,highlight,zoom,bar.
walkthrough.video.cardstrueThe title card and the end card.CLI. walkthrough video set --cards or --no-cards.
walkthrough.video.pause600The silence after the narration of each step, in milliseconds (0 to 5000).CLI. walkthrough video set --pause MS.
walkthrough.video.cloudConsent[]One { "engine", "who", "date" } for each cloud engine that may get the narration text.CLI. walkthrough voice consent <engine>.
walkthrough.pronunciations{}A word, and how the voice says it. Only the text for the engine changes.CLI. walkthrough voice say <word> "<how>".