screenshots
Skill9 starsChanged 12 days agoMITView on GitHub
Show how a pull request in hyperstructure/fctl changes the way fctl looks, with screenshots in its description. Covers which changes need them, before and after or only after, taking them with Playwright against `cargo xtask dev`, attaching them with `gh pr edit --attach` or, in an fctl session, publishing them with `fctl publish` (never committing them), and replacing them when a later commit changes what they show. Use when a change affects what people see in the web app (a new `@hyperstructure/design` tag included), when opening its pull request, and whenever you push a commit that changes something its screenshots show.
- Installs packages
21 other projects use a version of this.
Adopted by
Most recently taken up by
- gromov0737/skillstheir own version, first seen Nov 29, 2026
- odahcam/hangartheir own version, first seen Nov 29, 2026
- bloknayrb/tandemtheir own version, first seen Nov 29, 2026
- kashaziz/claude-skillstheir own version, first seen Nov 16, 2026
- AtilaMedeiros/skillstheir own version, first seen Nov 16, 2026
- yicheng47/runnertheir own version, first seen Nov 8, 2026
Other versions21 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 21
- tabler/tabler★ 42ksame name
- artsy/eigen★ 3.8ksame name
- d4rken-org/permission-pilot★ 694same name
- pablopunk/SwiftShift★ 668same name
- yicheng47/runner★ 584same name
- bloknayrb/tandem★ 30same name
- xfstudio/skills★ 9same name
- solo-ist/prose★ 8same name
- keinstn/drover★ 5same name
- moasq/ios-dev-agent★ 4same name
11 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- commitSkill
- demoSkill
- issuesSkill
- pull-requestsSkill
- releaseSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 21 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Never commit screenshots, to this or any repository.
- Distinctive: line 28
Before and after: when the change alters something that exists: a restyle, a layout fix, new copy in place.
- Very specific: line 63
Run cargo xtask dev (in a fresh sandbox it needs worker-build first:
- Very specific: line 106
Look at every screenshot before you use it.
- Very specific: line 151
Use the links in place of the file names in the section above, keep your own alternative text, and edit the description without --attach:
“Common” is measured: kept by at least 6 in 10 of the 21 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Screenshots in pull requests
A pull request that changes how fctl looks shows it in its description, so reviewers see the change without running the branch. The screenshots show the pull request as it is now: when a later commit changes what one shows, replace it.
Never commit screenshots, to this or any repository. Keep them outside the
checkout, in ~/screenshots.
Screenshots for fctl.sh, social media or a talk, rather than a pull request,
show the made-up company and people of the demo skill.
Which changes
Anything people see in the web app (web/): layout, styles, components,
copy, icons, empty and error states, and a new tag of
@hyperstructure/design. Not changes nobody sees. For a change to CLI
output, paste the output in a code block instead.
Before and after, or after
- Before and after when the change alters something that exists: a restyle, a layout fix, new copy in place. Take both at the same size, theme and data, so the change is the only difference.
- After alone when there is nothing to compare with: a new page, dialog or state.
Show the part that changed, with enough around it to place it. Show both themes unless the change looks the same in each, and a phone width (390 px) when it affects layout. A few screenshots that show the change beat a dozen that repeat it.
Take the before screenshots before you change anything. Afterwards, run
main from a worktree beside your branch, against the same control plane:
git worktree add ~/before origin/main && cd ~/before && npm ci
npm run dev --workspace web -- --port 5175 # main's web app at http://localhost:5175Taking them
Once per sandbox, install Playwright beside the screenshots. The default sandbox image has Playwright with its headless Chromium and the system libraries it needs: install the image's version, whose browser is there. In an image without Playwright, install it with Chromium:
mkdir -p ~/screenshots && cd ~/screenshots && npm init -y >/dev/null
if command -v playwright >/dev/null; then
npm install "playwright@$(playwright --version | cut -d' ' -f2)"
else
npm install playwright && npx playwright install --with-deps chromium # sudo installs its system libraries
fiRun cargo xtask dev (in a fresh sandbox it needs worker-build first:
#41), and make what you want to show with the CLI and fake-claude
(docs/development.md): with FCTL_SERVER and FCTL_TOKEN set,
cargo run -p fctl -- run -d -p playground "write notes.md" starts a
session. Save this as ~/screenshots/shoot.mjs. It signs in as the dev
owner, asks for reduced motion and seeds Math.random, so the WebGL scenes
hold still and draw the same frame on every load: before and after differ
only where your change does.
// node shoot.mjs URL OUT.png [light|dark] [WIDTHxHEIGHT]
import { chromium } from "playwright";
const [url, out, colorScheme = "light", size = "1440x900"] = process.argv.slice(2);
const [width, height] = size.split("x").map(Number);
const browser = await chromium.launch();
const page = await browser.newPage({ colorScheme, reducedMotion: "reduce", viewport: { width, height } });
await page.addInitScript(() => {
let seed = 42;
Math.random = () => (seed = (seed * 16807) % 2147483647) / 2147483647;
});
await page.goto(new URL("/login", url).href);
await page.fill("input[type=email]", "dev@fctl.test");
await page.fill("input[type=password]", "fctl-dev-password");
await page.click("button[type=submit]");
await page.waitForURL((u) => u.pathname !== "/login");
await page.goto(url, { waitUntil: "networkidle" });
await page.screenshot({ path: out });
await browser.close();cd ~/screenshots
node shoot.mjs http://localhost:5175/p/playground before-light.png
node shoot.mjs http://localhost:5173/p/playground after-light.png
node shoot.mjs http://localhost:5173/p/playground after-dark-390.png dark 390x844For one element, use page.locator(…).screenshot(); for a hover, a menu or
a dialog, act on the page first. When the change is motion, record it
(recordVideo in newPage) and attach the .webm, or in an fctl session an
animated WebP made from it (below).
Look at every screenshot before you use it. If npm ci couldn't fetch
@hyperstructure/design, the colors and fonts are a stand-in: say so under
them. Show only the dev stack's data, never tokens, secrets or people's
details.
Attaching them
gh 2.99 and newer uploads images and videos with --attach, as dragging
them into GitHub's editor does, and points references to those files in the
body at the uploads. Open the pull request, then add the screenshots from
~/screenshots:
cd ~/screenshots
gh pr view N -R hyperstructure/fctl --json body --jq .body > pr.md
# add the section below to pr.md
gh pr edit N -R hyperstructure/fctl --body-file pr.md \
--attach before-light.png --attach after-light.pngReference each file by name with Markdown image syntax (gh doesn't rewrite
<img> tags), and say which commit the screenshots show:
## Screenshots
At abc1234: the project page in the light theme, 1440 px wide.
| Before | After |
|---|---|
|  |  |In an fctl session, --attach fails with "unsupported authentication type":
sessions have the GitHub App's token, and GitHub accepts uploads only with a
person's (#40). Publish them on fctl instead, if the project publishes
screenshots (~/AGENTS.md says so):
cd ~/screenshots
fctl publish before-light.png after-light.pngIt prints Markdown for each, like
.
Use the links in place of the file names in the section above, keep your own
alternative text, and edit the description without --attach:
gh pr edit N -R hyperstructure/fctl --body-file pr.mdAnyone who has a link can open it until it expires (after 30 days unless the
project chooses otherwise), so the dev stack's data is all they may show. If
fctl publish says the project doesn't publish screenshots, look at them
anyway, describe what they show in the description, and say that the session
can't attach them. Don't commit them instead.
fctl publish takes images, not videos: turn a recording into an animated
WebP and publish that. -ss and -t keep the seconds that show the change.
Three seconds at 12 frames a second and 800 px wide come to about 1 MB, well
under the 5 MB limit. The default sandbox image has ffmpeg; elsewhere,
sudo apt-get update && sudo apt-get install -y ffmpeg first:
ffmpeg -ss 1 -t 3 -i recording.webm -vf "fps=12,scale=800:-1" \
-c:v libwebp_anim -q:v 60 -loop 0 after.webp
fctl publish after.webpKeeping them current
The screenshots show the pull request's newest commit. When a later commit
changes what one shows (a review fix, a tweak, main merged in with changes
to the same screen, a new design tag), take it again and replace it in the
same turn: nothing wakes the session afterwards.
git diff --stat abc1234 HEAD -- web/ package-lock.json # what changed since the screenshots
cd ~/screenshots
gh pr view N -R hyperstructure/fctl --json body --jq .body > pr.md
# point the changed image at its file again, , and update "At abc1234"
gh pr edit N -R hyperstructure/fctl --body-file pr.md --attach after-light.pngIn a session, publish the new screenshot and point the image at its link instead. Replace the old image rather than adding the new one under it; GitHub keeps earlier versions of the description in its edit history. Before you end a turn that pushed commits, check that the screenshots still match.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

