preview
БесплатноЗапускает вложенные скриптыНе проверенRecord and render TrueSheet preview animations for the README, docs, and blog — drive the bare example on the iOS simulator, Android emulator, iPad, or mobile…
от lodev09★ 2 115 звёзд на GitHubОб этом скилле
Preview
Previews are scripted screen recordings of the example app, rendered by scripts/render.sh into:
| File | Used by | Look |
|---|---|---|
<name>-light.gif, <name>-dark.gif |
README (GitHub) | Device frame and shadow, matted to GitHub's white and #0d1117 pages |
<name>.mp4 |
Docs and blog | Plain screen; the docs frame it with CSS, so it fits both themes |
GIF has no soft transparency, so each theme gets its own GIF and the README picks one with <picture>. Files go in docs/public/img/previews/.
Read argent-device-interact and argent-screen-recording before driving a device.
1. Prepare
Release build
Record a Release build of the bare example: no Metro, no LogBox or dev overlays, and production-speed JS, so animations don't drop frames. MapScreen's on-screen event log renders only in __DEV__, so it's gone too. The JS bundle is baked in at build time: make any example change first, and rebuild after every JS change.
iOS, from example/bare/ios (then install build/Build/Products/Release-iphonesimulator/TrueSheetExample.app with argent reinstall-app):
xcodebuild -workspace TrueSheetExample.xcworkspace -scheme TrueSheetExample \
-configuration Release -destination 'id=<UDID>' -derivedDataPath build build \
> /tmp/truesheet-xcodebuild-release.log 2>&1; echo "EXIT $?"
Android, from example/bare/android, with the emulator booted on the hardware GPU (e2e skill §1). Release is signed with the debug keystore, so this builds and installs in one step (about 3 min clean). Gradle only watches example/bare for the JS bundle and calls it up to date after an example/shared edit, so always rerun the bundle task:
./gradlew app:createBundleReleaseJsAndAssets --rerun app:installRelease -PreactNativeArchitectures=arm64-v8a
Device
Every preview uses the same clean state: 9:41, full battery, dark appearance, no watermark, no debug overlays. Touch markers stay on so viewers see where each tap and drag lands.
iOS simulator:
xcrun simctl status_bar <UDID> override --time 9:41 --batteryState charged --batteryLevel 100 \
--cellularMode active --cellularBars 4 --wifiBars 3 --dataNetwork wifi
xcrun simctl ui <UDID> appearance dark
Android emulator:
adb shell settings put global sysui_demo_allowed 1
adb shell am broadcast -a com.android.systemui.demo -e command enter
adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm 0941
adb shell am broadcast -a com.android.systemui.demo -e command battery -e level 100 -e plugged false
adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi show -e level 4 -e fully true
adb shell am broadcast -a com.android.systemui.demo -e command network -e mobile hide
adb shell am broadcast -a com.android.systemui.demo -e command notifications -e visible false
adb shell cmd uimode night yes
fully true drops the Wi-Fi "no internet" mark. The mobile icon is hidden because the emulator ignores the demo datatype and always shows "3G". Run these through bash -c from zsh: zsh doesn't split an adb -s <serial> shell stored in a variable.
Both:
argent disable video-watermark(global flag, re-enable in §5).- iPad: rotate to the orientation you want before recording. In landscape, the simulator still records the portrait framebuffer with the UI turned 90°, and
describeframes and gestures use those raw axes (afterLandscapeLeft, UI up is +x). Turn the recording upright before rendering (ffmpeg -i <rec> -vf transpose=2 -crf 12 <upright.mp4>forLandscapeLeft), and turn the mask the same way:sips -s format png --resampleWidth <portrait width> <mask.pdf> --out mask.png, thenmagick mask.png -rotate -90 mask-landscape.png. - Web: serve the expo example and open it in iOS Simulator Safari (
e2eskill,references/web.md). Safari's toolbar stays in the shot.
2. Record
launch-app(orrestart-app) so the scene starts from a known state, then wait ~2 s: a swipe right after launch is often ignored.- Find targets with
describe. Coordinates differ per device, so never reuse them across devices. - Dry-run the steps once without recording, then
restart-app. screen-recording-startwithshowTouches: true(the default) and atimeLimitSecondsa little over the scene. Set the stop reminder the recording skill requires. Argent draws a pulse for each tap and a trail for each swipe into the video, only for the gestures it drives, so every step of the scene has to go through argent. Don't also turn on Android's ownshow_touches: it would draw a second marker.- Drive the whole scene in one
run-sequence. Keep it brisk: adelayMsof 800–900 after each step, about 450 between
Установить preview в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл preview?
Record and render TrueSheet preview animations for the README, docs, and blog — drive the bare example on the iOS simulator, Android emulator, iPad, or mobile Safari with argent, record a clean screen capture, and render it into a light/dark GIF pair framed in a device for GitHub and a plain MP4 for the docs. Use when asked to create, update, or re-record a preview, demo GIF, feature GIF, or blog animation, or when a preview looks outdated or bad in dark mode.
Как установить скилл preview?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл preview запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic