penguin-testing-electron

penguin-testing-electron is a skill for Claude Code, Codex from Prism-Shadow/penguin-harness. It costs 84 tokens per session (1,131 once invoked), scanned A, original, Apache-2.0.

An end-to-end test harness for Electron desktop applications that launches a real shell, installs a plugin, runs its unit-test modules inside the shell, and removes them afterward. Electron is a framework for desktop apps built with web technologies, and Playwright drives the visible interface.

In plain words
What is it for?
Use it to launch a checkout or build, prepare an isolated account and data directory, drive the interface, run plugin tests, and clean up the temporary installation.
Why use it?
It checks whether a plugin works in the actual desktop environment rather than only in isolated tests, while restoring a clean test instance afterward.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to launch a checkout or build, prepare an isolated account and data directory, drive the interface, run plugin tests, and clean up the temporary installation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/prism-shadow/penguin-harness/penguin-testing-electron
About the project

PenguinHarness is a local-first platform in which multiple AI agents create, evaluate, optimize, and deploy agent applications. It is for people building AI software who want agents to generate applications and improve their own behavior through skills.

Prism-Shadow/penguin-harness · 3,354 stars · on GitHub · penguin.ooo

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Prism-Shadow/penguin-harness --skill penguin-testing-electron
Clone the repo
git clone --depth 1 https://github.com/Prism-Shadow/penguin-harness

Made for: Claude Code, 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 penguin-testing-electron

README.md
[![agentmods](https://agentmods.dev/badge/skills/prism-shadow/penguin-harness/penguin-testing-electron/github.svg)](https://agentmods.dev/skills/prism-shadow/penguin-harness/penguin-testing-electron)
Your own site
<a href="https://agentmods.dev/skills/prism-shadow/penguin-harness/penguin-testing-electron"><img src="https://agentmods.dev/badge/skills/prism-shadow/penguin-harness/penguin-testing-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 penguin-testing-electron

Your own site · 80×15
<a href="https://agentmods.dev/skills/prism-shadow/penguin-harness/penguin-testing-electron"><img src="https://agentmods.dev/badge/skills/prism-shadow/penguin-harness/penguin-testing-electron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,131 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.00084 $0.01131
Opus 5.5 $0.00034 $0.00452
Sonnet 5.5 $0.00017 $0.00226
Haiku 4.5 $0.00008 $0.00113

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

Security

Grade A, and why

penguin-testing-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 10d 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.

plugins/penguin-testing-electron/skills/penguin-testing-electron/SKILL.md · 79 lines

How it starts

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

Penguin testing (Electron)

penguin-testing-electron turns "does my plugin really work in the desktop shell" into one repeatable step: launch a real harness instance, install the plugin under test, run its test-unit modules in the shell, and put the instance back to a clean state.

What it does

  1. Launch — _electron.launch starts the harness desktop shell (the current checkout by default, or a given build's path), over Playwright's Electron channel. The shell's first window comes back as a standard Playwright page, so every locator and expect assertion works unchanged. The UI language is pinned before the first window reads it — the signed-in admin account's preference (PUT /api/me/prefs), "en" by default (lang option) — so the shell renders English whatever the host machine's locale is and selectors do not chase translations.
  2. Set up — the instance gets its own data root and its own seeded admin, so the driver may call the instance's plugin management surface as an admin. The credential belongs to the throwaway instance only, never the user harness's.
  3. Test data — the instance's home and browser data live at <git root>/.data/penguin-testing-electron/penguin and .../chrome by default (an alternative base can be named). The path survives across test rounds; the system does not clean it.
  4. Install and remove — the plugin under test is installed into the running instance so its real UI and capabilities load; the test units are handed to the driver as modules and run against that real shell; after the run the plugin is removed so the instance returns to a clean state.

Writing a test unit

A test unit is a module — a @Component class with a run(context) method, the unit the harness itself is built from. run receives the shell's first window as a standard Playwright page:

import { Component } from "@prismshadow/penguin-core/plugin";

@Component()
export class WindowRenders {
  async run({ window }) {
    await window.waitForLoadState("domcontentloaded");
    expect(window.isClosed()).toBe(false);
  }
}

Read the full file on GitHub · 79 lines

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 First seen · 79 lines · 84 tokens per session scan A b4936c40766a

Subscribe to this mod's changes

penguin-testing-electron is a skill published in the GitHub repository Prism-Shadow/penguin-harness (3,354 stars, last pushed today), licensed Apache-2.0. It adds 84 tokens to every session and 1,131 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-11-20.

Related

penguin-testing-electron compared with skills from other repositories

penguin-testing-electron next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
penguin-testing-electronPrism-Shadow/penguin-harnessSkill3.4ktodayApache-2.0A84Claude Code, Codex
web-ui-testsuyoumo/ClawProBenchSkill8293mo agoApache-2.0C19Claude Code, Codex
langbot-testinglangbot-app/LangBotSkill19ktodayApache-2.0A58Claude Code, Codex
browser-workflow-skill-builderopenonion/connectonionSkill1.6ktodayApache-2.0A61Claude Code, Codex
co-browseropenonion/connectonionSkill1.6ktodayApache-2.0A63Claude Code, Codex
co-tiktokopenonion/connectonionSkill1.6ktodayApache-2.0A48Claude Code, Codex
browser-testing-with-screenshotsAgentWorkforce/relaySkill1.2ktodayApache-2.0A32Claude Code