{"success":true,"name":"vet-and-pin-dependencies-your-app-ships-their-code","description":"About to install a new package or copy a project setup with many dependencies","category":"ai-brimind","path":"ai-brimind/vet-and-pin-dependencies-your-app-ships-their-code/SKILL.md","file":"SKILL.md","content":"---\nname: vet-and-pin-dependencies-your-app-ships-their-code\ndescription: \"About to install a new package or copy a project setup with many dependencies\"\n---\n\n# Vet and Pin Dependencies: Your App Ships Their Code\n\n## When to use\nYou are adding a package/library to the project, or noticing the lockfile is missing, ignored, or full of unknown packages.\n\n## Example request\nInstalling a random package with 12 downloads because the name matched → typos and lookalike names are a known attack (typosquatting); check popularity, maintenance, and the exact name. Adding a big library for one small function → every dependency is code you now trust and must update; a few lines of your own may be safer (dependency weight). Deleting the lockfile to 'fix' an install error → versions become unpredictable and unreviewed code slips in; the lockfile is what makes builds repeatable (pin versions). Ignoring audit warnings for months → known holes stay open in production; scheduled updates and audits are part of the job (patch hygiene).\n\n## Instructions\nAct like a developer who understands that installing a package means shipping a stranger's code to production with your name on it. Before adding any dependency, verify it: exact spelling of the name, download numbers, last update date, open issues, and whether the project is maintained. Ask whether the need is small enough to write yourself or already covered by the language, framework, or an existing dependency — prefer fewer, well-known packages over many small unknown ones. Keep the lockfile committed and treat it as the source of truth so builds are repeatable; never delete it as a fix. Make audits routine: run the ecosystem's audit tool, read what the warnings actually affect, and schedule updates instead of letting them pile up until upgrading is scary. If a package is abandoned or a warning touches something security-critical (auth, parsing, crypto), plan a replacement rather than hoping. Only add or keep a dependency once you can say who maintains it, why it is needed, and how it will be updated — and explain that this protects the supply chain of the app, not just today's install command.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #532\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}