Repository navigation
Add @nodespaceai/skill npm package (closes #1184) - #1191
Conversation
Introduces packages/skill: a distributable npm package that installs the NodeSpace skill (SKILL.md + CLI reference) into PTY agent directories on the user's machine via `npx @nodespaceai/skill install`. - packages/skill/SKILL.md — complete CLI reference (create/get/search/list/update/delete) - packages/skill/src/install.ts — CLI entry point (install/uninstall commands) - packages/skill/src/installer.ts — agent detection + file copy logic - packages/skill/src/agents.ts — per-agent config (claude-code, codex, gemini, opencode) - packages/skill/src/tests/installer.test.ts — 12 tests covering detection, install, uninstall - .github/workflows/release.yml — publish-npm job builds + publishes on release tag - package.json — adds test:skill and wires skill into quality:fix/test:all Co-Authored-By: Claude <[email protected]>
Code Review SummaryReview Type: Initial Review This is a clean, well-scoped package introduction. The core installer logic is simple and correct, the test coverage is solid, and the public API surface is appropriately minimal. There are two issues that need addressing before merge: a broken Requirements Check
Findings[Critical/Blocker]
"preinstall": "node ../../enforce-bun.js",The The sibling package "preinstall": "[ -f ../../enforce-bun.js ] && node ../../enforce-bun.js || true",Apply the same guard here.
The issue acceptance criteria explicitly requires: "Package includes per-agent shims for Claude Code, Codex, Gemini CLI, OpenCode." The [Improvement]
The comment says the fallback handles "running directly from src/", but the math is wrong: const PACKAGE_ROOT = __dirname.endsWith('/dist')
? join(__dirname, '..') // dist/ → packages/skill/ ✓
: join(__dirname, '..', '..'); // src/ → packages/ ✗ (should be packages/skill/)If the binary is ever invoked directly from
mkdirSync(config.installDir, { recursive: true }); // dir created unconditionally
// ...
if (existsSync(src)) { // source check happens after
copyFileSync(src, dest);If the source
When console.log(`⚠ ${result.agent}: no files to install`);
// no process.exit(1)Combined with the [Nit]
nodespace node create --type note --content "Meeting notes" --type note
Publishing
Adding |
malibio
left a comment
There was a problem hiding this comment.
Review posted. See full findings in PR comment above.
- packages/skill/shims/: add per-agent shims from #1123 (claude-code, codex, gemini, opencode) - agents.ts: include shim files alongside SKILL.md for each agent install - installer.ts: use basename() for install dest so shims land flat in installDir; only create installDir when source files exist; fix PACKAGE_ROOT comment - install.ts: exit 1 when a detected agent has zero installed files - package.json: fix preinstall guard (conditional enforce-bun.js); remove "src" from published files - SKILL.md: fix duplicate --type flag in example - tests: updated for new shim expectations (13 tests) Co-Authored-By: Claude <[email protected]>
publish-npm now depends only on build-tauri-macos-arm (the reference platform) rather than the entire matrix. A Windows code-signing flake or Intel build failure no longer blocks npm publish. update-homebrew-cask retains needs: [build-tauri-macos-arm, build-tauri] since it needs both DMG SHAs. Co-Authored-By: Claude <[email protected]>
* Add @nodespaceai/skill npm package (closes #1184) Introduces packages/skill: a distributable npm package that installs the NodeSpace skill (SKILL.md + CLI reference) into PTY agent directories on the user's machine via `npx @nodespaceai/skill install`. - packages/skill/SKILL.md — complete CLI reference (create/get/search/list/update/delete) - packages/skill/src/install.ts — CLI entry point (install/uninstall commands) - packages/skill/src/installer.ts — agent detection + file copy logic - packages/skill/src/agents.ts — per-agent config (claude-code, codex, gemini, opencode) - packages/skill/src/tests/installer.test.ts — 12 tests covering detection, install, uninstall - .github/workflows/release.yml — publish-npm job builds + publishes on release tag - package.json — adds test:skill and wires skill into quality:fix/test:all Co-Authored-By: Claude <[email protected]> * Address review: populate shims, fix preinstall, fix installer bugs - packages/skill/shims/: add per-agent shims from #1123 (claude-code, codex, gemini, opencode) - agents.ts: include shim files alongside SKILL.md for each agent install - installer.ts: use basename() for install dest so shims land flat in installDir; only create installDir when source files exist; fix PACKAGE_ROOT comment - install.ts: exit 1 when a detected agent has zero installed files - package.json: fix preinstall guard (conditional enforce-bun.js); remove "src" from published files - SKILL.md: fix duplicate --type flag in example - tests: updated for new shim expectations (13 tests) Co-Authored-By: Claude <[email protected]> * Unblock npm publish from full Tauri matrix publish-npm now depends only on build-tauri-macos-arm (the reference platform) rather than the entire matrix. A Windows code-signing flake or Intel build failure no longer blocks npm publish. update-homebrew-cask retains needs: [build-tauri-macos-arm, build-tauri] since it needs both DMG SHAs. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
Summary
packages/skill: a distributable npm package that installs the NodeSpace skill (SKILL.md + CLI reference) into PTY agent directories vianpx @nodespaceai/skill install.github/workflows/release.ymlto publish on release tagTest plan
bun run test:skill— 12 tests should passbun run quality:fix— no lint/type errorsnpx @nodespaceai/skill installdetects present agents and installsSKILL.mdto correct pathsnpx @nodespaceai/skill uninstallcleanly removes installed filesnpx @nodespaceai/skill --helpshows correct usage@nodespaceai/skillon release tag🤖 Generated with Claude Code