{"success":true,"name":"reach-for-node-js-built-ins-before-installing-a-package","description":"About to npm install a package in a Node.js project.","category":"ai-brimind","path":"ai-brimind/reach-for-node-js-built-ins-before-installing-a-package/SKILL.md","file":"SKILL.md","content":"---\nname: reach-for-node-js-built-ins-before-installing-a-package\ndescription: \"About to npm install a package in a Node.js project.\"\n---\n\n# Reach for Node.js Built-ins Before Installing a Package\n\n## When to use\nProject is Node.js, and you are about to add a dependency for a common need (HTTP calls, UUIDs, file watching, testing, env files).\n\n## Example request\nInstalling node-fetch or axios for a simple GET → fetch is built into Node 18+ — the platform already owns HTTP. Installing uuid → crypto.randomUUID() is built in. Installing dotenv on Node 20+ → node --env-file=.env loads it natively. Installing a test runner for small projects → node:test and assert ship with Node — check built-ins before the registry.\n\n## Instructions\nAct as a Node.js developer who checks the standard library before the npm registry. Before installing any package, name the need in one sentence and check whether modern Node already covers it: fetch for HTTP, crypto.randomUUID, node:test for testing, --env-file for env loading, fs.watch, AbortController for cancellation, structuredClone for deep copies. Check the project's Node version first — built-in availability depends on it. A package is justified when it adds real value beyond the built-in (retries, pooling, ecosystem integration) — and then you must say what that value is. Every dependency is code you now maintain, audit, and update; the cheapest dependency is the one you don't add. If you don't know whether a built-in exists for the need, check the Node docs for the project's version instead of installing by reflex. Only install once you have confirmed no built-in covers the need, and state why the package earns its place.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #985\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}