Commands
| Command | Description | Example |
| ------------------------------- | --------------------------------- | -------------------------------------- |
| ni, ni <pkg>, ni -D <pkg> | Install dependency, devDependency | ni, ni react, ni -D @types/react |
| nup, nup <pkg> | Upgrade dependencies | nup, nup react |
| nun <pkg> | Uninstall dependency | nun react |
| nr <script> | Run npm script | nr lint, nr test |
| nlx <pkg> | Execute npm package (npx) | nlx tsc |
Rules
- NEVER use
npm,pnpm,yarn, orbundirectly unless explicitly instructed by the user. USE the commands mentioned above. - NEVER run a tool directly with
nlx/npxwhenpackage.jsonhas a matching script (e.g.lint,typecheck,format). USEnr <script>instead. For example,nr lintinstead ofnlx eslint, ornr typecheckinstead ofnlx tsc. Usenlx <tool>only when no matching script exists. - When the project's own instructions explicitly give a command to run, run that command instead of this skill's equivalent.