Check the changed behavior in the real Electron app with a short isolated probe, preserving user state and recording screenshots. Does not fix code or commit.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Runtime Test?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sinhyeokkang-runtime-test)
---
name: runtime-test
description: Check the changed behavior in the real Electron app with a short isolated probe, preserving user state and recording screenshots. Does not fix code or commit.
---
# Focused runtime verification
There is no screen-specific e2e suite (AGENTS.md 'Workflow' verification policy): check the changed behavior with a short real-app probe. Do not rebuild a full workflow suite or require unrelated screens to pass.
## Scope
1. Read the change and identify the actual behavior at risk. State the input/action, expected result and relevant failure/recovery case. Keep the probe bounded to that scope.
2. Reuse valid evidence for unaffected behavior. A changed implementation invalidates the checks it affects, not every prior runtime observation.
3. Build the app and temporary CLI when needed. Do not rebuild unchanged artifacts only to repeat a check.
## Run safely
- Write one-off probes under `.scratch/runtime-test/<task>/`; use Playwright `_electron` or native computer-use when OS behavior matters. Keep screen selectors and fixtures in the probe, not in the reusable foundation.
- Reuse the isolation, cleanup, real-state, desktop, window and clipboard helpers that `app/runtime/README.md` describes.
- Create a temporary parent directory, userData and repos. `isolatedEnv(userData, cli)` isolates the environment and writes the onboarding completion record, so first run does not open. Remove that record only when testing first run. Pass `--user-data-dir=<temp>` on every app launch and explicit temp repo/runtime paths to CLI calls.
- Run the `real-state.ts` before/after checks even when the behavior assertion fails. Close owned apps before deleting temporary files; retain fixtures if exit is unconfirmed. Never use real user setup targets for convenience.
- Check desktop availability before native interactions. DOM screenshots/focus do not establish native material, window dragging or AppKit input. Avoid overlapping GUI probes.
- **Stay out of the user's way.** The user may be working on the same machine, so a probe does not take focus or cover their windows unless the check needs it:
- Default: do not call `showMain`, `app.show()`, `app.focus()` or `window.focus()`, and drive the app through Playwright, whose CDP input needs no OS focus. A Playwright launch can still activate the app and show its window; if it does, give focus back at once with `app.hide()` (DOM state, computed styles and accessibility reads keep working; `capturePage` of a hidden window comes back blank). Electron 45 has no `webContents.incrementCapturerCount`.
- Screenshots, pixel comparisons, rendering-cost or compositor measurements: show the window with `showInactive()` behind the user's windows, launch with `--disable-backgrounding-occluded-windows --disable-renderer-backgrounding --disable-background-timer-throttling`, and compare the metrics once with a briefly visible window before trusting the background numbers.
- Checks that need the window in front (native menus, window dragging, minimize, native material, notification clicks, screen capture, real focus and blur): bring it forward with `showMain` as before, keep that stretch short, and name the steps that took focus in the report.
- Prefer state-based waits over fixed sleeps. Assert the observed behavior; do not weaken expectations or change product code to make the probe pass.
- Save relevant screenshots and inspect them. A probe must exit 0 with its explicit completion marker; partial steps or successful cleanup do not prove the behavior passed.
## Report
Report the changed behavior checked, command and exit status, screenshot/log paths, and user-state/cleanup outcome. Put failures and untested scope first. A focused pass is not a whole-app acceptance claim. Return failures to the implementation workflow; this skill does not fix or commit.