airi: Skill for Codex

.agents/skills/use-vishot-with-electron/SKILL.md

use-vishot-with-electron is a skill for Codex from moeru-ai/airi. It costs 52 tokens per session (1,435 once invoked), scanned A, original, MIT.

A set of instructions for taking repeatable screenshots of Electron application windows with Vishot. Electron is a framework for desktop apps built with web technologies.

In plain words
What is it for?
Use it to capture a selected Electron window by its URL or title, either through an existing test scenario or a direct capture command.
Why use it?
Electron apps can open several windows, and their content may still be loading when a screenshot starts. These instructions identify the intended window, build the app when needed, and wait for it to settle.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents); mentions Codex; $skill-name invocation.

This is moeru-ai/airi's own configuration. It tells Codex how to work on airi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything airi configures →

About the project

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.

moeru-ai/airi · 49,050 stars · on GitHub · airi.moeru.ai

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/moeru-ai/airi/main/.agents/skills/use-vishot-with-electron/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/moeru-ai/airi

Made for: Codex.

Wrote 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.

agentmods badge for use-vishot-with-electron

README.md
[![agentmods](https://agentmods.dev/badge/skills/moeru-ai/airi/use-vishot-with-electron/github.svg)](https://agentmods.dev/skills/moeru-ai/airi/use-vishot-with-electron)
Your own site
<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.

agentmods 80×15 button for use-vishot-with-electron

Your own site · 80×15
<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>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 12d ago against content hash ce7547ad587b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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.

.agents/skills/use-vishot-with-electron/SKILL.md · 103 lines

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

  1. Identify the Electron package, built main entrypoint, requested window and state, and output directory supplied by the caller.

  2. Search for an existing defineScenario module. In AIRI, start with packages/scenarios-stage-tamagotchi-electron.

  3. 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 2500 so Vishot waits through Vite bundling or renderer reloads; Vishot intentionally has no default delay.

  4. Run the product scenario with vishot capture --target electron.

  5. 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
    
  6. Select a unique window with --window-url or --window-title. Omit both only when the first created window is intentionally the target.

  7. 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.

  8. 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.

  9. Inspect every screenshot and confirm it depicts the intended window and state.

  10. Return its stable ID, title, window identity, and absolute path to $use-vishot or 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)

Read the full file on GitHub · 103 lines

Files

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.

Changes

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.

  1. 12d ago First seen · 103 lines · 52 tokens per session scan A ce7547ad587b

Subscribe to this mod's changes

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.

Related

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.

hrabanazviking/Seidr-Smidja · 0 tokens

web-fetch

Fetch and extract readable content from web pages. Use for lightweight page access without browser automation.

waterfeet/DoroPet_V3 · 21 tokens

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…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

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.

pinchtab/pinchtab · 52 tokens

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.

microsoft/skills · 43 tokens

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…

davidondrej/skills · 105 tokens