ao-desktop-dev
Skill2 starsChanged 3 months agoApache-2.0View on GitHub
Launch, restart, or troubleshoot the real AO Electron desktop app from this repository; run a checkout against isolated or real local AO data; combine PR branches for local UI review; and diagnose stale Electron processes, port conflicts, or preload bridge mismatches. Use whenever asked to run, open, show, or visually verify AO frontend changes in the actual desktop app rather than ao preview, dev:web, or mock data.
We split this skill into the rules it gives an agent
16 rules. 11 are common, 0 are distinctive, and 5 are very specific to this project.
11
Common
Most of the 4 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Common: line 8
Run the Electron application from the current checkout and verify it in the native window.
- Common: line 12
Ask only when the request does not make the desired data source clear.
- Very specific: line 14
Use isolated mode by default for implementation and destructive testing.
- Common: line 16
Never try to attach an unpackaged Electron app directly to a packaged daemon from another checkout.
- Very specific: line 22
Read frontend/package.json, frontend/src/main.ts, and frontend/forge.config.ts when the launch behavior may have changed.
- Common: line 24
Check for an existing dev instance from this exact checkout before starting another.
- Very specific: line 33
Use the full command paths and start times to distinguish this checkout from other AO worktrees.
- Very specific: line 37
Run Electron Forge in a foreground interactive process so its output and restart input remain available.
- Common: line 60
Keep the real data directory but remove inherited port/run-file overrides so the dev app retains its own daemon handshake and port:
- Very specific: line 77
Do not print unrelated environment variables: AO sessions may carry credentials.
- Common: line 81
Wait for all of these signals:
- Common: line 88
If several AO windows exist, identify the newest Electron main process belonging to this checkout.
- Common: line 94
Do not claim real data from appearance alone.
- Common: line 103
After a restart, confirm the new Electron PID/start time and re-check the logs for the original error.
- Common: line 107
When the user wants to see multiple unmerged PRs together:
- Common: line 110
Create a clearly named local-only integration branch using the session/repository branch convention.
“Common” is measured: kept by at least 6 in 10 of the 4 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
AO Desktop Dev
Run the Electron application from the current checkout and verify it in the native window. Keep the dev daemon, renderer, Electron preload, and selected data mode explicit so the user never reviews a mock or stale build by accident.
Choose the data mode
Ask only when the request does not make the desired data source clear.
- Use isolated mode by default for implementation and destructive testing. Electron uses port
3002,~/.ao/dev/running.json,~/.ao/dev/data, and~/.ao/dev/electron. - Use real-data mode only when the user explicitly asks to see this machine's actual AO projects or sessions. Start the checkout's dev daemon on the isolated dev port/run file while pointing
AO_DATA_DIRat the real AO data directory. This is a separate daemon process using real data; do not describe it as the installed app's daemon. - Never try to attach an unpackaged Electron app directly to a packaged daemon from another checkout. The supervisor intentionally rejects daemon identity mismatches.
- Warn before actions in real-data mode that create, terminate, rename, or otherwise mutate sessions. Merely opening and inspecting the UI is expected.
Preflight
- Work from the repository root and inspect
git status --short --branch. - Read
frontend/package.json,frontend/src/main.ts, andfrontend/forge.config.tswhen the launch behavior may have changed. Treat source as authoritative over this skill. - Confirm Node/npm and the Go version required by
backend/go.modare available. Runnpm ciinfrontend/only when dependencies are absent or inconsistent; do not reinstall on every launch. - Check for an existing dev instance from this exact checkout before starting another. Do not kill by process name alone, and never terminate every Electron process.
On macOS/Linux, inspect checkout-scoped processes and listeners with finite commands:
ps -axo pid=,ppid=,pgid=,lstart=,command= | rg 'frontend/(node_modules/.bin/electron-forge|node_modules/electron/dist/Electron)'
lsof -nP -iTCP:3002 -sTCP:LISTENUse the full command paths and start times to distinguish this checkout from other AO worktrees. On Windows, use Get-CimInstance Win32_Process and Get-NetTCPConnection; preserve the same exact-target rule.
Launch the app
Run Electron Forge in a foreground interactive process so its output and restart input remain available. Do not append &, use a detached shell, or start a browser preview instead.
Isolated mode
On macOS/Linux:
cd frontend
env -u AO_DATA_DIR -u AO_RUN_FILE -u AO_PORT npm run devOn PowerShell:
Set-Location frontend
Remove-Item Env:AO_DATA_DIR, Env:AO_RUN_FILE, Env:AO_PORT -ErrorAction SilentlyContinue
npm run devReal-data mode
First resolve and report the actual data directory. In an AO worker session, AO_DATA_DIR normally already identifies it. Otherwise the repository default is the absolute path corresponding to ~/.ao/data.
Keep the real data directory but remove inherited port/run-file overrides so the dev app retains its own daemon handshake and port:
cd frontend
env -u AO_RUN_FILE -u AO_PORT AO_DATA_DIR="${AO_DATA_DIR:-$HOME/.ao/data}" npm run devPowerShell equivalent:
Set-Location frontend
$realAoData = if ($env:AO_DATA_DIR) { $env:AO_DATA_DIR } else { Join-Path $HOME ".ao/data" }
Remove-Item Env:AO_RUN_FILE, Env:AO_PORT -ErrorAction SilentlyContinue
$env:AO_DATA_DIR = $realAoData
npm run devDo not print unrelated environment variables: AO sessions may carry credentials. It is safe to report only AO_DATA_DIR, AO_RUN_FILE, and AO_PORT.
Confirm the correct app is ready
Wait for all of these signals:
- Electron Forge reports
Launched Electron app. - The daemon reports
daemon listening, normally on127.0.0.1:3002unless it explicitly reports another bound port. - The renderer makes successful requests such as
/api/v1/projectsand/api/v1/sessions. - The native Electron window shows the checkout's UI. A Vite URL opened in a normal browser is not equivalent because it lacks the Electron preload bridge.
If several AO windows exist, identify the newest Electron main process belonging to this checkout. On macOS, foreground that exact PID only when needed:
osascript -e 'tell application "System Events" to set frontmost of first process whose unix id is <verified-pid> to true'Do not claim real data from appearance alone. Verify the selected data directory and successful API responses. Do not claim visual success from compilation alone; interact with the requested flow in Electron or ask the user for a screenshot when screen capture is unavailable.
Reload changes correctly
- Renderer-only React/CSS changes normally hot reload.
- Changes to
frontend/src/main.ts, preload files, Forge configuration, shared bridge types, or IPC registration require an Electron main-process restart. Typersinto the active Forge terminal or fully stop and relaunch the dev process. - A renderer error such as
aoBridge.<method> is not a functionalmost always means the renderer hot-reloaded against a stale preload. Restart Electron before changing code to add guards around a bridge method that should exist. - Backend changes require restarting the managed dev daemon or the Electron process; renderer hot reload cannot apply Go changes.
After a restart, confirm the new Electron PID/start time and re-check the logs for the original error.
Preview multiple PRs locally
When the user wants to see multiple unmerged PRs together:
- Require a clean worktree and fetch each PR head.
- Create a clearly named local-only integration branch using the session/repository branch convention.
- Merge or cherry-pick the requested PR heads without rewriting or pushing either source branch.
- Resolve overlaps according to the requested combined behavior and run focused typechecks/tests.
- Let renderer changes hot reload; restart Electron if either PR changes main/preload/IPC code.
- State that the integration branch is local-only. Do not push it unless the user explicitly requests a combined PR.
Once one PR merges, prefer rebasing the remaining PR onto current main; the normal PR branch then contains both views without a local integration merge.
Stop without collateral damage
- Send Ctrl+C to the foreground dev process and wait briefly for Electron and its managed daemon to exit.
- Re-run the checkout-scoped process query. If the exact process group remains, identify the group created by this launch before sending
TERMto that group. - On Windows, terminate the verified parent tree only. Never use a broad Electron, Node, Go, or port-based kill.
- Confirm the captured Electron PID and dev daemon listener are gone. Leave installed AO and other worktrees untouched.
Common mistakes
ao previewcontrols the AO Browser panel; it does not launch the desktop shell.npm run dev:webis useful for browser-only renderer work but does not provide Electron APIs or native chrome.- Renderer URLs can move from
5173when a port is occupied. Trust Forge's printed URL rather than assuming one. - Multiple dev instances share
~/.ao/dev/electron; avoid running them concurrently because Chromium profile state can collide. - An inherited
AO_DATA_DIRchanges dev mode from isolated data to real data. Always choose and report the mode instead of inheriting it accidentally. - Repeated
/healthz/404 entries from external probes can be noisy; readiness is determined by Electron's daemon status and successful API traffic, not by log volume.
Completion report
Report:
- checkout and branch being displayed;
- isolated or real-data mode and the non-sensitive data/run-file paths;
- renderer and daemon addresses actually reported;
- whether Electron was restarted for main/preload changes;
- user flows exercised in the native window;
- any remaining stale process, port, or visual-verification limitation.
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 4
- ComposioHQ/agent-orchestrator★ 14k88% same
- OrchestratorInc/agent-orchestrator★ 14k88% same
- Untrivial-ai/agent-orchestrator★ 14k88% same
- AgentWrapper/agent-orchestrator★ 13k88% same
Wrote their own version · 0
None found.
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.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- bug-triageSkill
- ao-desktop-devSkill
- bug-triageSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

