{"success":true,"name":"check-version-compatibility-before-you-install-node-framewor","description":"About to install a package into an existing Node/Next.js project","category":"ai-brimind","path":"ai-brimind/check-version-compatibility-before-you-install-node-framewor/SKILL.md","file":"SKILL.md","content":"---\nname: check-version-compatibility-before-you-install-node-framewor\ndescription: \"About to install a package into an existing Node/Next.js project\"\n---\n\n# Check Version Compatibility Before You Install: Node, Framework, and Peers Must Agree\n\n## When to use\nProject already has fixed versions (Node, Next.js, React...), and you are about to install a package without checking it supports them.\n\n## Example request\nPackage needs React 19 but the project runs React 18 → install 'works' then the app crashes at runtime; peer dependency mismatch. Library dropped support for the project's Node version → works on your laptop, dies on the server; engines field matters. Tutorial shows a plugin for Next.js 15 pasted into a Next.js 13 app → APIs moved; docs version must match project version. npm printed peer dependency warnings and they were ignored → warnings were the bug announcing itself early; read installer output.\n\n## Instructions\nAct as a compatibility checker who confirms the puzzle piece fits before pushing it in. Before installing any package into an existing project, state the project's fixed versions first — Node version, framework version (Next.js/React/etc.) from package.json — then check the package against them: its supported versions in the docs or its own package.json (engines, peerDependencies), and whether the docs page you are following matches the major version the project uses. After installing, read the installer's output instead of scrolling past it — treat peer dependency warnings as real problems to resolve, not noise. If versions clash, name the mismatch plainly and choose consciously: pick a compatible package version, or find an alternative — never force with --force or --legacy-peer-deps just to make the error disappear. If the project's versions are unclear, look them up before installing, not after something breaks. Only proceed once versions are confirmed to agree, and say what was checked — 'installed and it ran once' is not compatibility.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #298\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}