Review Sheet
Overview
Turn several things that need the user's reaction into a local web page of cards. Each card holds one point. It is read aloud, the user presses a button if they want something other than "carry on", adds a note, a photo or a file if they want, and moves on. When they press Send, their answers land in a JSON file that you read back. One place to answer each point, and no wall of text in chat.
Two variants with the same input and output files:
- Card mode,
serve_review_cards.py, is the default. One card per screen, narration, live reload, highlighted changes, edit requests mid-review and attachments. Keyboard-first on a computer and touch-first on a phone. - Scroll mode,
serve_review.py, is one plain scrolling page. Use it only if the user asks or narration would be unwelcome.
When to use
- A design, brief, plan or set of options has two or more items that each need the user's reaction.
- The user asked to comment on things in a UI.
- Not for a single question (just ask it) and not for documents meant for other people (write the document, then use a sheet to review it).
The round loop
- Write the items JSON in a scratch folder. It has a
titleanditems, plus optionalsource,color,recapandintro. Each item hasid,heading,body(HTML) and an optionalask(one short question). Every question you want answered goes in anask, never in chat. When the answer depends on something the user can only see after pressing Send, such as whether the next round arrives at the same link, either let them try it first (the hub's practice thread is made for this, so give its link) or ask in the next round, after they have seen it. The sheet opens on a cover in the project's colour showing the thread name, the title and the card count. The user may run several sessions at once and should know the thread from the colour alone, so leavesourceunset. It defaults to the name of the folder the session works in, which for a git worktree is the worktree's own folder, such aslink-inbox-processing. Set it only outside git or when that folder name is meaningless, and then use a plain readable name, never an abbreviation. Leavecolorunset too. The hub gives every thread name its own colour and keeps it, and no two threads in the inbox share one.recap(HTML, two or three sentences) is a reminder of where things stand and what changed since last round. It stays folded away until the user asks for it, so write it for someone returning the next morning, and never put questions in it. - Launch the server as the foreground command of its own background task.
python3 ~/.claude/skills/review-sheet/serve_review_cards.py items.json --out round1.json --openIf the user reads on a phone (their instructions may say so), add--lanso a phone on the same Wi-Fi can open it, or--phoneif they use Tailscale (it works away from home too, and prints the Tailscale name so one link opens on both). Give the user the full printed link, including the?t=key, because the page refuses to open without it.--hostand--public-hostcover other setups. On a computer the page also has a Phone button that shows a QR code for the same link. Never start the server with&inside a compound command. The wrapper exits, the server is orphaned and you never hear when the user sends. IfREVIEW_SHEET_BROWSERis set,--openuses that browser. When you open a sheet link yourself, useopen -a "$REVIEW_SHEET_BROWSER" <link>, not the default browser. Other sessions may have their own sheets open on the same computer. To stop a sheet, stop your own background task. Neverpkillorkillallthe script by name, because that closes everyone else's sheets too. - If the command printed "Notes and edit requests wake this session by themselves", the hub's hooks are installed. Skip the listener below. Each note arrives as a message starting "Review Sheet: the user wrote", and you handle it the same way. Otherwise, straight after launching, start listening for edit requests, which arrive in
<items stem>.edit-requests.jsonl(printed at startup) while the user is still reviewing. Use a background task that ends on the next request, not a Monitor, because a Monitor expires after 30 minutes and requests then go unseen. Run this withrun_in_background(replace F with the printed path):F=<edit requests file>; touch "$F"; n=$(wc -l < "$F"); until [ "$(wc -l < "$F")" -gt "$n" ]; do sleep 1; done; tail -n +$((n+1)) "$F"When it finishes, apply the request (see Edit requests below), then start the same command again straight away. Keep it running across rounds and while you work on the next round. Keep it running after--finishtoo, for as long as your session lasts, because a finished thread has a Continue box. After the user sends, the page lets them add notes to you at any time. Those arrive as lines withcard_id__note: treat each one as a message from the user about this review and take it into account now. A note after--finishmeans the user wants to carry on: answer it with a new round in the same items file, not in chat. - Tell the user the sheet is open and end your turn. Do not repeat the items in chat.
- While the sheet is open, change it by editing the same items JSON file. The page reloads the content within two seconds and plays a soft ding. Verdicts, notes, attachments, the current card and playing audio all survive, and only cards whose text changed get new narration. Adding or removing cards does one clean page reload with everything restored.
- The server exits when the user presses Send. Read the out file. Each item has a
verdict(good,iterate,changeordrop) and acomment, and there is ageneralcomment. An item may carryattachmentsand the file may carrygeneral_attachments, both lists of absolute file paths stored in<out stem>.attachments/. Open every attachment before acting on its comment, because the photo or file is usually the point. - Act on every comment, using what each verdict means.
iterateis the default. A card the user did not touch sends as iterate, which means the card stands and you should develop it further next round.goodmeans done. Nothing more is wanted, and the notes box is disabled for it.changemeans the item stays but needs to be fundamentally different.dropmeans it goes.
- Later rounds show only what changed. Write the next round's items as just the cards that changed, plus any card a change ripples into. Never serve untouched, already approved cards again. Keep the same items file path and the same flags across rounds and give each round a new
--out(round2.json, round3.json). The next round then comes back at the same link, and the page the user left open loads it by itself, so say the next round is ready rather than sending a new link (still include the link in case they closed the tab). - When a round comes back all good, fold the approved copy back into whatever the sheet was drafted from, so the two cannot drift apart.
- A sheet the user has answered shows as "Claude is working" until you send the next round or finish. Never leave it there. After reading the answers, either send the next round soon or, if you are only replying in chat or the review is over, finish it. When the review is over (no more rounds), or you reply in chat instead of with another round, run
python3 ~/.claude/skills/review-sheet/serve_review_cards.py items.json --finishwith the same--lanor--phoneflag, as a background task. The page the user left open stops waiting and says the review is finished. It exits on its own within fifteen minutes.
The hub
If the user runs the hub (serve_review_cards.py --install-hub), every sheet from every session lands in one inbox at one link, and the user may never need the link you print. Nothing changes for you. The same command posts the sheet to the hub instead of serving it, prints the thread's link, writes edit requests and attachments to the same places, and exits when the user presses Send, exactly like a standalone sheet. --finish tells the hub the thread is finished. --lan and --phone are ignored while a hub is running, since the hub has its own address. --standalone serves a sheet on its own even when a hub is running. The hub keeps finished threads, with the user's answers, as searchable history.
Edit requests during a review
The pencil button (or the e key) opens a panel where the user asks for a change to the current card, or a general change from the first or last card. They can attach files to the request too. The request is added to the edit-requests file as a line {ts, card_id, text, attachments} and the card locks with a banner while the user keeps reviewing the others.
On each request, open any attachments, then apply the edit to the items JSON straight away. The reload dings, highlights the change and unlocks the card. Never answer an edit request only in chat, because the user is looking at the sheet. If no change is needed, say why in chat and tell them to press Dismiss on the banner. A card_id of __general locks nothing, so apply it wherever it belongs.
Highlighted changes
Anything changed since the version the user last saw is highlighted in amber, block by block, across reloads and new rounds. Headings and asks are highlighted too. This is why serving a changed card again is cheap, since the user only reads the amber.
Attachments
Every card, the last card and the edit panel have an attach button. On a phone it opens the camera, the photo library or files. On a computer the user can also paste a screenshot into a notes box or drop files on the card. Photos are shrunk to 2000 pixels on the long side. Files up to 50 MB are kept with their original names.
On a phone
Narration plays as the user reaches each card unless they turn off the Auto-play switch, which the browser remembers. Touch devices get large Back and Next buttons (Next becomes Send on the last card) and swiping between cards. Each card scrolls as one column, image grids stack, and the edit panel opens from the bottom of the screen. Progress is saved on every change, so a tab the phone reloads in the background comes back where it was. Adding ?touch=1 to the link forces touch mode for testing on a computer.
Keys on a computer
The list of shortcuts is hidden until the user presses the Keys button or ?.
- Space plays or pauses. A and S go back or ahead five seconds. Comma and full stop make it slower or faster.
- Arrows or J and K move between cards. Enter goes to the next card and sends from the last one.
- G, C and D set good, change or drop. The same key again clears it, which means keep going.
- N goes to the notes box and Escape leaves it. Shortcuts do nothing while typing.
- E opens the edit panel. Cmd+Enter sends the request and Escape closes it.
Writing the cards
- Plain English that a smart fifteen-year-old can follow. Swap jargon for plain words rather than defining it. Use complete sentences everywhere.
- Put the plain statement and the ask first (these are narrated). Put dense detail in
<div class="evidence no-audio">below it, which shows on screen but is never read aloud. - A term that names a specific thing (a person, a document, a product) can get
<span class="lookup" data-info="plain explanation">term</span>. It shows a dotted underline and a small popover when tapped, and is never read aloud. - Write for the ear. Say "nine days ago" or "this Wednesday" instead of raw dates.
- When a card asks the user to open, try or look at something, put the link on that card as
<a href="..." target="_blank">, with the full address in an evidence block too. Never say "open the link" without the link. - Pictures help. Bodies are HTML, so use
<img>tags or inline SVG. Grids stack on a phone automatically.
Narration
Each card's narration (heading, body without no-audio blocks, and ask) is made in the background when the server starts. The page opens at once and shows a generating state until it is ready. Audio is cached by its text, so unchanged cards are instant next time. It uses edge-tts through uvx (free, needs a network connection), then the macOS say voice. If neither works, the page reads the card with the browser's own voice. Set REVIEW_SHEET_TTS=browser to skip recorded narration entirely.
When things go wrong
- The user may close the tab without sending. Their progress is saved in the browser, so reopening the same link restores it. If the background task never exits, ask once, then stop it.
- The server stops if the computer sleeps (no out file). Send then falls back to copying the answers to the clipboard for pasting into the session, so nothing is lost.