spacevibe-deck: Skill for Claude Code

.claude/skills/test-deck-app/SKILL.md

test-deck-app is a skill for Claude Code from mxrsv/spacevibe-deck. It costs 74 tokens per session (1,254 once invoked), scanned A, original, MIT.

An end-to-end test workflow for a running Electron desktop app, using Playwright to check real screens, app communication, terminal sessions, and saved data.

In plain words
What is it for?
Use it to verify a new user-facing feature or changed interface flow in an isolated app instance. It is not intended for bug fixes, styling, copy changes, refactors, tests, or documentation.
Why use it?
A browser preview can show the interface without exercising the desktop app behind it. This workflow prevents a feature from being accepted when its full user flow has not worked.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is mxrsv/spacevibe-deck's own configuration. It tells Claude Code how to work on spacevibe-deck 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 spacevibe-deck configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mxrsv/spacevibe-deck. 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/mxrsv/spacevibe-deck/main/.claude/skills/test-deck-app/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mxrsv/spacevibe-deck

Made for: Claude Code.

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 test-deck-app

README.md
[![agentmods](https://agentmods.dev/badge/skills/mxrsv/spacevibe-deck/test-deck-app/github.svg)](https://agentmods.dev/skills/mxrsv/spacevibe-deck/test-deck-app)
Your own site
<a href="https://agentmods.dev/skills/mxrsv/spacevibe-deck/test-deck-app"><img src="https://agentmods.dev/badge/skills/mxrsv/spacevibe-deck/test-deck-app/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 test-deck-app

Your own site · 80×15
<a href="https://agentmods.dev/skills/mxrsv/spacevibe-deck/test-deck-app"><img src="https://agentmods.dev/badge/skills/mxrsv/spacevibe-deck/test-deck-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,254 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.
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.00074 $0.01254
Opus 5.5 $0.00030 $0.00502
Sonnet 5.5 $0.00015 $0.00251
Haiku 4.5 $0.00007 $0.00125

Measured 10d ago against content hash 16b6e37cb32c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-deck-app 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/isolated-main.cjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/test-deck-app/SKILL.md · 95 lines

How it starts

The opening of the file, as written. The whole thing — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Deck in Electron

The gate in AGENTS.md applies to a new user-facing feature or a changed UI flow. It does not apply to bug fixes, styling, copy, refactors, tests or docs. The browser preview (npm run dev) paints the shell but reaches no IPC, PTY, persistence or updater, so a pass there proves nothing.

If the app cannot be launched (no display, build fails, Electron missing), report the blocker and stop. Do not substitute the browser preview or another automation tool.

Launch an isolated instance

  1. In the checkout under test: npm run build && npm run electron:build. In a fresh worktree node_modules/electron/dist may be missing after npm install; run node node_modules/electron/install.js once.

  2. Make a scratch directory outside the repo for userData, a CLAUDE_CONFIG_DIR, and stub agents. A plain electron:dev run shares the owner's real workspaces.json and session.json.

  3. Launch from a scratch driver with playwright-core:

    const { _electron } = require("playwright-core");
    const app = await _electron.launch({
      executablePath: "<checkout>/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron",
      args: ["<checkout>/.claude/skills/test-deck-app/scripts/isolated-main.cjs"],
      env: {
        ...cleanEnv, // process.env without CLAUDECODE, DECK_AGENT_ID, DECK_AGENT_PID, DECK_AGENT_NESTED
        DECK_TEST_USERDATA: "<scratch>/userdata",
        DECK_TEST_MAIN: "<checkout>/dist-electron/electron/main.cjs",
        CLAUDE_CONFIG_DIR: "<scratch>/claude",
      },
    });
    const page = await app.firstWindow();
    

    isolated-main.cjs sets userData before main loads and refuses to start without both variables.

Traps that cost a run

  • A stub, never a real agent. Put stubs on a scratch PATH set in a scratch ZDOTDIR/.zshrc (override path_helper), and never seed lastAgent: "claude": it starts a real, unattended session. Unset the CLAUDECODE variables above, or Deck's wrappers treat the pane as nested and a probe reads like plain agent behaviour.
  • One instance per userData. The single-instance lock is per directory: a second launch on the same one exits 0 with no window and Playwright reports a closed target.
  • setViewportSize pins innerWidth. After any window resize, call it again with BrowserWindow.getAllWindows()[0].getContentSize() and read innerWidth before measuring.
  • app.close() hangs. End with app.evaluate(({ app }) => app.exit(0)).
  • app.getVersion() reports Electron's version from a wrapper outside the packaged app. Expected, not a bug.
  • To record links Deck would open, reassign shell.openExternal in app.evaluate before the flow starts.

Read the full file on GitHub · 95 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. 10d ago Changed · +28 lines 16b6e37cb32c
  2. 13d ago First seen · 67 lines · 74 tokens per session scan A 8a248826ee11

Subscribe to this mod's changes

test-deck-app is a skill published in the GitHub repository mxrsv/spacevibe-deck (41 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 1,254 once invoked, about $0.0003 per session on Opus 5.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-10-15.

Related

Other skills, from other repositories

verify-ui-change-in-cloud

Verifies user-facing Warp client changes by spawning a cloud agent with computer use to test Warp. Use only when the user explicitly requested computer-use verification or accepted an offer to run it, and ONLY in non-sandboxed environments and local environments. Triggers a cloud agent that runs the test-warp-ui skill.

warpdotdev/warp · 69 tokens

test-warp-ui

Guides testing Warp UI features and changes using the computer use tool. Use this skill only when computer-use testing was requested (explicit request or accepted offer) and the computeruse tool is available to the agent. Covers launching Warp and verifying UI behavior.

warpdotdev/warp · 55 tokens

tui-explorer

Discover and replay terminal UI paths using agent-tui. Use when you need to launch a TUI app, explore navigation with bounded BFS, generate markdown acceptance tests, and verify those tests repeatedly. Do not use for web or desktop GUI automation.

pproenca/agent-tui · 54 tokens

agent-tui

Automate terminal UI (TUI) apps with agent-tui for testing, inspection, demos, and scripted interactions. Use when automating CLI/TUI flows, regression testing terminal apps, verifying interactive behavior, or extracting structured text from terminal UIs. Also use when asked what agent-tui is, how it works, or to demo…

pproenca/agent-tui · 89 tokens

qa-testing

Verify your work by actually operating the app or website you changed, instead of assuming it works. Strongly recommended whenever you build, modify, or debug a web app, website, or desktop GUI app. Drive real browsers with the agent-browser CLI and native desktop apps with the cua-driver CLI. These are installed on…

openinterpreter/openinterpreter · 77 tokens

verify

Exercise the real app/API/CLI and collect observable evidence; tests alone do not count as end-to-end verification.

Hmbown/CodeWhale · 25 tokens