[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AZRBJW9XMGRMXT4SZW46M7":3,"skill-same:01M7AZRBJW9XMGRMXT4SZW46M7":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":14,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":6,"ownerDescription":42,"updatedAt":43,"install":44,"resources":56},"01M7AZRBJW9XMGRMXT4SZW46M7","open-design-setup",null,"Install Open Design and wire its MCP into coding agents.","dbillion\u002Fhermes-skills-public","dbillion","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F49393855?v=4","01M7AVH8QPGCM8WKWS22TRT0T6","Oludayo Adeoye","01M7AVH8RD1JJWA0YS9CFEWAV9",0,"MIT","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: open-design-setup\nversion: 1\nauthor: hermes\nlicense: MIT\ndescription: Install Open Design and wire its MCP into coding agents.\nmetadata:\n  hermes:\n    tags: [open-design, od, mcp, node24, pnpm, daemon]\n    related_skills: [hermes-agent]\n---\n\n# Open Design: install + wire MCP into agents\n\nOpen Design is an agent-native design engine. Its `od` CLI spawns a local daemon\nand can register Open Design as an MCP server inside other coding agents, so they\ncan pull files from \u002F push artifacts to local OD projects. This skill covers the\nfull local setup and the `od mcp install` wiring.\n\n## When to use\n- Installing Open Design from a release tarball (`open-design-*.tar.gz`) or source.\n- Building the `od` daemon so `od` \u002F `opendesign` commands work.\n- Running `od mcp install \u003Cagent>` to connect Hermes, pi, claude, codex, cursor, etc.\n- Debugging `ERR_DLOPEN_FAILED` \u002F \"No such file or directory\" when calling `od`.\n\n## Toolchain (read first — the #1 trap)\n- **Node `~24` is required** (README\u002FQUICKSTART pin `packageManager: pnpm@10.33.2`\n  and `engines` to Node 24.x). On this box `corepack` is often **missing**, so:\n  ```sh\n  npm install -g pnpm@10.33.2      # instead of `corepack enable`\n  nvm use 24.19.0                   # or fnm\u002Fwhatever manages Node 24\n  ```\n- **CRITICAL — better-sqlite3 ABI:** the daemon's native `better-sqlite3` is\n  compiled for **Node 24 (ABI 137)**. Running the daemon or `od` under Node 25\u002F22\n  fails with `ERR_DLOPEN_FAILED`. Always pin Node 24 on PATH *before* any node\n  that touches `dist\u002Fcli.js`. The `opendesign` wrapper below does this for you.\n- Persist the pin in `~\u002F.bashrc` (prepend before the existing v25 path) so fresh\n  shells and daemon restarts keep using Node 24:\n  ```sh\n  export PATH=\"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin:$PATH\"\n  ```\n\n## Install from tarball\n```sh\nmkdir -p ~\u002Fopen-design\ntar xzf \u002Fpath\u002Fto\u002Fopen-design-open-design-v0.19.2.tar.gz -C ~\u002Fopen-design\ncd ~\u002Fopen-design\u002Fopen-design\npnpm install\npnpm --filter @open-design\u002Fdaemon build   # produces apps\u002Fdaemon\u002Fdist\u002Fcli.js\n```\nThe `od` binary is `apps\u002Fdaemon\u002Fbin\u002Fod.mjs`; it throws if `..\u002Fdist\u002Fcli.js` is\nabsent, so the build step is mandatory.\n\n## The `od` binary + a wrapper\n`od` on most systems resolves to GNU coreutils `od` (octal dump) — that's why\n`od mcp install pi` gave `od: mcp: No such file or directory`. Disambiguate:\n\nCreate `~\u002F.local\u002Fbin\u002Fopendesign` (a wrapper that pins Node 24 and calls the real\nbinary — this also sidesteps the GNU `od` collision):\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# pins Node 24 so better-sqlite3 (ABI 137) loads; without it node v25 breaks OD\nexport PATH=\"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin:$PATH\"\nexec node \u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs \"$@\"\n```\n```sh\nchmod +x ~\u002F.local\u002Fbin\u002Fopendesign\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\"\nopendesign --help          # or: node ...\u002Fbin\u002Fod.mjs \u003Cargs>\n```\n(Naming it `opendesign` rather than `od` avoids shadowing GNU `od`.)\n\n## Run the daemon\nUse the project's lifecycle entry point only — do **not** use `pnpm dev` \u002F\n`pnpm daemon` (those aliases were removed):\n```sh\npnpm tools-dev            # starts daemon + web sidecars; creates the IPC socket\n```\nVerify: `ls -la \u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock` should exist.\n\n## Packaging an AppImage + desktop launch (Linux)\n\n`.dmg` installers are **macOS-only** — they cannot be mounted or run on Linux.\nOn EndeavourOS\u002FKDE use the source tarball path above; the desktop app is the\nElectron shell that wraps the daemon + web sidecars.\n\n### Build the AppImage\n```sh\npnpm --filter @open-design\u002Fdesktop build\npnpm --filter @open-design\u002Fpackaged build\npnpm tools-pack linux build --to appimage     # electron-builder; heavy (~min)\npnpm tools-pack linux install                  # copies artifact + writes .desktop entry\n```\nThe artifact lands at\n`.tmp\u002Ftools-pack\u002Fout\u002Flinux\u002Fnamespaces\u002Fdefault\u002Fbuilder\u002FOpen Design-default.AppImage`\nand `tools-pack linux install` places a copy at `~\u002F.local\u002Fbin\u002F` + a\n`~\u002F.local\u002Fshare\u002Fapplications\u002Fopen-design-default.desktop` entry.\n\n**GOTCHA — npm `allow-scripts` guard:** electron-builder runs\n`npm install --omit=dev` and your npm hardening blocks install scripts\n(`npm error code EALLOWSCRIPTS`). Fix by adding a **project-scoped** `.npmrc`\n(next to the repo root) — do NOT globally disable the guard:\n```ini\nallow-scripts[]=app-builder-bin\nallow-scripts[]=electron-builder\nallow-scripts[]=@electron\u002Frebuild\nallow-scripts[]=better-sqlite3\n```\nIf the build fails again naming a different package, add just that one.\n\n**GOTCHA — missing Electron binary:** after a pnpm install the\n`apps\u002Fdesktop\u002Fnode_modules\u002Felectron\u002Fdist\u002Felectron` binary is often absent\n(electron's postinstall was gated). `pnpm rebuild electron` may no-op; run the\ninstall script directly so it extracts the cached zip:\n```sh\ncd apps\u002Fdesktop\u002Fnode_modules\u002Felectron\nnode install.js          # materializes dist\u002Felectron (~200MB) from ~\u002F.cache\u002Felectron\n```\n\n### Run the full stack reliably (the save-bug fix)\n`pnpm tools-dev` (no flags) probes for free ports and assigns the daemon a\n**random** port. The web app's `next.config.ts` rewrites `\u002Fapi\u002F*` → `OD_PORT`\n(default `7456`). If the daemon landed on a different port, the Electron\nrenderer's `PUT \u002Fapi\u002Fapp-config` (canvas\u002Fsheet save, settings persist) hits the\ndefault `7456` → **connection refused → \"Failed to fetch\" → nothing saves**.\nThis is the #1 \"canvas\u002Fsheets not saving\" cause.\n\n**Fix:** launch with explicit, aligned ports so the web's default matches:\n```sh\npnpm tools-dev --daemon-port 7456 --web-port 4173\n```\n(`7456` is OD's canonical default; `4173` is free here — your box has\n`linkedin-scrape` on `:3000` and \"RedAmon\" on `:3001`; don't reuse those.)\nVerify the fix end-to-end through the web proxy (exactly what the browser does):\n```sh\ncurl -s -X PUT http:\u002F\u002F127.0.0.1:4173\u002Fapi\u002Fapp-config \\\n  -H 'content-type: application\u002Fjson' -d '{\"installationId\":\"x\",\"telemetry\":false}'\n# → HTTP 200 proves saves work\n```\nBake the fixed ports into your launcher script (e.g.\n`~\u002Fopen-design\u002Flaunch-open-design.sh`) so clicking the desktop icon never\nregresses to random ports.\n\n### Desktop icon on KDE Plasma\n`update-desktop-database` is a **GTK** tool — KDE ignores it. For the icon to\nappear in the Application Launcher:\n```sh\nkbuildsycoca6 --noincremental          # rebuild KDE menu cache\n```\n- `.desktop` `Categories` must have a **single main category** (e.g.\n  `Development;`). Two mains (`Development;Utility;`) makes KDE flag\u002Fhide it.\n- After editing, restart plasmashell if the menu doesn't repaint:\n  `kquitapp6 plasmashell; sleep 2; plasmashell --no-desktop &`.\n- Icon must exist at\n  `~\u002F.local\u002Fshare\u002Ficons\u002Fhicolor\u002F512x512\u002Fapps\u002F\u003Cname>.png`.\n\n### Hermes model inside Open Design\nOD invokes the Hermes agent with the model set in app-config\n(`agentModels.hermes.model`). The literal `hy3:free` is **rejected** by\nHermes's runtime (it runs on `tencent\u002Fhy3:free` via Nous). Set it to\n`default` (uses Hermes's CLI config) — otherwise Hermes \"sees\" the task but\nnever responds. Patch via the daemon API:\n```sh\ncurl -s -X PUT http:\u002F\u002F127.0.0.1:7456\u002Fapi\u002Fapp-config -H 'content-type: application\u002Fjson' \\\n  --data-binary @\u003Ccfg-with-hermes-default>.json\n```\n\n## Wire MCP into agents: `od mcp install \u003Cagent>`\n```sh\nopendesign mcp install hermes\nopendesign mcp install pi\nopendesign mcp install cursor\n```\nThree registration strategies (see `references\u002Fagent-config-paths.md` for the full\ntable and exact paths):\n- **`cli`** (claude, codex, kimi, reasonix): `od` shells out to the agent's own\n  `mcp add`. Needs that agent CLI installed; otherwise it errors.\n- **`json`** (cursor, copilot, cline, openclaw, antigravity, kiro, raven, trae,\n  opencode, claude-desktop): `od` **deep-merges** the server block into the\n  agent's JSON config itself. Safe — it won't clobber other servers.\n- **`manual`** (pi, hermes, vibe): OD **refuses to guess** the config path and\n  only prints a ready-to-paste block. You apply it by hand.\n\nThe block OD emits (same shape for every agent) is in\n`references\u002Fmcp-server-block.md`.\n\n**`mcp-cli` is a SEPARATE MCP client** with its own config (`~\u002F.mcp_servers.json`\nor `~\u002F.config\u002Fmcp\u002Fmcp_servers.json`), independent of Hermes's `~\u002F.hermes\u002Fconfig.yaml`\nand the `od mcp install` wiring. To drive Open Design programmatically through\n`mcp-cli`, you must ALSO add the `open-design` entry to `~\u002F.mcp_servers.json`\n(merge under `mcpServers`, same `command`\u002F`args`\u002F`env` block as above). Verify with\n`mcp-cli info open-design` (not `mcp-cli list` — that's an unknown subcommand;\nuse `info`\u002F`grep`\u002F`call`).\n\n### Hermes — MUST use `hermes config set` (do NOT edit the file directly)\nDirect `patch`\u002F`write` of `~\u002F.hermes\u002Fconfig.yaml` is **blocked by a security\nguard** (\"Agent cannot modify security-sensitive configuration\"). Use the guarded\nCLI instead:\n```sh\nhermes config set mcp_servers.open-design.command \"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin\u002Fnode\"\nhermes config set mcp_servers.open-design.args '[\"\u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002Fapps\u002Fdaemon\u002Fdist\u002Fcli.js\", \"mcp\"]'\nhermes config set mcp_servers.open-design.env.OD_DATA_DIR \"\u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002F.od\"\nhermes config set mcp_servers.open-design.env.OD_SIDECAR_IPC_PATH \"\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock\"\nhermes config get mcp_servers.open-design      # verify\n```\nThen **restart\u002Freload Hermes** to load the new MCP server.\n\n### pi — write the JSON config by hand\n`od mcp install pi` prints a block for `~\u002F.pi\u002Fagent\u002Fmcp.json` (JSON, `mcpServers`\nkey). That file may not exist yet — create it:\n```json\n{ \"mcpServers\": { \"open-design\": { \"command\": \"...\u002Fnode\", \"args\": [\"...\u002Fdist\u002Fcli.js\",\"mcp\"],\n  \"env\": { \"OD_DATA_DIR\": \"...\u002F.od\", \"OD_SIDECAR_IPC_PATH\": \"\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock\" } } } }\n```\nValidate: `node -e \"require('\u002Fhome\u002Fdeeone\u002F.pi\u002Fagent\u002Fmcp.json')\"`. Restart `pi`.\n\n## Programmatic control via mcp-cli (plugins \u002F designs \u002F skills)\nOnce `open-design` is in `~\u002F.mcp_servers.json`, drive OD without the GUI:\n```sh\nmcp-cli info open-design                              # server + tool list\nmcp-cli call open-design list_plugins '{}'            # ~460 plugins (design systems, templates)\nmcp-cli call open-design list_skills  '{}'            # ~162 skills\nmcp-cli call open-design start_run '{\"prompt\":\"...\",\"skill\":\"imagegen\"}'   # commission a run\nmcp-cli call open-design get_run '{\"runId\":\"\u003Cid>\"}'  # poll until terminal\n```\nYou don't invoke skills directly — you **commission a run** (`start_run`) and OD\nexecutes the skill\u002Fplugin. Active project is optional (defaults to the OD project\nopen in the GUI). See `references\u002Fmcp-cli-control.md` for the reusable od-control.sh\n(list\u002Fcount\u002Frun\u002Fstatus) and the **pipe-truncation gotcha**: for large list_* payloads,\nsave raw output to a file then parse the file — streaming `mcp-cli call ... | node`\ndrops bytes on 60KB+ responses.\n\n## Pitfalls (don't rediscover these)\n- **GNU `od` collision** → use `opendesign` wrapper or call `node ...\u002Fbin\u002Fod.mjs`.\n- **Node 25\u002F22 on PATH** → `ERR_DLOPEN_FAILED` from better-sqlite3. Pin Node 24.\n- **`~\u002F.hermes\u002Fconfig.yaml` direct edit blocked** → use `hermes config set`.\n- **Missing `dist\u002Fcli.js`** → ran `od.mjs` before `pnpm --filter @open-design\u002Fdaemon build`.\n- **`od mcp install \u003Cagent>` says \"unknown agent\"** → only the 17 `AGENT_SLUGS`\n  are valid: claude, codex, reasonix, raven, cursor, copilot, openclaw,\n  antigravity, pi, vibe, hermes, cline, kimi, kiro, trae, opencode,\n  claude-desktop.\n- **AppImage build: `EALLOWSCRIPTS`** → add `allow-scripts[]=` entries to a\n  project `.npmrc` (see Packaging section). Don't globally disable the guard.\n- **Electron window won't open \u002F `dist\u002Felectron` missing** → run\n  `node install.js` inside `apps\u002Fdesktop\u002Fnode_modules\u002Felectron`.\n- **Canvas \u002F sheets \u002F settings \"Failed to fetch\" and nothing saves** → `tools-dev`\n  assigned a random daemon port, so the web's `\u002Fapi\u002F*` rewrite to `7456` misses\n  it. Relaunch with `--daemon-port 7456 --web-port 4173` and re-test the PUT\n  through `:4173`. Bake the ports into the launcher script.\n- **Desktop icon missing on KDE** → `update-desktop-database` is GTK-only; use\n  `kbuildsycoca6`. Single main `Categories`. Restart plasmashell to repaint.\n- **Hermes task \"seen but not responding\"** → app-config `agentModels.hermes.model`\n  is `hy3:free` (rejected). Set it to `default`.\n\nSee `references\u002Fpackaging-and-troubleshooting.md` for the exact command\ntranscripts and the saved save-bug reproduction recipe.\n\n## Verification\n- Daemon: socket exists at `\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock`.\n- `opendesign mcp --help` prints usage (proves the built binary runs).\n- Hermes: after restart, the tool list shows `open-design` among MCP servers.\n- pi: `pi mcp list` (or its equivalent) shows the `open-design` server.\n\nSee `references\u002F` for the per-agent config table, the exact MCP block template,\nand the troubleshooting playbook.\n","# Open Design: install + wire MCP into agents\n\nOpen Design is an agent-native design engine. Its `od` CLI spawns a local daemon\nand can register Open Design as an MCP server inside other coding agents, so they\ncan pull files from \u002F push artifacts to local OD projects. This skill covers the\nfull local setup and the `od mcp install` wiring.\n\n## When to use\n- Installing Open Design from a release tarball (`open-design-*.tar.gz`) or source.\n- Building the `od` daemon so `od` \u002F `opendesign` commands work.\n- Running `od mcp install \u003Cagent>` to connect Hermes, pi, claude, codex, cursor, etc.\n- Debugging `ERR_DLOPEN_FAILED` \u002F \"No such file or directory\" when calling `od`.\n\n## Toolchain (read first — the #1 trap)\n- **Node `~24` is required** (README\u002FQUICKSTART pin `packageManager: pnpm@10.33.2`\n  and `engines` to Node 24.x). On this box `corepack` is often **missing**, so:\n  ```sh\n  npm install -g pnpm@10.33.2      # instead of `corepack enable`\n  nvm use 24.19.0                   # or fnm\u002Fwhatever manages Node 24\n  ```\n- **CRITICAL — better-sqlite3 ABI:** the daemon's native `better-sqlite3` is\n  compiled for **Node 24 (ABI 137)**. Running the daemon or `od` under Node 25\u002F22\n  fails with `ERR_DLOPEN_FAILED`. Always pin Node 24 on PATH *before* any node\n  that touches `dist\u002Fcli.js`. The `opendesign` wrapper below does this for you.\n- Persist the pin in `~\u002F.bashrc` (prepend before the existing v25 path) so fresh\n  shells and daemon restarts keep using Node 24:\n  ```sh\n  export PATH=\"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin:$PATH\"\n  ```\n\n## Install from tarball\n```sh\nmkdir -p ~\u002Fopen-design\ntar xzf \u002Fpath\u002Fto\u002Fopen-design-open-design-v0.19.2.tar.gz -C ~\u002Fopen-design\ncd ~\u002Fopen-design\u002Fopen-design\npnpm install\npnpm --filter @open-design\u002Fdaemon build   # produces apps\u002Fdaemon\u002Fdist\u002Fcli.js\n```\nThe `od` binary is `apps\u002Fdaemon\u002Fbin\u002Fod.mjs`; it throws if `..\u002Fdist\u002Fcli.js` is\nabsent, so the build step is mandatory.\n\n## The `od` binary + a wrapper\n`od` on most systems resolves to GNU coreutils `od` (octal dump) — that's why\n`od mcp install pi` gave `od: mcp: No such file or directory`. Disambiguate:\n\nCreate `~\u002F.local\u002Fbin\u002Fopendesign` (a wrapper that pins Node 24 and calls the real\nbinary — this also sidesteps the GNU `od` collision):\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# pins Node 24 so better-sqlite3 (ABI 137) loads; without it node v25 breaks OD\nexport PATH=\"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin:$PATH\"\nexec node \u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002Fapps\u002Fdaemon\u002Fbin\u002Fod.mjs \"$@\"\n```\n```sh\nchmod +x ~\u002F.local\u002Fbin\u002Fopendesign\nexport PATH=\"$HOME\u002F.local\u002Fbin:$PATH\"\nopendesign --help          # or: node ...\u002Fbin\u002Fod.mjs \u003Cargs>\n```\n(Naming it `opendesign` rather than `od` avoids shadowing GNU `od`.)\n\n## Run the daemon\nUse the project's lifecycle entry point only — do **not** use `pnpm dev` \u002F\n`pnpm daemon` (those aliases were removed):\n```sh\npnpm tools-dev            # starts daemon + web sidecars; creates the IPC socket\n```\nVerify: `ls -la \u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock` should exist.\n\n## Packaging an AppImage + desktop launch (Linux)\n\n`.dmg` installers are **macOS-only** — they cannot be mounted or run on Linux.\nOn EndeavourOS\u002FKDE use the source tarball path above; the desktop app is the\nElectron shell that wraps the daemon + web sidecars.\n\n### Build the AppImage\n```sh\npnpm --filter @open-design\u002Fdesktop build\npnpm --filter @open-design\u002Fpackaged build\npnpm tools-pack linux build --to appimage     # electron-builder; heavy (~min)\npnpm tools-pack linux install                  # copies artifact + writes .desktop entry\n```\nThe artifact lands at\n`.tmp\u002Ftools-pack\u002Fout\u002Flinux\u002Fnamespaces\u002Fdefault\u002Fbuilder\u002FOpen Design-default.AppImage`\nand `tools-pack linux install` places a copy at `~\u002F.local\u002Fbin\u002F` + a\n`~\u002F.local\u002Fshare\u002Fapplications\u002Fopen-design-default.desktop` entry.\n\n**GOTCHA — npm `allow-scripts` guard:** electron-builder runs\n`npm install --omit=dev` and your npm hardening blocks install scripts\n(`npm error code EALLOWSCRIPTS`). Fix by adding a **project-scoped** `.npmrc`\n(next to the repo root) — do NOT globally disable the guard:\n```ini\nallow-scripts[]=app-builder-bin\nallow-scripts[]=electron-builder\nallow-scripts[]=@electron\u002Frebuild\nallow-scripts[]=better-sqlite3\n```\nIf the build fails again naming a different package, add just that one.\n\n**GOTCHA — missing Electron binary:** after a pnpm install the\n`apps\u002Fdesktop\u002Fnode_modules\u002Felectron\u002Fdist\u002Felectron` binary is often absent\n(electron's postinstall was gated). `pnpm rebuild electron` may no-op; run the\ninstall script directly so it extracts the cached zip:\n```sh\ncd apps\u002Fdesktop\u002Fnode_modules\u002Felectron\nnode install.js          # materializes dist\u002Felectron (~200MB) from ~\u002F.cache\u002Felectron\n```\n\n### Run the full stack reliably (the save-bug fix)\n`pnpm tools-dev` (no flags) probes for free ports and assigns the daemon a\n**random** port. The web app's `next.config.ts` rewrites `\u002Fapi\u002F*` → `OD_PORT`\n(default `7456`). If the daemon landed on a different port, the Electron\nrenderer's `PUT \u002Fapi\u002Fapp-config` (canvas\u002Fsheet save, settings persist) hits the\ndefault `7456` → **connection refused → \"Failed to fetch\" → nothing saves**.\nThis is the #1 \"canvas\u002Fsheets not saving\" cause.\n\n**Fix:** launch with explicit, aligned ports so the web's default matches:\n```sh\npnpm tools-dev --daemon-port 7456 --web-port 4173\n```\n(`7456` is OD's canonical default; `4173` is free here — your box has\n`linkedin-scrape` on `:3000` and \"RedAmon\" on `:3001`; don't reuse those.)\nVerify the fix end-to-end through the web proxy (exactly what the browser does):\n```sh\ncurl -s -X PUT http:\u002F\u002F127.0.0.1:4173\u002Fapi\u002Fapp-config \\\n  -H 'content-type: application\u002Fjson' -d '{\"installationId\":\"x\",\"telemetry\":false}'\n# → HTTP 200 proves saves work\n```\nBake the fixed ports into your launcher script (e.g.\n`~\u002Fopen-design\u002Flaunch-open-design.sh`) so clicking the desktop icon never\nregresses to random ports.\n\n### Desktop icon on KDE Plasma\n`update-desktop-database` is a **GTK** tool — KDE ignores it. For the icon to\nappear in the Application Launcher:\n```sh\nkbuildsycoca6 --noincremental          # rebuild KDE menu cache\n```\n- `.desktop` `Categories` must have a **single main category** (e.g.\n  `Development;`). Two mains (`Development;Utility;`) makes KDE flag\u002Fhide it.\n- After editing, restart plasmashell if the menu doesn't repaint:\n  `kquitapp6 plasmashell; sleep 2; plasmashell --no-desktop &`.\n- Icon must exist at\n  `~\u002F.local\u002Fshare\u002Ficons\u002Fhicolor\u002F512x512\u002Fapps\u002F\u003Cname>.png`.\n\n### Hermes model inside Open Design\nOD invokes the Hermes agent with the model set in app-config\n(`agentModels.hermes.model`). The literal `hy3:free` is **rejected** by\nHermes's runtime (it runs on `tencent\u002Fhy3:free` via Nous). Set it to\n`default` (uses Hermes's CLI config) — otherwise Hermes \"sees\" the task but\nnever responds. Patch via the daemon API:\n```sh\ncurl -s -X PUT http:\u002F\u002F127.0.0.1:7456\u002Fapi\u002Fapp-config -H 'content-type: application\u002Fjson' \\\n  --data-binary @\u003Ccfg-with-hermes-default>.json\n```\n\n## Wire MCP into agents: `od mcp install \u003Cagent>`\n```sh\nopendesign mcp install hermes\nopendesign mcp install pi\nopendesign mcp install cursor\n```\nThree registration strategies (see `references\u002Fagent-config-paths.md` for the full\ntable and exact paths):\n- **`cli`** (claude, codex, kimi, reasonix): `od` shells out to the agent's own\n  `mcp add`. Needs that agent CLI installed; otherwise it errors.\n- **`json`** (cursor, copilot, cline, openclaw, antigravity, kiro, raven, trae,\n  opencode, claude-desktop): `od` **deep-merges** the server block into the\n  agent's JSON config itself. Safe — it won't clobber other servers.\n- **`manual`** (pi, hermes, vibe): OD **refuses to guess** the config path and\n  only prints a ready-to-paste block. You apply it by hand.\n\nThe block OD emits (same shape for every agent) is in\n`references\u002Fmcp-server-block.md`.\n\n**`mcp-cli` is a SEPARATE MCP client** with its own config (`~\u002F.mcp_servers.json`\nor `~\u002F.config\u002Fmcp\u002Fmcp_servers.json`), independent of Hermes's `~\u002F.hermes\u002Fconfig.yaml`\nand the `od mcp install` wiring. To drive Open Design programmatically through\n`mcp-cli`, you must ALSO add the `open-design` entry to `~\u002F.mcp_servers.json`\n(merge under `mcpServers`, same `command`\u002F`args`\u002F`env` block as above). Verify with\n`mcp-cli info open-design` (not `mcp-cli list` — that's an unknown subcommand;\nuse `info`\u002F`grep`\u002F`call`).\n\n### Hermes — MUST use `hermes config set` (do NOT edit the file directly)\nDirect `patch`\u002F`write` of `~\u002F.hermes\u002Fconfig.yaml` is **blocked by a security\nguard** (\"Agent cannot modify security-sensitive configuration\"). Use the guarded\nCLI instead:\n```sh\nhermes config set mcp_servers.open-design.command \"\u002Fhome\u002Fdeeone\u002F.nvm\u002Fversions\u002Fnode\u002Fv24.19.0\u002Fbin\u002Fnode\"\nhermes config set mcp_servers.open-design.args '[\"\u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002Fapps\u002Fdaemon\u002Fdist\u002Fcli.js\", \"mcp\"]'\nhermes config set mcp_servers.open-design.env.OD_DATA_DIR \"\u002Fhome\u002Fdeeone\u002Fopen-design\u002Fopen-design\u002F.od\"\nhermes config set mcp_servers.open-design.env.OD_SIDECAR_IPC_PATH \"\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock\"\nhermes config get mcp_servers.open-design      # verify\n```\nThen **restart\u002Freload Hermes** to load the new MCP server.\n\n### pi — write the JSON config by hand\n`od mcp install pi` prints a block for `~\u002F.pi\u002Fagent\u002Fmcp.json` (JSON, `mcpServers`\nkey). That file may not exist yet — create it:\n```json\n{ \"mcpServers\": { \"open-design\": { \"command\": \"...\u002Fnode\", \"args\": [\"...\u002Fdist\u002Fcli.js\",\"mcp\"],\n  \"env\": { \"OD_DATA_DIR\": \"...\u002F.od\", \"OD_SIDECAR_IPC_PATH\": \"\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock\" } } } }\n```\nValidate: `node -e \"require('\u002Fhome\u002Fdeeone\u002F.pi\u002Fagent\u002Fmcp.json')\"`. Restart `pi`.\n\n## Programmatic control via mcp-cli (plugins \u002F designs \u002F skills)\nOnce `open-design` is in `~\u002F.mcp_servers.json`, drive OD without the GUI:\n```sh\nmcp-cli info open-design                              # server + tool list\nmcp-cli call open-design list_plugins '{}'            # ~460 plugins (design systems, templates)\nmcp-cli call open-design list_skills  '{}'            # ~162 skills\nmcp-cli call open-design start_run '{\"prompt\":\"...\",\"skill\":\"imagegen\"}'   # commission a run\nmcp-cli call open-design get_run '{\"runId\":\"\u003Cid>\"}'  # poll until terminal\n```\nYou don't invoke skills directly — you **commission a run** (`start_run`) and OD\nexecutes the skill\u002Fplugin. Active project is optional (defaults to the OD project\nopen in the GUI). See `references\u002Fmcp-cli-control.md` for the reusable od-control.sh\n(list\u002Fcount\u002Frun\u002Fstatus) and the **pipe-truncation gotcha**: for large list_* payloads,\nsave raw output to a file then parse the file — streaming `mcp-cli call ... | node`\ndrops bytes on 60KB+ responses.\n\n## Pitfalls (don't rediscover these)\n- **GNU `od` collision** → use `opendesign` wrapper or call `node ...\u002Fbin\u002Fod.mjs`.\n- **Node 25\u002F22 on PATH** → `ERR_DLOPEN_FAILED` from better-sqlite3. Pin Node 24.\n- **`~\u002F.hermes\u002Fconfig.yaml` direct edit blocked** → use `hermes config set`.\n- **Missing `dist\u002Fcli.js`** → ran `od.mjs` before `pnpm --filter @open-design\u002Fdaemon build`.\n- **`od mcp install \u003Cagent>` says \"unknown agent\"** → only the 17 `AGENT_SLUGS`\n  are valid: claude, codex, reasonix, raven, cursor, copilot, openclaw,\n  antigravity, pi, vibe, hermes, cline, kimi, kiro, trae, opencode,\n  claude-desktop.\n- **AppImage build: `EALLOWSCRIPTS`** → add `allow-scripts[]=` entries to a\n  project `.npmrc` (see Packaging section). Don't globally disable the guard.\n- **Electron window won't open \u002F `dist\u002Felectron` missing** → run\n  `node install.js` inside `apps\u002Fdesktop\u002Fnode_modules\u002Felectron`.\n- **Canvas \u002F sheets \u002F settings \"Failed to fetch\" and nothing saves** → `tools-dev`\n  assigned a random daemon port, so the web's `\u002Fapi\u002F*` rewrite to `7456` misses\n  it. Relaunch with `--daemon-port 7456 --web-port 4173` and re-test the PUT\n  through `:4173`. Bake the ports into the launcher script.\n- **Desktop icon missing on KDE** → `update-desktop-database` is GTK-only; use\n  `kbuildsycoca6`. Single main `Categories`. Restart plasmashell to repaint.\n- **Hermes task \"seen but not responding\"** → app-config `agentModels.hermes.model`\n  is `hy3:free` (rejected). Set it to `default`.\n\nSee `references\u002Fpackaging-and-troubleshooting.md` for the exact command\ntranscripts and the saved save-bug reproduction recipe.\n\n## Verification\n- Daemon: socket exists at `\u002Ftmp\u002Fopen-design\u002Fipc\u002Fdefault\u002Fdaemon.sock`.\n- `opendesign mcp --help` prints usage (proves the built binary runs).\n- Hermes: after restart, the tool list shows `open-design` among MCP servers.\n- pi: `pi mcp list` (or its equivalent) shows the `open-design` server.\n\nSee `references\u002F` for the per-agent config table, the exact MCP block template,\nand the troubleshooting playbook.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"description":7},"hermes",1,{"hermes":27},{"tags":28,"related_skills":35},[29,30,31,32,33,34],"open-design","od","mcp","node24","pnpm","daemon",[36],"hermes-agent","master","f341c46fed021656175d5c9ccc67a72126e50bfb","skills\u002Fdevops\u002Fopen-design-setup","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public","https:\u002F\u002Fgithub.com\u002Fdbillion","I enjoy writing codes,teaching programming, solving problems, tasted automation in Python and never looked back😋😋😋💞","2026-10-14 03:31:55",{"source":8,"skillName":5,"commands":45,"prompt":54,"zipAvailable":55},[46,49,52],{"tool":47,"command":48},"npx","npx skills add dbillion\u002Fhermes-skills-public --skill open-design-setup",{"tool":50,"command":51},"bunx","bunx skills add dbillion\u002Fhermes-skills-public --skill open-design-setup",{"tool":33,"command":53},"pnpm dlx skills add dbillion\u002Fhermes-skills-public --skill open-design-setup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002FSKILL.md",true,[57,63,67,71],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fagent-config-paths.md","REFERENCE","参考文档",2063,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002Freferences\u002Fagent-config-paths.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fmcp-cli-control.md",3278,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002Freferences\u002Fmcp-cli-control.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fmcp-server-block.md",2359,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002Freferences\u002Fmcp-server-block.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fpackaging-and-troubleshooting.md",3476,"https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fdevops\u002Fopen-design-setup\u002Freferences\u002Fpackaging-and-troubleshooting.md",[76,83,90,99,106,113],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7B25T0V7RBKES86Y3RTXQRN","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7B25DSBBMZRHVD28MAX7N5X","gemini-vision-fallback","Vision fallback: Gemini REST API if vision_analyze blocked.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fvision\u002Fgemini-vision-fallback\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":94,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7B22XW9QXT2ZWWXVZDFWYZP","twitter-cli","Use twitter-cli for ALL Twitter\u002FX operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Ftwitter-cli\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7B22QMWY1B4F7BC114RG4S6","prism-scan","Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code\u002Fartifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-scan\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7B22JA5XCAP1ACT6V50WYR1","prism-reflect","Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-reflect\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7B22EB15M75M4X3C52YGDCC","prism-full","Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.","https:\u002F\u002Fgithub.com\u002Fdbillion\u002Fhermes-skills-public\u002Fblob\u002Fmaster\u002Fskills\u002Fts-superhermes-prism-full\u002FSKILL.md",[],[]]