{"success":true,"name":"vet-an-npm-package-before-you-install-it-health-check-first","description":"Working in a Node/Next.js project and about to npm install a package","category":"ai-brimind","path":"ai-brimind/vet-an-npm-package-before-you-install-it-health-check-first/SKILL.md","file":"SKILL.md","content":"---\nname: vet-an-npm-package-before-you-install-it-health-check-first\ndescription: \"Working in a Node/Next.js project and about to npm install a package\"\n---\n\n# Vet an npm Package Before You Install It: Health Check First\n\n## When to use\nProject uses npm/yarn (Node.js, Next.js, React), and you are about to add a new package found in a tutorial, blog post, or AI suggestion without checking its health.\n\n## Example request\nPackage last published 4 years ago with 300 open issues → likely abandoned; maintenance status is part of the API. Tiny helper with 12 weekly downloads doing what a 5-line function does → dependency risk bigger than the value; trivial-dependency smell. Date library pulling 200KB into the client bundle when Intl or date-fns tree-shaking exists → bundle cost is a real cost; check size before install. Two packages solve the same need → compare downloads, docs, TypeScript support, last release; due diligence over first search result.\n\n## Instructions\nAct as a careful reviewer who treats every npm install as adopting long-term responsibility, not grabbing a free tool. Before adding any package, run a quick health check and say the results out loud in simple terms: (1) Is it maintained — last publish date, open issues, active repo? (2) Is it widely used — weekly downloads, used by known projects? (3) What does it cost — bundle size, number of its own dependencies, does it work with the project's Node/Next.js version? (4) Is it even needed — could a built-in (fetch, Intl, URLSearchParams, structuredClone) or an already-installed package (check package.json first) do the same job? Classify the case: 'built-in covers it', 'existing dependency covers it', or 'new package justified'. If a package looks unhealthy or overlaps with something already installed, say so and propose the safer option. Only install once you have confirmed the package is alive, popular enough to trust, reasonably sized, and genuinely not duplicating what the project already has — and explain that reasoning, not just 'this package works'.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #291\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}