gpui-screenshots
БесплатноБез исполняемых скриптовНе проверенUse whenever you need to see, click through, screenshot or measure the performance or power of the GPUI client (crates/but-gpui), to check a UI change works…
от gitbutlerapp★ 22 059 звёзд на GitHubОб этом скилле
crates/but-gpui/scripts/drive.sh builds the client with --features dev-script and runs it
from a script. The window never shows, the app stays out of the Dock and never takes the
user's keys, and it runs against app data of its own, so none of the user's projects or
settings are touched. Starting the app any other way opens a window on the user's screen.
A repository to show
The app writes to what it opens: GitButler's workspace, refs, the oplog. Never add the
checkout you're working in, or any repository of the user's. Make a throwaway one:
repo=$(mktemp -d)/repo
git init -q -b main "$repo"
git -C "$repo" -c user.name=Tester -c [email protected] commit -q --allow-empty -m "Initial commit"
echo hello > "$repo/notes.txt"
Build whatever state the change needs (branches, commits, uncommitted edits) with git here,
or later with sh steps, which run while the app watches.
Fixtures
- To try a real repository, use an APFS clone (
cp -c -R) with every remote pointed at a missing path, and copy sqlite files with their-waland-shm. Delete it afterwards. - Run
git update-index --really-refreshin every repository copied or extracted for a run. A fresh copy leaves its index entries racily clean, so status hashes every file on every read. - Adoption archives every linked worktree it finds the first time, so mark the project adopted before adding worktrees, or they vanish from the navigator.
- To show PRs offline, point
originat a GitHub URL, turn auto-fetch off, setvb_stack_heads.pr_numberand add the review toforge_reviews, as camelCase JSON with thestruct_versionfrombut-forge. One malformed row fails the whole workspace load. With no account the refresh fails before any request, which shows the stale state too. - To make an operation slow enough to race, turn on signing with a
gpg.programscript that sleeps, then prints a dummy signature. Keep the racing steps in one script run. - Try mesh failures with a fake
but-meshfirst on thePATH, which the app searches before~/.local/bin: one that sleeps tests the timeouts and that the project stays free for operations, and one that exits non-zero or prints garbage tests the fallbacks. A run's app data is its own but the mesh isn't: with the realbut-meshsigned in, a run reports its repositories to your mesh.
One run
Write a script, one command per line (src/dev.rs lists them all), and run it:
add /path/to/repo # the folder Add a repository would be given
wait 1000 # let the first loads land
shot /tmp/before.png
click 400 184 # window coordinates, see below
key cmd-k
type history
shot /tmp/after.png
crates/but-gpui/scripts/drive.sh run script.txt
It prints what the app reported (failed steps as script line N: …, prompts as PROMPT …,
warnings and errors) and where the app data and logs went. The run quits when the script
ends and is killed after --timeout seconds (300). Read the shots to check them.
A step at a time
To explore, or to find where to click from what's on screen:
crates/but-gpui/scripts/drive.sh start
crates/but-gpui/scripts/drive.sh step "add /path/to/repo" "wait 1000"
crates/but-gpui/scripts/drive.sh step "click 400 184" "key down"
crates/but-gpui/scripts/drive.sh stop
Each step runs its arguments as script lines, saves a shot, and prints its path (under
target/gpui-drive/shots) after anything the app reported and a KEYS line. A session quits
on its own after --timeout seconds (1800); always stop it when done. One session per
checkout.
Laying out the user's window
When the user asks to see a layout in the app they have open, don't drive it: lay it out with
crates/but-gpui/scripts/control.sh, which only works on a dev build started with
--features dev-script and takes only layout commands (src/dev/control.rs):
crates/but-gpui/scripts/control.sh "select Branches" "pick first" "files on"
It prints any command's error, then what's selected, what shows and the tiles. The same
commands go in a script after layout, as layout files on, to try them here first.
Where the keys go
KEYS Workspace > Navigator > TextInput says what typing reaches: here a text field in the
navigator. Check it before type or a single-letter key. In a list or the diff, letters run
shortcuts, so a query typed there makes branches (b), pushes (⇧P), or opens the user's editor
on their screen (e) instead. After add the navigator has the keys, so click
the field you mean first. In a run script, a keys line prints the same.
The command editor
Edit commands (key cmd-k, type edit commands, key enter) opens a second window. A
window other step sends what follows to it, shots too, and window main goes back, as closing
it does. It writes keys to a copy of the keymaps in the run's app data, never to the checkout.
Coordinates
The window is 1360×860
Установить gpui-screenshots в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл gpui-screenshots?
Use whenever you need to see, click through, screenshot or measure the performance or power of the GPUI client (crates/but-gpui), to check a UI change works, reproduce a UI bug, or show what a change looks like. Drives the app from a script in a window that never shows on the user's screen, against throwaway app data. Never start the app with `cargo run` or the plain binary to look at it.
Как установить скилл gpui-screenshots?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gpui-screenshots запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic