Capture Ui
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install cherry-studio-capture-uiWhat this does: Take screenshots, GIFs, or videos of the running Cherry Studio app. Use when a task needs a still image or a recording of its UI.
Manual setup by platform
Claude Code
~/.claude/skills/cherry-studio-capture-ui/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
Capturing Cherry Studio UI
Get a verified CDP endpoint through cherry-electron-dev, which owns instance discovery and launch.
Capture through that endpoint: it reaches only the renderer, so the desktop and other windows stay
out of frame and focus stays where it is.
Capture with scripts/capture.mjs, run from the repository root so
@playwright/test resolves. It works on the main window; pass --target <url part> for another.
Find Elements
node .agents/skills/capture-ui/scripts/capture.mjs describe --port <cdp_port>
It lists each visible control with its role, name, and box in CSS pixels, after a line with the
viewport size and devicePixelRatio, and marks Tab stops. Take locators and clip areas from it.
Rows that share a box are a control and its wrapper, which a locator by name matches together.
Steps
Write the steps as a module outside the repository:
export default async ({ page, shot, annotate }) => {
await page.getByLabel('Chat', { exact: true }).click()
await shot('chat', { x: 0, y: 0, width: 680, height: 400 })
}
page is a Playwright Page, and shot(name, clip) saves <out>/<name>.png. Run them with:
node .agents/skills/capture-ui/scripts/capture.mjs run <steps.mjs> --port <cdp_port> --out <dir>
Screenshot
clip takes CSS pixels; the file comes out in device pixels (devicePixelRatio times larger).
Clip at capture time rather than cropping afterwards.
The shared ScrollArea hides its scrollbar 1.5 s after scrolling stops. To keep the thumb in a
still, scroll last and take the screenshot right after.
Annotations
To show what the screen does not, such as keyboard focus without a focus ring or the keys pressed,
use annotate:
annotate.followFocus()draws a box that follows keyboard focus.annotate.badge(text, at?)shows a label such as a key name, in the bottom right corner unless
atgives{ left, top }.
The overlays take no clicks or focus, stay hidden from assistive technology, and are removed when
the run ends. Any other overlay you add needs the same: pointer-events: none,
aria-hidden="true", no tabindex, and removal afterwards.
Window Size
For a state that depends on the window size, such as content that overflows only in a shorter
window, add --viewport <width>x<height> to run. It reflows the page without resizing the window,
keeps devicePixelRatio, and ends with the run.
GIF or Video
Add --record to run to record the steps, with the opening and closing states held on screen.
Then encode, cropping in CSS pixels as for clip:
node .agents/skills/capture-ui/scripts/capture.mjs encode <dir> <out>.gif --crop <x>,<y>,<w>,<h>
A GIF plays inline and loops, which suits a few seconds; an MP4 (<out>.mp4) plays in a player,
suits longer flows, and takes no alt text on GitHub.
Frames arrive only when the page repaints, so keep the window unminimized and on screen.
Both commands stop when ffmpeg is missing. Ask the user whether to install it, for example with
brew install ffmpeg on macOS, and record only after they decide.
Outside the Renderer
The Dock, native menus, notifications, and system dialogs are not in the renderer. Only macOS
screencapture reaches them, and it records the real screen, including whatever else is on it, and
may need the window in front. Ask the user before using it.
Check the Output
Open every image. For a recording, open the first and last frames that run prints, and check that
the two durations encode prints match, so a dropped or frozen capture is caught before anyone else
sees it.
Store captures where the calling workflow keeps its artifacts, or under .context/capture-ui/.
Security
Reviews (0)
Related skills
Browse all →More from Cherry Studio
View source →More Build skills
Browse category →Frequently asked questions about capture-ui
What does the capture-ui skill do?
Take screenshots, GIFs, or videos of the running Cherry Studio app. Use when a task needs a still image or a recording of its UI. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the capture-ui skill?
Run `npx @skills-hub-ai/cli install cherry-studio-capture-ui` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cherry-studio-capture-ui/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does capture-ui work with?
capture-ui runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the capture-ui skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use capture-ui after installing it?
In Claude Code, type `/cherry-studio-capture-ui` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the capture-ui skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.