e2e
Skill17 starsChanged 36 days agoMITView on GitHub
Run or extend the Playwright-Electron e2e suite (deterministic pi stub, no API key). Use when verifying IPC/session/UI flows end-to-end, debugging a failing smoke test, or adding e2e coverage for a new feature.
53 other projects use a version of this.
Adopted by
Most recently taken up by
- philtzjp/skillstheir own version, first seen Nov 29, 2026
- DGouron/review-flowtheir own version, first seen Nov 29, 2026
- odahcam/hangartheir own version, first seen Nov 29, 2026
- bloknayrb/tandemtheir own version, first seen Nov 29, 2026
- kortix-ai/sunatheir own version, first seen Nov 28, 2026
- chatquill/claude-code-websitestheir own version, first seen Nov 22, 2026
Used with
Projects with it also use instinct-export, instinct-import and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 4 projects that use this
0mlkrizzz655335vSkillsdk
Codex SDK 集成开发。用 TypeScript/Python SDK 做 agent 生命周期、流式输出、本地/云端执行等集成。
Also in 3 projects that use this
MontimageSkilltest-coverage
Improve test coverage by finding untested branches, error paths, and edge cases. Use when measuring or strengthening a project's tests. Don't use for production debugging, code review, or feature implementation.
Also in 3 projects that use this
MicrosoftSkillworktree
Create, reuse or clean up a dedicated git worktree for working on a pull request or a private branch. Use from any PR-scoped workflow that needs an isolated checkout to keep current code and build output untouched.
Also in 5 projects that use this
- +1 more from TheKREATORS
Other versions53 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 53
- kortix-ai/CompanyOS★ 21ksame name
- kortix-ai/suna★ 21ksame name
- tester-army/e2e★ 14ksame name
- elie222/inbox-zero★ 13ksame name
- getsentry/sentry-javascript★ 8.8ksame name
- entireio/cli★ 5.4ksame name
- callstack/react-native-pager-view★ 3.4ksame name
- openmeterio/openmeter★ 2.5ksame name
- stackia/rtp2httpd★ 2.4ksame name
- alibaba/loongcollector★ 2.2ksame name
43 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.
0
Common
Most of the 47 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
No network, no API key.
- Very specific: line 39
Follow the existing pattern: the launch() / shutdown() helpers, data-testid selectors (session-row, workspace-group, workspace-switcher, …
- Very specific: line 46
Keep tests serial-safe: fresh mktemp dirs per launch, no shared state.
“Common” is measured: kept by at least 6 in 10 of the 47 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Phosphor e2e suite
npm run test:e2e # full: build + all specs
npm run build # rebuild after any main/renderer change
npx playwright test --config apps/desktop/playwright.config.ts # specs only (uses the existing build!)
npx playwright test --config apps/desktop/playwright.config.ts -g "sidebar" # one test by title substring
npx playwright test --config apps/desktop/playwright.config.ts --headed # watch it runPlaywright runs out/ — a stale build is the #1 source of confusing
failures. If a spec fails right after you changed code, rebuild first.
How it works
apps/desktop/e2e/smoke.spec.ts— 8 serial specs, 1 worker; each test launches its own Electron instance via_electron.launch.apps/desktop/e2e/fixtures/pi-stub.cjs— a ~350-line deterministic RPC "pi": scripted streamed reply, an edit tool call with a diff, an artifact tool call. No network, no API key.- Env contract (all gated on
!app.isPackaged):PHOSPHOR_PI_STUB— path to the stub; main spawns it instead of real piPHOSPHOR_E2E_WORKSPACE— skips the native (undriveable) folder pickerPHOSPHOR_TEST_USER_DATA— isolates electron-store prefs per testPI_CODING_AGENT_DIR— pins pi's session dir to a scratch dir
- The stub writes a real session JSONL into the mangled session dir for
the workspace (pi's
--<cwd with / → ->--layout) — that's what makes sessions discoverable by the sidebar scanner. The mangling is duplicated fromapps/desktop/electron/pi/pi-paths.tsin the stub; if a sidebar/scan test fails mysteriously, check the two haven't drifted.
Adding a test
- Follow the existing pattern: the
launch()/shutdown()helpers,data-testidselectors (session-row,workspace-group,workspace-switcher,session-workspace-badge) orgetByRolewith aria-labels. - Composer buttons are icon buttons with aria-labels: "Send message", "Start lane", "Stop", "Attach images".
- New prefs/IPC used at boot need nothing special — the real handlers run;
only the browser mock (
libs/client-ui/src/dev/mockPhosphor.ts) needs explicit cases. - Keep tests serial-safe: fresh
mktempdirs per launch, no shared state.
CI runs this matrix on ubuntu (xvfb) and macOS with electron-rebuild for
node-pty.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

