# Build apps with the OpenWorker skill One `openworker-harness-builder` skill helps your coding agent build Desktop, Web and Node.js applications with the OpenWorker Harness SDK. It works in the OpenWorker desktop app, Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf and other agents that read the shared `SKILL.md` format. It includes version-matched SDK snippets, a scoped file-organizer example, a complete streaming approval loop and separate track references. No OpenWorker checkout is required for the packaged skill, and installing it does not install the SDK or a runtime. This skill release targets SDK `0.1.0-beta.6`, including provider caching, attempt-aware streaming, per-turn session options, and auto-approver/compaction guidance. The [agent memory guide](openworker-harness-builder/references/memory.md) shows how to save and recall facts across turns and when to share them across sessions. ## Install the skill From an existing app project, install the latest published skill for your agent: ```sh npx @openworkerai/openworker-harness-builder --agent claude --project . ``` Choose the agent with `--agent`: | `--agent` | Agent | Project folder | `--global` folder | | --- | --- | --- | --- | | `openworker` | OpenWorker desktop app | `.coworker/skills/` | OpenWorker's own skills folder: `%APPDATA%\coworker\skills\` on Windows, `~/.config/coworker/skills/` on macOS and Linux | | `claude` | Claude Code | `.claude/skills/` | `~/.claude/skills/` | | `copilot` | GitHub Copilot (VS Code, CLI and cloud agent) | `.github/skills/` | `~/.copilot/skills/` | | `codex`, `cursor`, `gemini`, `opencode`, `windsurf`, `agents` | Codex, Cursor, Gemini CLI, OpenCode, Windsurf, and any other agent that reads `.agents/skills` (Copilot CLI and Copilot's cloud agent do too) | `.agents/skills/` | `~/.agents/skills/` | The skill is copied to `openworker-harness-builder/` inside that folder. The agents in the last row all read the same shared folder, so one installation serves all of them; installing again with another of those names finds the existing copy and asks before replacing it. Codex's optional `agents/openai.yaml` metadata is installed only into that shared folder; other agents ignore it, and it is left out of the OpenWorker, Claude Code and Copilot copies. Copilot gets its own folder because VS Code's default Copilot setup documents only `.github/skills` and `~/.copilot/skills`; every Copilot surface reads those. For OpenWorker, the global folder follows the desktop app: `COWORKER_STATE_DIR` or `OPENWORKER_BASE_DIR` move it the same way they move the app's state. The app reads skills afresh for each message, so the skill appears in **Settings → Skills** without a restart. For an agent that is not listed, pass its skills folder instead of an agent and scope: ```sh npx @openworkerai/openworker-harness-builder --dir /path/to/that-agent/skills ``` That creates `/path/to/that-agent/skills/openworker-harness-builder/`. The folder containing `--dir` must already exist; the installer keeps its lock and backups there, next to the skills folder rather than inside it. `--dir` replaces the agent and scope flags. An unknown `--agent` name prints the valid choices. The installer supports quoted project paths on Windows and macOS and leaves global settings alone. If a skill already exists, an interactive terminal asks before replacing it and saves the old copy as a backup. `references/installation.json` records the matching SDK version, without local checkout paths or credentials. Use `sdkVersion` from that file for the SDK. Skill and SDK package versions may differ; this skill release targets SDK `0.1.0-beta.6`. ### Across your projects For user-wide installation, use `--global` instead of `--project`: ```sh npx @openworkerai/openworker-harness-builder --agent openworker --global ``` ```sh npx @openworkerai/openworker-harness-builder --agent codex --global ``` This installs into the `--global` folder from the table, making the skill available across projects for your user on this machine. It does not install into Claude web or Cowork, change account settings, or require `npm install -g` or administrator access. Choose either `--global` or `--project`, not both. Both modes require confirmation or the explicit replacement flag before replacing an existing skill. ### Detect configured agents Use `--agent opencode` to select OpenCode directly. To install for agents that already have known configuration folders, use `--detect-agents` in place of `--agent`. ```sh npx @openworkerai/openworker-harness-builder --detect-agents --global npx @openworkerai/openworker-harness-builder --detect-agents --project . ``` Global detection checks your home directory and the OpenWorker state folder. Project detection also checks the selected project, and writes only to that project. For example, `.opencode/` or `~/.config/opencode/` signals OpenCode. The installer prints the agents it detected and installs one copy for agents that share `.agents/skills`. Use `--agent` for an agent that has yet to create its settings, or `--dir` to specify a custom destination. Existing copies follow the usual replacement prompts and backup rules. If one destination fails, the installer reports it, attempts the others, and exits with an error status. ### Update an existing installation Run the same install command again. In an interactive terminal it asks: ```text Replace the existing skill? A backup will be saved. [y/N] ``` Enter `y` or `yes` to replace it. Enter or `n` leaves it unchanged. For scripts, or to skip the prompt explicitly, use: ```sh npx @openworkerai/openworker-harness-builder --agent claude --global --replace-existing ``` ```sh npx @openworkerai/openworker-harness-builder --agent codex --project . --replace-existing ``` Non-interactive installs never prompt and require `--replace-existing` to update. Every replacement saves the complete old directory, including custom files, under `skill-backups/` next to the skills folder (for example `.claude/skill-backups/`, `.agents/skill-backups/`, `.github/skill-backups/` or `.coworker/skill-backups/`). The installer prints the exact backup path. Backups are outside the active skills directory, so coding agents do not load duplicates. A new complete copy replaces the old one; obsolete files are not merged into it. If activation fails, the installer attempts to restore the previous copy and reports its backup location if automatic restoration fails. Review customizations before copying any back. An interrupted installer can leave an installation lock in the folder that holds the skills folder (for example `.claude/` or `.agents/`). If the next install reports that lock, first confirm no installer is running, then review and remove the reported lock directory before retrying. Existing backups are never automatically deleted. Skill and SDK publications are independent: updating this Skill does not replace the README inside an already-installed SDK package. Use the bundled version-matched references for these examples and `installation.json` for the exact SDK pin. Unversioned commands select npm's `latest` release. To pin an installation for reproducibility, append `@` to the package name. The installer records the compatible SDK version separately; the skill and SDK versions may differ. The skill is discoverable in the selected scope. Restart the coding-agent session if it does not appear. Invoke `$openworker-harness-builder` in Codex or `/openworker-harness-builder` in Claude Code, or in any agent ask: > Use the openworker-harness-builder skill to build a desktop app that summarizes a selected code directory. Explain the SDK calls as you build, test the app, and prepare an unpacked desktop package. For the Web track: > Use the openworker-harness-builder skill to build a web app where I can upload a PDF and ask questions with page references. Explain the agent and session code and test the application locally. The shared skill includes a [Railway deployment track](openworker-harness-builder/references/railway.md) and Docker assets. The default is one Node service serving the frontend and API, with the Rust harness running as a managed child process. The recipe has been tested locally and on Railway with the published SDK, including streamed Claude responses and conversation recovery after redeployment. Vercel recipes and a cluster-operations skill will follow separately. This installer targets local coding-agent sessions and the OpenWorker desktop app. ## Claude workspace uploads Claude's **Customize → Skills → Upload** is a separate installation route. For that flow, zip the complete installed `openworker-harness-builder` directory, including its references, Docker assets and `references/installation.json`; uploading only `SKILL.md` loses the supporting files. The npm `.tgz` package is not this upload format. Uploading a skill provides instructions, not an installed SDK, runtime, or permission to deploy an app. The workspace upload flow has not been qualified by this package's local installer tests. ## Try the local candidate From an OpenWorker checkout, the existing source command remains available: ```sh node skills/install.mjs --agent codex --project /path/to/your-app ``` Prepare the standalone package without compiling or downloading a native runtime: ```sh node skills/prepare.mjs /absolute/new-skills-candidate ``` Install the resulting archive into a temporary project or use it through npm exec: ```sh npm exec --package /absolute/new-skills-candidate/archives/openworkerai-openworker-harness-builder-0.1.0-beta.9.tgz -- openworker-harness-builder --agent codex --project /path/to/your-app ``` The preparer never publishes. Source package manifests remain private; staged candidates remove that marker for the separately reviewed publication step. The Skill's exact `openworkerSdkVersion` pin is independent of the native-release manifest in a checkout; preserve the SDK version qualified for that Skill release. Installation locations follow each agent's official skill documentation: [Codex](https://developers.openai.com/codex/skills), [Claude Code](https://code.claude.com/docs/en/skills), [GitHub Copilot](https://docs.github.com/en/copilot/concepts/agents/about-agent-skills), [Gemini CLI](https://geminicli.com/docs/cli/skills/), [OpenCode](https://opencode.ai/docs/skills/), [Cursor](https://cursor.com/docs/skills) and [Windsurf](https://docs.windsurf.com/windsurf/cascade/skills). OpenWorker's folders come from `coworker/skills/store.py` and `coworker/secrets.py` in this repository. Validate source, file scope and packed installation with `node --test skills/install.test.mjs skills/package.test.mjs skills/local-script.test.mjs`. To include the native approval/resume test, set `OW_SKILL_SDK_NODE_MODULES` to an absolute consumer `node_modules` containing the matching published SDK/runtime. That test uses a loopback model fixture and does not spend model tokens. ## Railway recipe checks The Railway reference and Docker assets are installed with the skill. To exercise the container contract locally using a verified SDK artifact manifest: ```sh OW_RAILWAY_CONTAINER_TEST=1 \ OW_SDK_PUBLICATION_MANIFEST=/absolute/path/to/publication-manifest.json \ node --test skills/railway-container.test.mjs ``` This opt-in test builds a Linux Node image from the bundled Dockerfile, supplies the SDK/runtime archives without a source checkout dependency, and uses a local model fixture. It checks native discovery, the configured port, readiness, unauthorized requests, streamed text, clean shutdown and conversation recovery after replacing the container with the same named volume. It also checks that local secrets and host node_modules are excluded from the image. It cleans up its own containers, volume, network and image. Debian packages may be downloaded during image build; model traffic stays on an isolated Docker network. This does not qualify live Railway routing, credentials, billing or deployment replacement. Those checks require an authorized Railway target. A separate live Railway check used SDK `0.1.0-beta.1`, the bundled Dockerfile, one replica and a persistent `/data` volume. It verified HTTPS routing, rejected unauthenticated requests, streamed output before model completion, explicit cancellation, graceful shutdown, unchanged session references after redeployment, and real Anthropic recall of earlier conversation content. This qualifies the single-service recipe; it does not establish multi-replica or zero-downtime behavior. When upgrading from the earlier `openworker-apps` skill, review and remove that old skill from the same installation scope after installing the new name. Replacement applies only to `openworker-harness-builder`; the old-named skill is left untouched.