Official agent skill

Test Electron App

by PostHog in PostHog/posthog

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser.

OfficialCustom licenceAuto-check passedTesting & QA

Install Test Electron App

skills CLI
$ npx skills add PostHog/posthog --skill test-electron-app -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install PostHog/posthog test-electron-app --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/PostHog/posthog.git skills-src && mkdir -p .claude/skills && cp -r skills-src/products/desktop/.claude/skills/test-electron-app .claude/skills/test-electron-app && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
test-electron-app
GitHub stars
40k
Token cost
~3k tokens
SKILL.md length
1,386 words
Files
2 (incl. references)
Skills in repo
252
Repo updated
First seen
Licence
Custom licence

At a glance

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser.

  • Works in 3 steps: Save to and report an absolute path… → Offer to open it for them, and on a yes… → The user can also open it themselves at…
  • Interact with the running app
  • SKILL.md covers Prerequisites, Load the canonical commands, The loop and Screenshots, plus 3 more sections
  • Calls pnpm, curl and npm

What it does

Test Electron App is an agent skill from PostHog/posthog, published by the product's own GitHub organization. Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Connect to the running app on port 9222, test desktop changes against a local Django stack, snapshot the accessibility tree, inspect network requests, and screenshot only when explicitly asked. Use when asked to test, verify, dogfood, screenshot, interact with the running app, or run a live backend-to-desktop E2E check. For regression specs use the Playwright E2E suite.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/local-django-stack.md`).

It sits in Testing & QA, covering End-to-end testing, Backend development and Browser automation. It works with Electron, PostHog, Django and Playwright. The repository describes itself as: :hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error…

When your agent uses it

  • Interact with the running app
  • Run a live backend-to-desktop E2E check

Example prompts

  • “/test-electron-app”

Requirements

  • Node.js
  • Pre-approved tools (allowed-tools): Bash(agent-browser:*), Bash(npx agent-browser:*), Bash(pnpm app:cdp*)

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Save to and report an absolute path (/tmp/app.png, never a bare out.png). Claude Code renders absolute paths as clickable links, so the…
  2. Offer to open it for them, and on a yes run open /tmp/app.png (macOS opens it in Preview). If the request was clearly "screenshot it so I…
  3. The user can also open it themselves at any time with !open /tmp/app.png.

What it can do on your machine

Read from SKILL.md and the folder at commit 10f9ad7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(agent-browser:*)
    • Bash(npx agent-browser:*)
    • Bash(pnpm app:cdp*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pnpm
    • curl
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Test Electron App loads about 3k tokens when it runs, and up to ~4k if it reads all its reference files. Until then it costs about 126 tokens; SKILL.md has 1,386 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~126
When it runs · the whole SKILL.md, loaded when a task matches
~3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,386 words (~3,010 tokens).

“Drive the actual running app over the Chrome DevTools Protocol with agent-browser. The dev app already launches with --remote-debugging-port=9222 (see apps/code/package.json), so an agent can connect, snapshot the UI, interact, and (only when asked) screenshot the live app.”

— opening of SKILL.md by PostHog, Custom licence
name
test-electron-app
allowed-tools
Bash(agent-browser:*), Bash(npx agent-browser:*), Bash(pnpm app:cdp*)

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (references) in products/desktop/.claude/skills/test-electron-app of PostHog/posthog.

  • SKILL.md
  • references/local-django-stack.md

Open the folder on GitHubat commit 10f9ad7

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in PostHog/posthog, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Test Electron App next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Test Electron App compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Test Electron App this skillPostHog/posthog40k—~3kAutomated safety check: PassCustom licence
Test Electron AppPostHog/code179—~2.9kAutomated safety check: PassMIT
playwright-cli Browser Automationgithub/gh-aw5.4k24 repos~2.8kAutomated safety check: PassMIT
Tanstack Startasmyshlyaev177/test-proxy-recorder112—~2.9kAutomated safety check: NotesMIT
Playwright E2E Testingactivepieces/activepieces25k—~6.8kAutomated safety check: PassCustom licence
E2E Agent Browserjh941213/my-cc-harness126—~3.1kAutomated safety check: NotesNone

Similar skills

  • Test Electron App

    PostHog/code

    Official

    Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser.

    179 GitHub stars~2.9k tokensUpdated 2 mo ago
    Testing & QAAuto-check passed
  • Official

    Drives a real browser from the command line with playwright-cli to open pages, interact, mock requests, save state and work with Playwright tests.

    5.4k GitHub starsUsed in 24 repos~2.8k tokens
    Testing & QAAuto-check passed
  • Tanstack Start

    asmyshlyaev177/test-proxy-recorder

    Record and replay TanStack Start SSR with test-proxy-recorder.

    112 GitHub stars~2.9k tokensUpdated 4 days ago
    Testing & QAAuto-check: notes
  • Playwright E2E Testing

    activepieces/activepieces

    Playwright modern end-to-end testing framework with cross-browser automation, auto-wait, and built-in test runner

    25k GitHub stars~6.8k tokensUpdated today
    Testing & QAAuto-check passed
  • E2E Agent Browser

    jh941213/my-cc-harness

    E2E test automation using agent-browser CLI. An agent skill from jh941213/my-cc-harness.

    126 GitHub stars~3.1k tokensUpdated 2 mo ago
    Testing & QAAuto-check: notes
  • UI Preview

    tingly-dev/tingly-box

    Capture headless-Chrome screenshots of the tingly-box frontend (running locally in mock mode) so frontend changes can be visually verified in environments without a real browser.

    351 GitHub stars~2k tokensUpdated today
    Testing & QAAuto-check: notes

More from PostHog/posthog

All 252 skills in this repo
  • Authoring Log Alerts

    PostHog/posthog

    Official

    Author useful, low-noise log alerts on services in a PostHog project.

    40k GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Official

    Operating procedure for the conflict-autoresolver agent: sweep open PostHog/posthog PRs that conflict with master, resolve the trivial conflicts (generated artifacts deterministically, source…

    40k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Official

    Help users debug PostHog Error Tracking stack-trace symbolication for any supported platform — JavaScript/TypeScript web, React Native (Hermes), Android (Proguard / R8), or iOS / macOS (dSYM).

    40k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Exploring Apm Traces

    PostHog/posthog

    Official

    Investigates distributed application performance using PostHog APM (OpenTelemetry span) data via MCP.

    40k GitHub stars~3.5k tokensUpdated today
    Auto-check passed
  • Exploring LLM Traces

    PostHog/posthog

    Official

    Debug and inspect LLM/AI agent traces using PostHog's MCP tools.

    40k GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Investigate Metric

    PostHog/posthog

    Official

    Diagnose why a product metric changed (dropped, spiked, or plateaued) by orchestrating breakdowns, actors, paths, lifecycle, retention, and annotations queries.

    40k GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Questions about Test Electron App

What does Test Electron App do?

Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser. Test Electron App is an agent skill from PostHog/posthog, published by the product's own GitHub organization. Drive the real running PostHog Electron app (live tRPC, workspace-server, real data) over CDP with agent-browser.

When should I use Test Electron App?

Test Electron App fits situations like: interact with the running app; run a live backend-to-desktop E2E check.

How do I install Test Electron App in Claude Code?

Run `npx skills add PostHog/posthog --skill test-electron-app -a claude-code`. Or copy the skill folder (products/desktop/.claude/skills/test-electron-app in PostHog/posthog) into .claude/skills/test-electron-app in your project. Claude Code loads it when a task matches its description.

How do I install Test Electron App in Codex?

Run `npx skills add PostHog/posthog --skill test-electron-app -a codex`. Or copy the skill folder (products/desktop/.claude/skills/test-electron-app in PostHog/posthog) into .agents/skills/test-electron-app in your project. Codex loads it when a task matches its description.

Can I use Test Electron App in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add PostHog/posthog --skill test-electron-app -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/test-electron-app, .gemini/skills/test-electron-app, .github/skills/test-electron-app and .opencode/skills/test-electron-app in your project.

What does Test Electron App need to run?

Going by SKILL.md and its folder, Test Electron App needs the command-line tools its instructions call (pnpm, curl and npm). Our summary lists: Node.js. Its frontmatter pre-approves these tools: Bash(agent-browser:*), Bash(npx agent-browser:*), Bash(pnpm app:cdp*).

Does Test Electron App access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Test Electron App safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Test Electron App use?

Test Electron App has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Test Electron App use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 987 tokens, read only when the agent opens those files.

What are the alternatives to Test Electron App?

Skills that share tags, products or a category with Test Electron App: Test Electron App (PostHog/code, 179 stars), playwright-cli Browser Automation (github/gh-aw, 5.4k stars), Tanstack Start (asmyshlyaev177/test-proxy-recorder, 112 stars) and Playwright E2E Testing (activepieces/activepieces, 25k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Test Electron App?

PostHog (a GitHub organization, an official publisher) maintains it in PostHog/posthog, which has 40,182 GitHub stars. The repository holds 252 skills in this directory. The repository was last updated on October 8, 2026.

Source: PostHog/posthog on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.