use-vishot-with-electron
Skill by moeru-ai
Captures deterministic screenshots of Electron application windows using Vishot. Built for developers who need to select and capture specific renderer windows without relying on window creation order or agent-browser.
Install use-vishot-with-electron
Built from the published package, never by AI.
git clone --depth 1 https://github.com/moeru-ai/airi /tmp/airi && mkdir -p ~/.claude/skills && cp -r /tmp/airi/.agents/skills/use-vishot-with-electron ~/.claude/skills/use-vishot-with-electronRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install use-vishot-with-electron in Claude Code
git clone --depth 1 https://github.com/moeru-ai/airi /tmp/airi && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/airi/.agents/skills/use-vishot-with-electron ~/.gemini/antigravity-cli/skills/use-vishot-with-electronAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install use-vishot-with-electron in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Use Vishot with Electron is a skill for capturing one or more renderer windows from an Electron application in a repeatable way. It guides the assistant to identify the Electron package, the built main entrypoint, the requested window and state, and the output directory, then run `vishot capture --target electron`. It covers direct window capture as well as product-owned scenarios built with `defineScenario`.
The skill stresses selecting windows by stable URL or hash route, title, and a state-specific visible locator, rather than by creation order, since startup can open DevTools, splash, onboarding, or hidden windows first. It also covers resizing the native BrowserWindow with `setContentSize`, waiting for readiness before capture, and inspecting every screenshot. It is intended for developers who need consistent screenshots of Electron apps, such as the AIRI project referenced in the source.
Written from the project's SKILL.md and checked against it.
What it can do
- Identify target windowSelects a window by URL or hash route, title, and a visible locator instead of creation order.
- Prepare the applicationChecks for a built Electron main entrypoint and builds the app when it is missing or stale.
- Run Vishot captureRuns vishot capture with the electron target, either directly or through a product scenario.
- Resize native windowSets the BrowserWindow content size through Playwright's Electron handle for deterministic output.
- Handle state machine controlsChecks whether a child control is visible before expanding or collapsing a toggle surface.
- Verify screenshotsInspects each screenshot to confirm it shows the intended window and state.
- Set Electron executable pathPasses an absolute Electron binary path when Playwright cannot discover it through the package layout.
What you need
- An Electron application with a built main entrypoint
- Vishot available through pnpm exec
- Playwright
Try asking
- Capture the main window of my Electron app to an output folder.
- Use Vishot to screenshot the settings window at 1200 by 900 content size.
- Capture the onboarding state of my Electron app with a 2500 ms settle delay.
Good to know
- Vishot has no default settle delay, so --settle-ms must be passed.
- Do not use page.setViewportSize() to resize an Electron window.
- Product routes, selectors, and scenarios belong in the product repository, not in this skill.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/use-vishot-with-electron/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml209 B
Alternatives to use-vishot-with-electron
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
use-vishot-with-electron: common questions
How does it choose the right Electron window?
It matches a stable URL or hash route, title, and a state-specific visible locator across the app's windows. If no exact match appears, it fails instead of silently using another window.
Why not just capture the first Electron window?
electronApp.firstWindow() reflects creation order, and startup may create DevTools, splash, onboarding, or hidden windows before the intended one.
Which resize method should I use for an Electron capture?
Use BrowserWindow.setContentSize() when the dimensions describe the renderer content. page.setViewportSize() does not resize the native window, so the visible window and screenshot can disagree.
How do I install use-vishot-with-electron?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is use-vishot-with-electron free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is use-vishot-with-electron safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to use-vishot-with-electron?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
