AIRI is a self-hosted virtual AI companion that gives an AI character a voice, visual presence, memory, and the ability to interact with games and coding activity. People use it as a personal digital companion on the web, macOS, or Windows, including for voice chat and gameplay. The catalogue add-ons provide workflows for working with the AIRI project.
Borrowing it
Nothing to install: this file belongs to moeru-ai/airi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/moeru-ai/airi/main/.agents/skills/use-vishot-with-electron/SKILL.mdgit clone --depth 1 https://github.com/moeru-ai/airiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/moeru-ai/airi/use-vishot-with-electron)<a href="https://agentmods.dev/skills/moeru-ai/airi/use-vishot-with-electron"><img src="https://agentmods.dev/badge/skills/moeru-ai/airi/use-vishot-with-electron/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/moeru-ai/airi/use-vishot-with-electron"><img src="https://agentmods.dev/badge/skills/moeru-ai/airi/use-vishot-with-electron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Snyk pass
- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00052 | $0.01435 |
| Opus 5 | $0.00026 | $0.00718 |
| Sonnet 5 | $0.00010 | $0.00287 |
| Haiku 4.5 | $0.00005 | $0.00144 |
Grade A, and why
use-vishot-with-electron scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Use Vishot with Electron
Keep product routes, selectors, window identities, and interaction scenarios in the product repository.
Workflow
-
Identify the Electron package, built main entrypoint, requested window and state, and output directory supplied by the caller.
-
Search for an existing
defineScenariomodule. In AIRI, start withpackages/scenarios-stage-tamagotchi-electron. -
Build the application when its main entrypoint is absent or stale. For a production/file renderer, wait for the repository build command to exit successfully. Pass
--settle-ms 2500so Vishot waits through Vite bundling or renderer reloads; Vishot intentionally has no default delay. -
Run the product scenario with
vishot capture --target electron. -
When no scenario is needed, use Vishot's direct window capture:
pnpm exec vishot capture \ --target electron \ --app-entrypoint ./path/to/electron-main.js \ --cwd . \ --window-url '#/' \ --settle-ms 2500 \ --output-dir /absolute/output/main -
Select a unique window with
--window-urlor--window-title. Omit both only when the first created window is intentionally the target. -
If Playwright cannot discover Electron through the package-manager layout, resolve the app package's Electron binary and pass its absolute path with
--electron-executable. -
For a non-default state, create a temporary product scenario or extend the existing product-owned scenario with Playwright actions. Do not add product selectors to this skill.
-
Inspect every screenshot and confirm it depicts the intended window and state.
-
Return its stable ID, title, window identity, and absolute path to
$use-vishotor the caller.
Window Sizing
Resize the native BrowserWindow through Playwright's Electron handle when a scenario needs a deterministic content size:
const size = { width: 1200, height: 900 }
const browserWindow = await electronApp.browserWindow(page)
try {
await browserWindow.evaluate((window, target) => {
window.setContentSize(target.width, target.height)
}, size)
}
finally {
await browserWindow.dispose()
}
await page.waitForFunction(target => (
globalThis.innerWidth === target.width
&& globalThis.innerHeight === target.height
), size)
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 103 lines · 52 tokens per session scan A ce7547ad587b
use-vishot-with-electron is a skill published in the GitHub repository moeru-ai/airi (49,050 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 1,435 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
claude_code
This document describes how a Claude Code agent (or any agent using the Claude Code CLI pattern) invokes the Seiðr-Smiðja forge through the Rúnstafr CLI bridge.
web-fetch
Fetch and extract readable content from web pages. Use for lightweight page access without browser automation.
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
pinchtab-mcp
Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.
azure-messaging-webpubsub-java
Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.
google-safe-browsing
Prevent and fix Google Safe Browsing "Dangerous site" flags. Use when launching a public web app, buying/picking a domain, building a login or signup page, or when any site shows a red "Dangerous site" / "Deceptive site" warning in Chrome, Brave, Safari, Firefox, or Edge. Triggers on "dangerous site", "deceptive…