What is the Desktop Client Dev skill?
Desktop Client Dev is a video skill by nexu-io for Claude Code, Cursor, Codex and other AI coding agents. Develop, extend, test and release the OpenMotion / OpenDesign Next cloud-first Electron desktop client, universal host bridge, local atomic capabilities, Web Connect Script, and two-tier signed configuration. Use when changing desktop shell code, native capabilities, preload/IPC contracts, environment switching, auto-update, or desktop CI/release workflows.
Use this repository-local contributor Skill for all desktop client work (desktop/, packages/local-atoms/, packages/signed-config/, packages/connect-script/, shared/desktop-.ts, shared/signed-config.ts, and studio/src/utils/platformHost.ts). Read AGENTS.md and docs/layout-contract.md alongside this Skill. For the complete file-by-file module map, capability inventory, and key-rotation runbook, read references/architecture-map.md.
When to use it
Use when changing desktop shell code, native capabilities, preload/IPC contracts, environment switching, auto-update, or desktop CI/release workflows.
What the SKILL.md covers
- Architecture at a glance
- Decide where a change belongs
- How to add a new shell capability or method
- Security and compatibility invariants
- Local development and debugging
- Release and hot-config workflows
- Verification before handing off
- Author
- nexu-io
- Pack
- nexu-io/openmotion (30 skills)
- Category
- Video, #116 of 457
- Alyn Score
- 72 / 99
- Files
- 2, includes references
- License
- Apache-2.0
- Last updated
- 7 days ago
- Works with
- Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot
Desktop Client Dev compared to similar skills
| Skill | Alyn Score | GitHub stars | Updated |
|---|---|---|---|
| Desktop Client Dev · nexu-io | 72 | 16k | 7 days ago |
| Yt Script · Jakeschincariol | 71 | 7.4k | 3 months ago |
| Reel Export · charlie947 | 64 | 813 | 2 months ago |
| Gsap React · OpenMontage | 83 | 83k | 16 days ago |
Install Desktop Client Dev
Pick your agent. Every command is ready to paste.
npx alyn-cli add desktop-client-devDetects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
npx skills add nexu-io/openmotion --skill desktop-client-devOr use the open skills CLI directly.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads desktop-client-dev when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the desktop-client-dev skill”. In Codex, type $desktop-client-dev.
OpenMotion Desktop Client (OD Next) Development
Use this repository-local contributor Skill for all desktop client work (desktop/, packages/local-atoms/, packages/signed-config/, packages/connect-script/, shared/desktop-*.ts, shared/signed-config.ts, and studio/src/utils/platformHost.ts). Read AGENTS.md and docs/layout-contract.md alongside this Skill. For the complete file-by-file module map, capability inventory, and key-rotation runbook, read references/architecture-map.md.
Architecture at a glance
OpenDesign Next is a cloud-first Electron thin shell designed so product features ship via Web without waiting for desktop releases or Apple notarization:
- Zero bundled Studio / zero local Node sidecar.
desktop/electron-builder.ymlpackages onlydesktop/dist/**/*anddesktop/package.json. The shell loads cloud Studio directly (stable:https://apps.open-design.ai,test: built-inDEFAULT_STUDIO_URLS.test,dev:http://127.0.0.1:4173). Do not reintroduce a bundled local server orstage-appflow. - Frozen 4-method
UniversalHostBridge.desktop/src/preload.tsexposes onlywindow.__OPENMOTION_HOST__withinfo(),capabilities(),invoke(capability, method, params), andsubscribe(capability, event, cb). Main-process dispatch goes throughCapabilityRegistry+ Zod validation (shared/desktop-schemas.ts). - Isomorphic Desktop + Browser Connect Script. Cloud Studio (
studio/src/utils/platformHost.ts) talks to the exact sameUniversalHostBridgecontract whether hosted inside Electron or paired in a regular browser withpackages/connect-scriptover127.0.0.1HTTP + SSE. Both hosts execute the samepackages/local-atomsengine andpackages/signed-configverifier. - Five atomic local capabilities. Local host operations are composed from five audited primitives in
packages/local-atoms/:atom.detect,atom.exec,atom.installComponent,atom.credential, andatom.config. - Two-tier Ed25519 Signed Config. The shell refreshes
https://releases.open-design.ai/open-motion/desktop/config/{channel}.jsonon startup and every 30 minutes (falling back cleanly to last-known-good, then bundled defaults) so Agent rules,featureFlags,allowedOrigins, andminShellVersioncan update without shipping a new shell binary.
Decide where a change belongs
Choose the narrowest layer that avoids an unnecessary shell release:
| Need | Where to change | Shell release needed? |
|---|---|---|
| Product UI, workflows, Studio pages, API/MCP features | Cloud studio/ and src/ |
No (Web deploy only) |
Add/update a config-file MCP Agent (JSON/TOML), feature flag, allowedOrigins, or minShellVersion |
desktop/config/{test,stable}.payload.json + publish via desktop-signed-config.yml (keep packages/signed-config/default-config.ts aligned for offline fallback) |
No (hot signed config) |
| Add a native OS feature or shell capability | shared/desktop-contract.ts -> shared/desktop-schemas.ts -> desktop/src/capability-registry.ts -> desktop/src/main-capabilities.ts -> studio/src/utils/platformHost.ts |
Yes (additive-only) |
| Add/fix a local atomic operation shared by Desktop & Browser Connect Script | packages/local-atoms/ (and shared/desktop-builtin-rules.ts if expanding built-in security bounds) |
Yes for Desktop; CLI/script update for Connect Script |
| Change window chrome, safe areas, overlays, dialogs, or desktop layout | desktop/src/platform.ts, studio/src/utils/platformHost.ts, packages/design-system/base.css (follow docs/layout-contract.md) |
Only if shell chrome behavior changes |
How to add a new shell capability or method
- Extend contracts additively. Add capability/method types to
shared/desktop-contract.tsand strict Zod parameter schemas toshared/desktop-schemas.ts. Never rename, remove, or change the meaning of existing methods or error codes (UNSUPPORTED,INVALID_PARAMS,UNAUTHORIZED,ORIGIN_DENIED,POLICY_DENIED,USER_DENIED,CONFLICT,BUSY,NOT_FOUND,VERIFICATION_FAILED,TIMEOUT,EXEC_FAILED,INTERNAL_ERROR). Give every method and event exactly one name;desktop/tests/capability-registry.test.mjspins the shell capability lists, so a new name is a deliberate, permanent addition and never an alias. - Keep
desktop/src/main.tsmodular. Wire capability handlers indesktop/src/main-capabilities.ts(and factory builders indesktop/src/capability-registry.ts). Put IPC channel wiring indesktop/src/main-ipc.ts, download/update UX indesktop/src/main-downloads.ts, boot splash overlay logic indesktop/src/main-boot-overlay.ts, and test-channel environment switching indesktop/src/main-env-runtime.ts. - Consume via capability discovery in Studio. In
studio/src/utils/platformHost.tsand Studio UI, gate every new capability/method withhasHostCapability(name, minVersion)orresolveCapabilityMethod(...)so newer cloud Studio degrades gracefully on older shells (and useminShellVersionwhen an upgrade is mandatory). - Update CI trigger paths if adding cross-package imports. Any file outside
desktop/bundled intodesktop/dist/main.mjsordesktop/dist/preload.cjsmust be listed underpush.pathsin.github/workflows/desktop-release.ymland asserted indesktop/tests/updater.test.mjs.
Security and compatibility invariants
Preserve every invariant below—they are enforced by tests/desktop-security-audit.test.ts, desktop/tests/capability-registry.test.mjs, and desktop/tests/window-auth-policy.test.mjs:
- Privileged IPC boundary: Only the main window's top-level frame on an allowed Studio origin (never subframes, popups,
/auth/*,file://, or active in-window auth fallback) may call__OPENMOTION_HOST__. Always authorize viaauthorizePrivilegedIpcSender. - Window & popup policy: Allowed popups (
about:blankor same-origin) must receivePOPUP_HARDENED_WEB_PREFERENCES(preload: undefined,contextIsolation: true,nodeIntegration: false,sandbox: true). Billing, checkout, and external account portals always open in the system browser. - No arbitrary shell execution or secret leaks: Never spawn with
shell: true. Built-in templates use typed placeholder validation (shared/desktop-builtin-rules.ts);murmur-engineexplicitly blocks launcher/exec subcommands. Credentials use OS safeStorage/Keychain, inject strictly via stdin, and are redacted from stdout/logs. Connect Script pairing tokens stay in memory only. - Component install verification:
atom.installComponentenforces allowed-domain downloads (including redirects), strict SHA-256 verification, out-of-bundle installation (<dataDir>/components/or~/.murmurant/bin), and platform code-signature verification (macOS Developer ID Team ID viacodesign; Windows Authenticode SHA-256/SHA-1 thumbprint pinning viaGet-AuthenticodeSignature). - Test environment isolation: Environment switching (
env-switcher.ts,--studio-url,openmotion://open?env=...) is strictly disabled (fail-closed) onstable. Ontest/dev, custom origins get isolatedpersist:om-env-<hash>session partitions so cookies and storage never bleed across lanes. - macOS HIG & layout safety: Never attach macOS modal sheets (
modal: true+parent) that hide traffic lights or deadlock quit dialogs. Always respect--om-desktop-safe-top,--om-desktop-inset-left,--om-desktop-inset-right, and--om-workspace-top. - No committed private keys: Trust anchors (
OPENMOTION_DESKTOP_ROOT_PUBLIC_KEY_SPKI,OPENMOTION_MURMUR_APPLE_TEAM_ID,OPENMOTION_MURMUR_WIN_THUMBPRINTS) are injected at bundle time viadesktop/scripts/build.mjsfrom CI variables/secrets.
Local development and debugging
# 1. Build desktop main + preload bundles (fast esbuild step)
npm --prefix desktop run build
# 2. Launch Electron against a local Studio server (e.g. http://127.0.0.1:4173)
MOTION_DESKTOP_CHANNEL=dev npm --prefix desktop run dev -- --studio-url=http://127.0.0.1:4173
# 3. Launch Electron against a staging / test lane
MOTION_DESKTOP_CHANNEL=test npm --prefix desktop run dev -- --studio-url=https://staging.open-design.ai
# 4. Build an unsigned local macOS arm64 .dmg/.zip for manual smoke testing
npm --prefix desktop run pack:mac:local
On test / dev builds you can also switch Studio origins at runtime from the Environment menu, via openmotion://open?env=<url>, or from the retry page's environment controls.
Release and hot-config workflows
- Desktop installers (
.github/workflows/desktop-release.yml):- Pushing desktop-coupled paths to
desktop-testautomatically verifies, builds (macOS arm64,Windows x64, optionalmacOS x64), signs/notarizes macOS, uploads toreleases.open-design.ai/open-motion/desktop/test/, mergestest-mac.yml, and notifies Feishu.testbuilds never create GitHub Releases. stablereleases requireworkflow_dispatchonmainwithchannel=stableandpublish=true. After publishing verified manifests to R2,publish-manifests(permissions: contents: write) also publishes the four installers (mac-arm64.dmg,mac-x64.dmg,Setup-win-x64.exe,Portable-win-x64.exe; macOS builds are signed and notarized, Windows builds are Authenticode-signed only whenWIN_CSC_LINKis configured) andSHA256SUMS.txtto an independent GitHub Release taggeddesktop-v<version>viadesktop/scripts/publish-github-release.mjs. Desktop releases always pass--latest=false(on bothcreateandedit) sodesktop-v*releases never take over the repository's/releases/latestpointer from the npmv*release flow (.github/scripts/motion-release-notes.mjs), and re-runs only clobber an existing tag when it is a draft or matchesGITHUB_SHA.
- Pushing desktop-coupled paths to
- Hot signed config (
.github/workflows/desktop-signed-config.yml):- Updating
desktop/config/test.payload.jsonondesktop-testautomatically validates bounds, increments the live monotonicsequence, signs with the operational key/cert, runsverify-config, and uploadsopen-motion/desktop/config/test.json(no-cache). stableconfig updates run viaworkflow_dispatchonmainwithchannel=stableandpublish=true.
- Updating
Verification before handing off
Run the desktop boundary checks for every desktop/shared/atoms/signed-config change:
npm --prefix desktop run typecheck
npm --prefix desktop run build
npm --prefix desktop test
node --experimental-strip-types --test \
tests/desktop-contracts.test.ts \
tests/signed-config.test.ts \
tests/desktop-security-audit.test.ts \
tests/local-atoms.test.ts \
tests/connect-script.test.ts \
tests/desktop-showcase-e2e.test.ts
npm run check
If you also touched Studio (studio/), run npm run typecheck:studio, npm run build:studio, and the affected Vitest files (such as studio/src/utils/platformHost.test.tsx, studio/src/motion/DesktopConnectPanel.test.tsx, studio/src/motion/SettingsCenter.test.tsx). Always verify git diff --check and keep commit messages, PR descriptions, and code comments in English.
Tips for Desktop Client Dev
- • Start a fresh session after installing so your agent picks up the new skill.
- • It bundles reference files. The agent reads them only when needed, so they cost no context until then.
- • It is part of a pack with 30 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Desktop Client Dev
What does the Desktop Client Dev skill do?
Develop, extend, test and release the OpenMotion / OpenDesign Next cloud-first Electron desktop client, universal host bridge, local atomic capabilities, Web Connect Script, and two-tier signed configuration. Use when changing desktop shell code, native capabilities, preload/IPC contracts, environment switching, auto-update, or desktop CI/release workflows.
How do I install Desktop Client Dev?
Run "npx alyn-cli add desktop-client-dev" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Desktop Client Dev work in Cursor and Codex?
Yes. Desktop Client Dev uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
When should I use the Desktop Client Dev skill?
Use when changing desktop shell code, native capabilities, preload/IPC contracts, environment switching, auto-update, or desktop CI/release workflows.
What is inside the Desktop Client Dev skill?
The SKILL.md covers Architecture at a glance, Decide where a change belongs, How to add a new shell capability or method, Security and compatibility invariants, Local development and debugging, Release and hot-config workflows, and the skill folder has 2 files.
What is a good alternative to Desktop Client Dev?
Yt Script by Jakeschincariol is the highest-ranked similar skill from another creator, with an Alyn Score of 71 compared to 72 for Desktop Client Dev.
Is Desktop Client Dev free?
Desktop Client Dev is open source on GitHub under the Apache-2.0 license. It is free to install; check the license before commercial use.
Who made Desktop Client Dev?
Desktop Client Dev is published by nexu-io in the nexu-io/openmotion repository, together with 29 other skills.

