~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

Guides show the console a step at a time, checked against it as drawn

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:docs/guides

What changes

Guides. docs/ gets a fourth kind of page: docs/guides/, which shows how to do one thing in the console, step by step, with a picture of each screen. On the docs site the guides come first in the sidebar. There are five:

  • Starting a group: signing in, the new-group form (a taken address included), the group's page, and adding words, pictures and a link in settings.
  • Rules and roles: adding and deleting rules, what each permission lets a role do, creating a role, and giving it to a member.
  • Moderating: the queue and its tabs, escalating, labelling and taking down (the !takedown label), removing a member, and resolving.
  • Signing in as a group in another app: creating an app password, and what to type into the other app (the host's address, the group's handle, the password). It also covers what the app can do as the group, where its writes show, and revoking it. It says plainly that a bot or script can post, but the host doesn't serve the feed a Bluesky client reads.
  • Adding a recovery key: why to add one, making a key in a terminal, and adding and removing it.

Pictures drawn, never taken. In a guide, every picture has a look line just above it, <!-- look /g/... --as alice --click ... -->. just shots (harness/shots.mjs) runs those lines through just look over a fresh world for each guide, in page order. What an earlier line does is still there for the later ones: the form that starts the group, a seed, a link added. Each picture is drawn as shots/<name>.png and shots/<name>-dark.png, and the site serves whichever matches the reader's colour scheme (remarkShots in docs-site/plugins.mjs). just docs fails in four cases: a picture with no look line, a look line with no picture, a picture with no dark version, and a picture no guide shows.

The guides skill (.claude/skills/guides) is the docs skill's method applied to the console. An agent walks the flow with just look and writes down every screen's words exactly as drawn, plus what the code says and the matching command. A fresh agent then writes the guide from that walk alone. The pictures are drawn again and checked against the words. Last, a fresh agent reads the guide as its reader would. Things that look wrong in the console go to the ui skill or into issues, not into the guide. The skill comes with briefs for the walker and the writer, and a list of the guides still to write, with their questions.

The guides are checked against the console. Each picture also keeps its text, shots/<name>.txt: the page's accessibility tree, with times, DIDs, keys, ports and new passwords as placeholders. just shots --check draws every guide again over fresh worlds and compares only that text. The e2e check runs it, so a console change that moves a guide's flow fails its pull until the guide is drawn again. just docs also fails a word a guide puts in bold, as on screen, when no guide's picture shows it. That catches a guide naming a button that has since been renamed, without drawing anything.

just look draws every scheme from one page. A size's clicks and typing now run once, and each scheme is shot from that page with emulateMedia. Before, --light --dark ran a form-sending step twice, which added a link twice. It takes --text, which writes what a picture shows as text beside it. There are new seeds for the guides: bookclub-pictures (look cannot choose a file), riders-members, moderating (a group with a moderator and two reports, made as an app would), nightshift-apps and nightshift-poster.

Why

The docs explained why and listed what, but nothing showed a person running a group what to press. Pictures taken by hand go stale as soon as the console changes. When they are drawn from a line kept in the page, just shots brings a guide back up to date, and the check notices a missing or orphaned picture. Writing the guide from a walk of the console as drawn, rather than from the code, keeps its words the ones on screen.

How it was checked

  • just shots over fresh worlds: 44 pictures across the five guides, each form sent once. Then just shots --check over new fresh worlds: every picture's text the same, once the host's own key became a placeholder and the members list was cropped to one row (it has no set order).
  • The check caught a real change on its first day. Merging main brought in "The console reads well on a phone", which moved members' Roles and Remove into a ⋯ menu, renamed the first join option and shortened the picture buttons. just shots --check named the three guides it touched, with four look lines that no longer drew and four pages that had changed. just docs also flagged the old join option's words. The look lines and words were fixed, the guides drawn again, and the check passes: 44 pictures as they were. Merging main again brought in forms that say "Saved". The check named the one picture it changed, the save step in "Starting a group", and that step now says so.
  • In CI, the guides step drew all 44 pictures as they were, then waited on what a world left open until the job's half hour ran out. It now exits when done, stops each world within a minute, and has a 20-minute step limit. With that, all six checks pass.
  • just docs: 25 pages, no problems. Also checked that it fails a missing picture, a missing dark version, a stray look line, a missing text record, and a bold word no picture shows (it found five, reworded).
  • The docs site built, and the guide drawn there in both schemes. The steps keep numbering past the pictures inside them, and the dark scheme shows the dark pictures.
  • A fresh agent read each guide as someone running a group would, and its findings were fixed.

Shortcomings

  • The pictures live in git as PNGs, about 3.4 MB for the five guides. Running just shots again rewrites them even when nothing changed, because times and the generated pictures differ from run to run.
  • The check compares text, not pixels, so a change to only colour or spacing doesn't fail it. The pictures are then a little out of date, which a reader can live with.
  • The e2e check gets longer by the time it takes to draw the guides (a fresh world for each, a minute or so apiece).
  • The site is still the private repository's. A public site for the guides is a separate decision.
  • The walks found things in the console that look wrong, listed for issues to be filed rather than written around:
    • The console offers no way to report anything, or to edit or reorder a rule.
    • The moderation queue shows raw DIDs.
    • Roles made with opensocial role set can't be given to anyone.
    • App passwords have no Copy button, and the Apps tab doesn't say which server to type.
    • The host's own error wording reaches the page in several places.

Review

The design is worth a look. Start at .claude/skills/guides/SKILL.md, then harness/shots.mjs, then the guide as the site draws it.

🤖 Generated with Claude Code

Approved

This adds docs/guides/ with a first guide, "Starting a group". It also adds harness/shots.mjs, which draws each picture from the <!-- look ... --> line above it, and the remarkShots plugin that serves the light or dark picture. Alongside those come the guides skill, just look drawing every scheme from one page, and the bookclub-pictures seed. I found nothing that must change.

  • harness/shots.mjs, harness/docs.mjs, docs-site/plugins.mjs, docs-site/content.mjs: the checks for a missing picture, a missing dark version and a picture no guide shows are sound. The look-line parsing and the dark-scheme <picture> output look right.
  • harness/look/look.mjs: running clicks and typing once per size and switching schemes with emulateMedia fixes the double-submit. I did not run it.
  • Not read: I did not open the guide's prose, the skill briefs, the PNGs or the AGENTS.md and docs edits. I judged the harness and site code only.

The pull's own notes already name the two weak spots: PNG churn on every just shots run, and no CI check that the pictures are current. Both are acceptable for now.

Approved

This round adds the four other guides (rules and roles, moderating, signing in as a group, recovery keys). It also adds a text record beside each picture, just shots --check, a bold-word check in harness/docs.mjs, and the new seeds. The e2e workflow now runs the check as a guides step. I found nothing that must change.

  • harness/shots.mjs and harness/docs.mjs: shots.mjs --check compares only the settled text and writes nothing. A look line that no longer draws is collected, so one run names every stale guide. The orphan, missing-dark, missing-text and bold-word checks read right. Importing shots.mjs from docs.mjs is safe because main only runs when the file is the entry point.
  • harness/look/look.mjs: --text writes the page's accessibility snapshot once per size. The scheme loop uses emulateMedia on one page, so a sent form is sent once.
  • e2e.yml and Justfile: the guides step runs after flows, and cargo build now includes opensocial. The workflow's paths now include docs/guides/**, harness/look/** and harness/shots.mjs, so a guide or look change triggers the check.
  • Checks: web, test, check and docs pass at this head. e2e was still running when I looked, so the new guides step has not shown a result here.
  • Not read: I did not open the five guides' prose, the skill briefs (.claude/skills/guides/*), the other .claude/skills and AGENTS.md edits, the docs-site changes, the docs/*.md edits, the new seeds, or the PNG and .txt files under docs/guides/shots. The docs check covers their links and bold words, but I judged only the harness and workflow code.

I would not merge until e2e finishes green, since that step is what keeps the guides current.

Approved

This round changes one thing: harness/look/seeds/bookclub-pictures.mjs now waits for the Remove the avatar or Remove the banner button, up to 30 seconds, instead of networkidle. That is the right fix for the race the previous head's e2e run hit. That run's guides step failed with exit 2 after about 4 minutes. I didn't read its log, so I'm assuming this commit answers that failure. The button name matches ProfilePictures.svelte (aria-label "Remove the {slot}") and the recorded starting-pictures.txt. I found nothing that must change.

  • Checks at this head: check, web, docs and lexicons pass. test and e2e were still running when I looked, so the guides step hasn't passed here yet.
  • Not read: I read only this round's diff. I did not open the guides' prose, PNGs or .txt files, the skill briefs, or the earlier harness code again.

Please wait for e2e to pass before merging, because that step is what keeps the guides current.

Approved

This round only rewrites the openings of the five guides, and the matching rule in .claude/skills/guides/writer.md. Each guide now has a short "This guide shows you how to…" paragraph, then a ## Before you begin section. I found nothing that must change.

  • Bold words: the changes are prose only. They add no bold words, pictures or look lines, so the just docs bold-word check and the just shots --check text records are unaffected.
  • Skill brief: writer.md now asks for the same shape the guides use, so a fresh guide will match them.
  • Checks: all of this head's checks (web, test, e2e, docs, check) were still queued, except lexicons, which was skipped. The guides step in e2e has not run at this head. It also hasn't passed at any earlier head I saw. Please wait for e2e to pass before merging.
  • Not read: I read only this round's diff, and did not reread the harness, PNGs or .txt records.
Dismissed

Since my last review, this head adds one commit of its own and merges main. The commit makes the guides step exit when it is done. I found nothing that must change.

  • harness/shots.mjs: main now ends with process.exit(0) on success and process.exit(2) on error. That stops a leftover handle from a world holding the job open. A world is sent SIGTERM, then SIGKILL after 60 seconds if it has not exited, with the timer cleared on exit. This is sound. docs.mjs imports the file and is not affected, because main only runs when the file is the entry point.
  • e2e.yml: the guides step now has timeout: 20. The commit message says the step limit is twenty, which I take to mean minutes, as I didn't confirm the unit. That is a better bound than the job's half hour.
  • Merge of main: main's SaveBar change alters the profile and visibility forms (a "Saved" or "Unsaved changes" status line, and a Save button that turns primary). This can change recorded accessibility text, for example in the starting-a-group pictures that save the profile. I did not recheck the .txt records against it. just shots --check in e2e is what catches that.
  • Checks: at this head lexicons was skipped, and web, test, e2e, docs and check were all still queued. The guides step has not yet passed at any head I saw, so please wait for e2e to go green before merging. If it flags a changed page after the merge, draw that guide again with just shots.
  • Not read: I read only this round's own diff. I did not reread the guides' prose, PNGs or .txt records, or the merged SaveBar code.

already approved

Merged as ade7b9d