/dxos:composer-plugin-devfrom DXOS Project Tracking
Builds, loads, and tests Composer plugins from a local dev server outside the dxos monorepo. Handles toolchain pinning, dependency resolution, and publishing to a private registry.
Ships in DXOS Project Tracking. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You build a plugin in the user's repository and load it into the target: the Composer the user has open in their browser. The user enables your dev server in the target and tries the plugin there.
Two steps end in a handoff: something only the user can do in the target. Say exactly what to click and what they should see, and wait for them.
Two add-ons extend the flow; take each only when its condition holds:
Before step 1, put Node >=22.12 on PATH for every command. In a new repository, git init and
write a .gitignore naming .dxos/, node_modules/ and dist/.
When a command fails, look it up in REFERENCE.md.
The target supplies @dxos/*, react and effect to the plugin at runtime, so compile against an
API-compatible build: the newest main commit with packages on pkg.pr.new. Find its first 7
characters, <commit7>, and save { "commit": "<commit7>" } as
.dxos/target.json:
node --input-type=module -e 'const r = await fetch("https://api.github.com/repos/dxos/dxos/commits?sha=main&per_page=30"); for (const c of await r.json()) { const s = c.sha.slice(0, 7); if ((await fetch(`https://pkg.pr.new/dxos/dxos/@dxos/app-framework@${s}`, { method: "HEAD" })).ok) { console.log(s); break; } }'
Use 7 characters everywhere; a longer SHA installs a second copy of the SDK.
Fetch the plugin guide for that commit, and follow it for every file you write:
mkdir -p .dxos && g=https://raw.githubusercontent.com/dxos/dxos/<commit7>/docs/src/content/docs/docs
curl -fsSL $g/plex/publishing-plugins.md -o .dxos/guide.md || curl -fsSL $g/composer/publishing-plugins.md -o .dxos/guide.md
A new plugin starts from the guide's "Example: a plugin with its own navtree group"; read the "Things to know" list after it before writing code. In an existing plugin, change only the dependency pins.
Pin package.json:
@dxos/*: https://pkg.pr.new/dxos/dxos/@dxos/<name>@<commit7>, in this form even where the
guide shows another. The example needs app-framework, app-graph and app-toolkit; add a
package when you import from it.
effect, react, react-dom: the exact version the pinned @dxos/app-framework declares
(~19.3.1 → 19.3.1):
curl -fsSL https://pkg.pr.new/dxos/dxos/@dxos/app-framework@<commit7> | tar -xzO package/package.json \
| node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>{const p=JSON.parse(s);const a={...p.peerDependencies,...p.dependencies};for(const k of ["effect","react","react-dom"])console.log(k,a[k])})'
@types/react: the newest release with react's major and minor (npm view @types/react versions). Its releases lag react's, so react's own version may not exist.
Other devDependencies: the guide's, as written.
Install with npm install --legacy-peer-deps. Without the flag, npm takes peers of the pkg.pr.new
packages from the npm registry, and their react ranges conflict.
Done when the install succeeds, this lists exactly one path per package, and npx tsc --noEmit
exits 0:
find node_modules -path '*node_modules/effect/package.json' -o -path '*node_modules/react/package.json' -o -path '*node_modules/react-dom/package.json'
npx vite build
cat <outDir>/manifest.json
<outDir> is build.outDir in vite.config.ts.
Done when manifest.json names the plugin's key and version.
Start Vite's dev server in the background. composerPlugin serves
http://localhost:3967/manifest.json from it:
npx vite
Handoff: in the target, the user opens the gear in the left rail, then Plugins. Under Dev
Server they leave the Manifest URL at its default and click Enable. If Chrome asks to let the
page look for and connect to devices on the local network, they click Allow: the dev server is on
localhost. Composer loads the plugin from the dev server now and on every reload until they click
Disable.
Done when the user sees the plugin in the target, where the guide's example says it appears.
Give the user a checklist: one line per behaviour they asked for, saying what to click and what they should see. Write each so a naive implementation fails it: "a button that changes the number" means clicking it several times and seeing the number change each time.
Handoff: the user works through the checklist and reports back.
On a report of a failure:
npx tsc --noEmit.Done when the user confirms every line of the checklist on one reload with no edits in between. The work ends here, with the plugin running from the dev server, unless the user asks to publish.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dxos/dxos --plugin dxos2 skills in this plugin
Other plugins' skills for the same job