Repository navigation
Description
Problem
Every app startup logs:
WARN Skill install failed: Some("Skill installer exited with status exit status: 127:
npm warn config ignoring workspace config at .../packages/desktop-app/.npmrc
sh: nodespace-skill: command not found")
Exit 127 = command not found. The skill installer never runs, so SKILL.md and the agent shims are never copied into place.
Two compounding root causes
1. packages/skill is never built
packages/skill/package.json declares bin: { "nodespace-skill": "dist/install.js" } and a build script (tsc), but packages/skill/dist/ does not exist and nothing invokes that build:
- root
build→bun run --cwd packages/desktop-app buildonly - there is a
test:skillscript but nobuild:skill packages/skillis a workspace member (workspaces: ["packages/*"]), so its bin gets linked — but the link targetdist/install.jswas never produced
Hence the resolved binary exists as a link and immediately fails to execute.
2. The invocation goes through npx, in a Bun-only repo
run_skill_installer (packages/desktop-app/src-tauri/src/skill_setup.rs:147-153):
Command::new("npx")
.args(["--yes", "@nodespaceai/skill", "install"])@nodespaceai/skill is not published to the npm registry, so npx falls back to the workspace link and hits cause 1. The stray npm warn config ignoring workspace config in the error is npm reading the repo .npmrc on its way to failing.
Per CLAUDE.md this repo is Bun-only — npm/yarn/pnpm are blocked, and bunx is the sanctioned one-off runner. Shelling out to npx contradicts that regardless of whether the package resolves.
Fix direction
Both causes must be addressed; fixing either alone leaves it broken.
Build: wire packages/skill's build into whatever produces a runnable app — either a root build:skill invoked by the app build, or as part of build:sidecars/the Tauri build. The installer is a startup dependency of the desktop app, so it must be built before the app can succeed on first run.
Invocation: decide how the installer is meant to be reached in a shipped build, then make dev match:
- If it ships inside the app bundle, invoke the built script directly (or via
bunx) rather than resolving a registry package at runtime. - If it is genuinely meant to come from npm at runtime, then
@nodespaceai/skillneeds publishing, and the failure should be a clean "not installed" state rather than an exit-127 warning every launch.
The first is more consistent with a local-first desktop app that should not depend on registry availability at startup.
Failure surfacing: the current warning fires on every launch and is otherwise silent — the user has no indication that DB-seeded skills are missing. Either make first-run failure visible/actionable, or make the absence a real no-op rather than a recurring warning.
Verification
Confirmed on a freshly reset database (2026-08-17) with a clean build from current main: warning present at startup, packages/skill/dist/ absent.
Acceptance criteria
-
packages/skillis built as part of producing a runnable app;dist/install.jsexists - Skill installation succeeds on first launch with no exit-127 warning
- Installer invocation does not shell out to
npx/npm(Bun-only per CLAUDE.md) - Decision recorded: bundled installer vs. published npm package
- A genuine install failure surfaces once and actionably, not as a silent per-launch warning
- Verified on a fresh
~/.nodespace—SKILL.mdand agent shims land in the expected locations
Activity
malibio commentedon Aug 17, 2026
Reframing — the published skill should be generated from the local agent's skills
The issue body treats this as "build
packages/skilland stop shelling out tonpx". That fixes the startup warning but misses the real architecture.Intended model:
packages/agent/src/skill_pipeline.rs(8 skills: Research & Search, Node Creation, Schema Creation, Graph Editing, Relationship Management, Node Deletion, Bulk Import, Organization) and the shared rule constants inpackages/agent/src/skill_rules.rs.The pattern already exists, but stops short
packages/agent/src/bin/gen_skill_md.rsalready regenerates a block ofpackages/skill/SKILL.mdfromskill_rules.rs, bounded by:with
--write/--check, and a test (gen_skill_md.rs:157) failing the build when the checked-in block is stale.But that covers only the schema-rules block.
SKILL.mdis 532 lines; the rest — pluspackages/skill/{src/{install,installer,agents,index,types}.ts, shims/}— is hand-maintained. So today most of the published surface can drift from the skills that actually drive the agent, which is precisely the failure mode the generator was introduced to prevent.Related: #1958 ("Structurally enforce parity between internal skill guidance and external SKILL.md") is the same concern and should be reconciled with this issue rather than solved twice.
What this changes about the fix
The startup warning is still a real bug and still needs both root causes addressed (unbuilt
dist/,npxinvocation). But the target state is bigger:skill_pipeline.rs+skill_rules.rs. Decide explicitly what remains hand-authored (installer mechanics, shims, packaging) versus generated (all guidance content).--checkpattern extended, so a guidance change that isn't regenerated fails the build).Order matters: (3) is where the startup warning lives, but deciding it before (1)/(2) risks wiring the app to an artifact whose provenance is about to change.
Open questions
@nodespaceai/skillintended to be published to npm at all, or is the separate repo the distribution channel (git-install, release asset, etc.)? This determines whethernpx @nodespaceai/skillis the right invocation once the package exists.markdown_content, or a curated subset? The in-app skills are retrieval-targeted and tool-whitelisted; an external harness may need different framing of the same rules.Added acceptance criteria
skill_pipeline.rs/skill_rules.rs, not hand-maintained in parallel--checkgate beyond the schema-rules block)malibio commentedon Aug 17, 2026
Confirmed: the distribution target does not exist yet
Checked 2026-08-17:
NodeSpaceAI. The org holds:nodespace-core,nodespace-docs,nodespace-sync,nodespace-cloud,nodespace-nlp-experiment,nodespace-cloudsync-experiment,homebrew-nodespace,nodespace-website.malibioeither — thenodespace-*repos there are the pre-consolidation set (core-types, core-logic, desktop-app, core-ui, nlp-engine, data-store, system-design, workflow-engine), none skill-related.@nodespaceai/skillis not published to npm —registry.npmjs.org/@nodespaceai%2Fskillreturns{"error":"Not found"}, and an npm text search for "nodespace" returns only unrelated third-party packages.This fully accounts for the startup failure:
npx --yes @nodespaceai/skill install(skill_setup.rs:150-151) resolves a package that has never been published, falls back to the local workspace link, and hits the unbuiltdist/.So the scope is larger than a broken invocation — the entire distribution path is unbuilt: no target repo, no published package, and the generator (
gen_skill_md.rs) covers only the schema-rules block of what would need publishing.Sequencing implication
The runtime question ("bundled copy vs. resolve the published package") cannot be settled before the distribution path exists. Suggested order:
skill_pipeline.rs/skill_rules.rsto the full publishable artifactUntil then, the app's startup attempt is guaranteed to fail. Consider making that a clean no-op (or a single actionable first-run message) rather than a per-launch exit-127 warning, so the noise stops without pre-committing to a distribution design.
Channel worth considering
homebrew-nodespacealready exists as a public distribution channel. If the skill is aimed at users who install NodeSpace, that may fit better than npm — worth deciding deliberately rather than inheriting npm because the current code happens to shell out tonpx.malibio commentedon Aug 17, 2026
Distribution: support multiple channels, but sequence them after generation
Decided direction: support as many install channels as practical. They are not alternatives — they are different entry points to the same generated artifact.
.claude-plugin/marketplace.json)installcommand, currentpackages/skill)homebrew-nodespacetapThe marketplace is the one worth adding deliberately: it is the only path where a user finds the skill rather than already knowing the install command. Every other channel presumes prior awareness of NodeSpace.
Sequencing matters
Multiple channels are cheap only after generation exists. Adding channels first makes each one another copy of the content to keep in sync — exactly the drift #1958 exists to prevent. Order:
skill_pipeline.rs/skill_rules.rsPer-agent variants are a generation requirement, not a channel one
The four agents have genuinely different integration surfaces, already reflected in
packages/skill/shims/:claude-code/nodespace-hook.tscodex/nodespace-plugin.tsgemini/nodespace-handler.ts+nodespace-tools.jsonopencode/nodespace-plugin.tsPlus differing skill-file conventions (Claude Code expects YAML frontmatter with
name/descriptiondriving retrieval). So "support many agents" means the generator emits per-agent variants, not oneSKILL.mdcopied four ways. That belongs in the generation design.Reconsider the npm dependency
npxis defensible for a cross-agent installer (Node is near-universal on dev machines), but it means publishing to npm to ship markdown plus a copy script, in a repo that is otherwise Bun-only per CLAUDE.md. A shell installer or the existing Homebrew tap would avoid the npm dependency. Worth an explicit decision rather than inheriting npm becauseskill_setup.rs:150happens to callnpx.Auto-acquire when the CLI is absent — design gap
The stated intent is that a user who installs the skill standalone gets something that knows how to acquire NodeSpace when it is not yet installed.
Current behaviour is the opposite.
packages/skill/SKILL.md:65:And
packages/skill/README.mdlists the CLI as a prerequisite rather than something the skill can obtain.Making this bootstrap instead is a real design change with a safety dimension: a skill that installs software when a coding agent encounters a missing binary should ask before acting, not silently install. Suggested shape — detect absence, explain what NodeSpace is, offer a concrete one-line install (brew or shell installer), and proceed only on explicit user confirmation.
Note
cargo install nodespace-cliis referenced in that troubleshooting row — verify it is a real published crate, or correct it.Added acceptance criteria
cargo install nodespace-clireference verified or correctedmalibio commentedon Aug 17, 2026
Decision: dedicated public repo for the artifact; source and generation stay in core
Clarified goal: NodeSpace should be listed in the marketplaces/directories that already exist — not run its own marketplace.
That is what forces a dedicated repo. The current ecosystem is third-party directories crawling GitHub — SkillsClaude (7,200+ entries, graded on an official/featured/tested/verified/unverified trust ladder), Claude Skills Hub (~42.8k skills, refreshed daily), Claude Marketplaces. Submission is name + description + repository URL, and their crawlers expect the repo to be the skill: root-level
SKILL.md, README about the skill, its own stars and issues.nodespace-corecannot serve that end. A listing pointing atnodespace-core/packages/skillresolves to a monorepo where the skill is a subdirectory and the repo identity is a knowledge-base application. It is the wrong shape for the consumer-facing artifact — not a size or visibility problem.Split:
nodespace-core—skill_pipeline.rs,skill_rules.rsnodespace-core— extendgen_skill_md.rsSKILL.md, per-agent shims, README)This matches the pattern already used for
homebrew-nodespace: a small public repo that is an output of the main one.Reference shape:
anthropics/skills— a plain public repo of skill directories.Channels then layer on the same repo at low cost: plain
git clone, the existing multi-agent installer (Codex/Gemini/OpenCode, which the Claude-centric directories do not cover), Homebrew via the existing tap, and — if ever wanted — a.claude-plugin/marketplace.json. No own-marketplace required.Blocking gap:
SKILL.mdhas no YAML frontmatterpackages/skill/SKILL.mdbegins with# NodeSpace Skill— there is no---frontmatter block.Per the official skills documentation,
nameanddescriptionare required, and thedescriptionis the only content the model sees before deciding whether to load the skill. It is also the field the directories index for search and display.Consequences today, independent of any repo decision:
Since generation already owns part of this file, the frontmatter must be generated too, from the same source as the rest. Retrieval here is known to be highly sensitive to description wording, so the generated
descriptionwarrants deliberate authoring rather than a restatement of the title.Added acceptance criteria
SKILL.mdwith valid YAML frontmatter (name,description)descriptionauthored for retrievalmalibio commentedon Aug 17, 2026
Verified:
cargo install nodespace-clidoes not workFlagged earlier as needing verification — confirmed broken. crates.io returns:
The name matches locally (
packages/cli/Cargo.toml→name = "nodespace-cli"), but it has never been published.Three places instruct users to run it:
packages/skill/SKILL.md:65command not found: nodespacepackages/skill/src/installer.ts:38packages/desktop-app/src-tauri/src/skill_setup.rs:202All three tell the user (or tell the agent to tell the user) to run a command that fails with a crates.io error. This is user-facing bad advice sitting in the document that is about to be distributed, so it should be corrected regardless of how the wider distribution work lands.
Fix: replace with an install path that actually works — the DMG (already mentioned alongside it) and/or
brew install nodespacevia the existing tap. Note the tap is currently stale (#2114), so if Homebrew becomes the recommended path, that sync matters more.Alternatively publish
nodespace-clito crates.io and make the instruction true — but that is a distribution decision of its own, andcargo installis a poor default for non-Rust users.This overlaps the auto-acquire design question already recorded here: whichever acquisition path the skill offers, all three messages should name the same one rather than three copies drifting separately.
cargo install nodespace-cliremoved or made true in all three locationsmstomar125 commentedon Aug 18, 2026
Fixed both root causes:
scripts/build-skill.ts(bun run build:skill) — buildspackages/skillvia its owntscand stagesdist/,shims/,SKILL.md,package.jsonintopackages/desktop-app/src-tauri/resources/skill/, bundled via a new Tauriresourcesentry. Wired into rootbuild,dev:tauri,tauri:build, and the pre-push gate.skill_setup.rsnow resolves the installer through Tauri'sBaseDirectory::Resource(bundled build) with a source-checkout fallback (dev/cargo test), and runs it directly viabun <path> install— no morenpx/npm.Decision: bundled installer, not a published
@nodespaceai/skillnpm package — this is a local-first app and shouldn't depend on registry availability at startup, and bundling avoids version-skew between the app and the installer. Full reasoning in the PR description.Also addressed the failure-surfacing ask: a genuine install failure now logs at WARN and emits a one-time
skill:install-failedevent to the frontend (shown via the existing status-bar error pattern); repeat failures on later launches log at DEBUG only instead of repeating the warning every startup.Verified end-to-end against an isolated fake
$HOME(never touched the real~/.nodespace/~/.claude) — the built installer correctly detects agent dirs and installsSKILL.md+ shims. PR: #2143mstomar125 commentedon Aug 18, 2026
Merged in #2143 (squash commit
b6ec420c). Closed automatically via the PR'sCloses #2113.