Improve Node Skill Portability
- Run
bin/skill-node-portability SKILL_PATHto inventory runnable files, import specifiers, package metadata, lockfiles, and TypeScript siblings. - Read references/node-portability.md.
- Present ambiguous imports and runtime choices before editing.
- Prefer Node built-ins; declare unavoidable third-party packages and commit
package-lock.json. - Keep runnable JavaScript as
.mjs; if TypeScript remains, commit the corresponding.mjsoutput. - Use local
npm --prefix ... ciandnpm --prefix ... run ...commands—never global installs. - Test from outside the skill directory and run the tap validator.
Use agents/node-portability-reviewer.md for an independent supply-chain and invocation review.