# dvn skill invocation packet

Skill: public/review-page
Status: STALE
Age: 600 seconds; source check: unavailable (SOURCE_UNAVAILABLE)

- devin-thomas/skills @ 4e48b69132901e3a6ec97b854d95d3d932ff01f6; verified 2026-12-02T21:31:51.940Z

Main source: review-page/SKILL.md
Main Git blob: c47f9a295856767a5f3a9f8cefa595ee071dcfc3

---
name: review-page
description: Put finished work on a phone-friendly review page where a person watches, listens or opens each item, marks it approved or needing changes with a note, and answers any decisions, then read those answers back. Use after producing videos, renders, images, audio, running apps, builds or files for a person to check, when asked to send work for review, or when a list of items needs the person's verdicts.
---

# Review Page

The kit `@uppercut-labs/review-page` turns a small JSON manifest into a page the reviewer opens on a phone, and serves it with an answers endpoint. Run its CLI as `npx @uppercut-labs/review-page@1 <command>`; this skill writes it as `review-page <command>`. The kit's README lists every manifest field and option, and wins over this skill wherever they differ.

## 1. Decide whether a page earns its place

Make a page when the reviewer has something to watch, hear, open or compare: videos, renders, images, audio, a running app or site, a build, a set of files. A one-line answer, a diff or a status update goes in a message instead. List each deliverable and each decision the work waits on.

Complete when every deliverable is named, each decision is written as a question, and the work is ready to look at.

## 2. Write the manifest

Create `review.json` in a folder that also holds the media (paths in `src`, `poster` and `downloads` are relative to it).

```json
{
  "id": "spring-promo",
  "title": "Spring promo cuts",
  "summary": "Three cuts of the promo, 60 fps. Approve the ones to publish.",
  "questions": [
    {"id": "caption-style", "prompt": "Which caption style?", "type": "choice",
     "options": [{"value": "bold", "label": "Bold", "detail": "Recommended"}, {"value": "plain", "label": "Plain"}],
     "default": "bold"}
  ],
  "items": [
    {"id": "cut-a", "kind": "video", "title": "Cut A", "src": "cut-a.mp4", "poster": "cut-a.jpg",
     "status": "Publishes Friday once approved", "facts": ["0:42", "1080x1920", "60 fps"]}
  ]
}
```

- **One item per deliverable**, `kind` one of `video`, `image`, `audio`, `link`, `file`. A `link` item takes `href` instead of `src`.
- **Questions only for real decisions** the work cannot continue without. Give each a `default` holding your recommendation, so one tap confirms it. Question types are `choice`, `multi` and `text`.
- **Status and facts decide the verdict**: say what happens after approval, what changed since the last round, duration, resolution, size. Use `sections` for tables, lists or text the reviewer may copy.
- **Plain text only.** Every string is rendered as text. Leave secrets, tokens and private paths out of the manifest and the media folder; anyone who can reach the page can read them.
- `id` is a URL-safe slug, unique on the machine that serves it.

Complete when `review-page build review.json --out <dir>` exits 0 and every `src`, `poster` and download file exists beside the page.

## 3. Build and serve on loopback

```sh
review-page build review.json --out <dir>
review-page serve <dir> --base /<id> --port <n>
```

Pick a free port and run the server in a named background session (a terminal multiplexer, a service unit) so you can stop exactly that one later. Record the session name, port and folder. The server listens on 127.0.0.1 and serves media with range requests, so videos seek.

Check from the same machine: the page `http://127.0.0.1:<n>/<id>/` returns 200, a media file requested with `Range: bytes=0-99` returns 206, and `/<id>/api/review` returns the manifest.

Complete when those three requests succeed.

## 4. Put a reverse proxy in front

The server has no sign-in. Whoever the proxy lets in can read the page and send answers, so choose the proxy for its audience:

- **Tailscale Serve**, a Tailscale feature that publishes a local service to the devices on one tailnet. Run `tailscale serve --bg --set-path /<id> http://127.0.0.1:<n>/<id>`, and see Tailscale's documentation (https://tailscale.com/kb/1242/tailscale-serve) for current flags and for removing the path later. Serve stays private to the tailnet; Tailscale Funnel makes a service public, so leave Funnel off.
- **Caddy or nginx** on a private network, or **a tunnel the person already uses**, forwarding the base path to the loopback port.

Publish publicly only when the person asked for a public page. The proxy must forward the base path unchanged, pass range requests, and send the Host header the server allows (the kit's `allowedHosts` option lists permitted names; add the proxy's name there if requests come back 403).

Complete when the URL the reviewer will use loads from a second device on the intended network, and a range request for a media file through that URL returns 206.

## 5. Send the link

Send the full URL by whatever channel the person reads on their phone. Say in one or two sentences what the page holds, how many questions wait at the top, and what happens after they answer. If the work is blocked on the answers, say so. When several pages are open, `review-page index pages.json --out <dir>` builds one index page from a list of `{id, title, url, host, created, updated, status, archived}`; send the index link alongside the page.

Complete when the person has a message with the working URL.

## 6. Read the answers back

The reviewer's Send button saves everything at once. Read it from the serving machine:

- `GET http://127.0.0.1:<n>/<id>/api/review` returns the manifest with the latest answers.
- `<dir>/answers.json` holds the latest answers; `<dir>/answers.jsonl` keeps every submission with its timestamp.

Answers hold `verdicts` (`approved` or `changes` per item id), `notes` per item id, and `answers` per question id. An item without a verdict is unreviewed; silence is not approval, and a page with no saved answers means the reviewer has not sent yet. Treat notes as the reviewer's feedback on the work.

Complete when every item and question is classified as answered, approved, needing changes, or unanswered.

## 7. Act on the verdicts

- **Approved**: do what the item's status said would happen.
- **Changes**: read the note, fix the work, and replace the file. Give a revised item a new `id` (`cut-a-v2`) and a status that says what changed, so the reviewer gives it a fresh verdict; earlier answers stay loaded for the ids that remain.
- **Unanswered**: ask again through the channel from section 5, once, and keep working on everything that does not depend on them.

After edits, run `build` again and keep the server running; reload shows the new page. Read the answers again after the next send.

Complete when every verdict has been acted on or reported as waiting.

## 8. Archive and stop

When the review is finished, the Archive control on the page (or `POST <base>/api/archive`) writes `archived: true` to `answers.json`; the page then shows a banner and stops accepting answers. Afterwards stop the server by the session name or PID you recorded (stop only what you started), remove the proxy path, and update the index. Keep the media and `answers.json`: archiving never deletes work.

Complete when the URL no longer serves, `answers.json` says archived, and the media and answers files remain.

## Completion checklist

- [ ] The page exists because there was something to look at, with one item per deliverable and a question only for each real decision.
- [ ] Build exits 0; page, range request and `/api/review` succeed on loopback.
- [ ] The reviewer's URL works from another device, reaches only the intended audience, and range requests succeed through it.
- [ ] The link was sent with what is waiting and what happens next.
- [ ] Answers were read from `/api/review` or `answers.json`, and every item is classified.
- [ ] Each verdict was acted on, or reported as waiting.
- [ ] After the review: archived, server stopped by recorded name, proxy path removed, media kept.
