ao-desktop-dev
БесплатноБез исполняемых скриптовНе проверен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…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
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. The default launch gives each checkout
~/.ao/dev/run-<checkout>/(data, run file, Electron profile) and a free port from 3500-3599. The foreground fallback uses the shared port3002,~/.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.
- Real-data mode reads the same database as the installed app, and only one daemon can own a data directory. Quit the packaged app first: while its daemon runs, the dev daemon waits for the data-dir lock (9 x
AO_SHUTDOWN_TIMEOUT+ 18s, 108s by default) and then exits with code 75. The dev window is marked with anAgent Orchestrator (dev)title, an orange-badgedDEVdock icon, and an in-appdevbadge — verify those markers before acting.
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. Before every launch, runnpm run dev:warminfrontend/. It clones a cached real install for an identical lockfile (or runsnpm ci) and restores cached predev outputs, so a fresh checkout is ready in seconds and an already-warm one is a no-op. It ends withready for npm run dev. If it fails, report the error and fall back tonpm ci. - 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:LISTEN
Use 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
Keep Electron Forge's output and restart input available: run it in a foreground interactive process, or, on macOS/Linux, in a tmux session on its own socket (the default below) so you can read its log and send rs. Do not append &, use a bare detached shell, or start a browser preview instead.
Isolated mode (default)
Give each checkout its own data directory, run file, Electron profile and port, so it never collides with another worktree's dev app or with the installed app. On macOS/Linux, from the repository root after npm run dev:warm:
NAME=$(basename "$(git rev-parse --show-toplevel)" | tr ".:" "--")
BASE=$HOME/.ao/dev/run-$NAME
PORT=$(for p in $(seq 3500 3599); do lsof -nP -iTCP:$p -sTCP:LISTEN >/dev/null || { echo $p; break; }; done)
mkdir -p "$BASE"
cd frontend
tmux -L ao-dev new-session -d -s "$NAME" \
"env -u AO_SESSION_ID AO_DATA_DIR=$BASE/data AO_RUN_FILE=$BASE/running.json AO_DEV_ELECTRON_DIR=$BASE/electron AO_PORT=$PORT npm run dev 2>&1 | tee $BASE.log"
Wait for Launched Electron app and daemon listening on $PORT in $BASE.log (about 25 s from a warm checkout). Restart the main process with tmux -L ao-dev send-keys -t "$NAME" rs Enter. Report the branch, port and data directory.
Without tmux, or on Windows, run Forge in the foreground with the shared isolated dev paths instead:
cd frontend
env -u AO_DATA_DIR -u AO_RUN_FILE -u AO_PORT npm run dev
On PowerShell:
Set-Location frontend
Remove-Item Env:AO_DATA_DIR, Env:AO_RUN_FILE, Env:AO_PORT -ErrorAction SilentlyContinue
npm run dev
Real-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
Установить ao-desktop-dev в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ao-desktop-dev?
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.
Как установить скилл ao-desktop-dev?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ao-desktop-dev запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic