Add the run-ai-studio skill #94

Merged
crowmaki merged 2 commits from run-skill into main 2026-10-08 08:08:21 +00:00
Owner

Adds the run-ai-studio project skill. With it, an agent can launch the real Tauri app and drive it, not only run the tests.

What

  • SKILL.md. Tells an agent how to:
    • launch the app with tauri dev and WebView2's remote-debugging port open;
    • wait for the shell to mount;
    • drive the window, with Git Bash gotchas such as MSYS_NO_PATHCONV, cygpath -m and the strict locators;
    • stop the app.
  • driver.mjs. A CDP driver built on playwright-core that takes one command per call:
    • wait, seed (a Project with a script, 2 Setups and 2 Shots made through RPC), goto, click, press, drag, text, rpc and ss.
  • package.json / package-lock.json. These pin playwright-core only. It attaches to WebView2, so no browser download is needed.

A second commit fixes the Stop step to taskkill -IM ai-studio.exe -F. With MSYS_NO_PATHCONV=1 exported for driving, the old //IM form reaches taskkill unconverted and is refused.

Testing

I used the skill to check #43 (PR #93) in the running app on Windows with Git Bash: seed, goto the Board, Tab, drag symbols on the stage, rpc, screenshots, then stop.

Adds the `run-ai-studio` project skill. With it, an agent can launch the real Tauri app and drive it, not only run the tests. ## What - **`SKILL.md`.** Tells an agent how to: - launch the app with `tauri dev` and WebView2's remote-debugging port open; - wait for the shell to mount; - drive the window, with Git Bash gotchas such as `MSYS_NO_PATHCONV`, `cygpath -m` and the strict locators; - stop the app. - **`driver.mjs`.** A CDP driver built on `playwright-core` that takes one command per call: - `wait`, `seed` (a Project with a script, 2 Setups and 2 Shots made through RPC), `goto`, `click`, `press`, `drag`, `text`, `rpc` and `ss`. - **`package.json` / `package-lock.json`.** These pin `playwright-core` only. It attaches to WebView2, so no browser download is needed. A second commit fixes the Stop step to `taskkill -IM ai-studio.exe -F`. With `MSYS_NO_PATHCONV=1` exported for driving, the old `//IM` form reaches `taskkill` unconverted and is refused. ## Testing I used the skill to check #43 (PR #93) in the running app on Windows with Git Bash: seed, `goto` the Board, Tab, drag symbols on the stage, `rpc`, screenshots, then stop.
Launches the Tauri app with WebView2's remote-debugging port and drives
the window over CDP: seed a Project through RPC, navigate, click, press,
drag, read text, call RPC and screenshot. Verified on Windows with Git
Bash.
taskkill //IM fails once MSYS_NO_PATHCONV=1 is exported for driving,
because the doubled slash is no longer converted. -IM and -F work with
path conversion on or off.
crowmaki deleted branch run-skill 2026-10-08 08:08:21 +00:00
Sign in to join this conversation.
No description provided.