adding-dependencies

安装量: 1.2K
排名: #9342

安装

npx skills add https://github.com/riekelt/principal-engineer --skill adding-dependencies

Adding dependencies REQUIRED BACKGROUND: the principal-engineering skill. Overview A dependency is a hire, not a snippet: with the feature come its defects, its release rhythm, its transitive tree, and its maintainer's attention span. Core principle: exhaust what you already have, vet what you take, pin what you took, and record why. Exhaust what you already have Work down the list and stop at the first level that holds; good answers often compose two levels, an existing dependency for the hard part with a few lines of your own around it: The need itself. Speculative need is no need; skip it and say so in a line. This codebase. A helper, type, or pattern a few files away does the job; reuse it. Writing a second copy of something the repo already contains is the same defect keeping-one-source-of-truth bans for data. The standard library. Read its index before installing a package that duplicates it. The platform. A database constraint over application code, a native control over a widget library, the runtime's own primitive over a wrapper. A dependency the project already carries. Its transitive tree is already paid for. Two boundaries sit here. A transitive you start using is a NEW direct dependency: declare it, pin it to the already-resolved version, and vet it lightly since the code already ships. Check the class the reuse crosses too, because a dev-tool's transitive promoted into runtime shifts the cost to every consumer's install, not just CI. A few lines of your own. Owning twenty lines beats owning a stranger's repository, when twenty lines is truly all it takes. Only past all six: a new dependency, vetted below. Show more Installs 989 Repository riekelt/princip…engineer First Seen 4 days ago Security Audits Gen Agent Trust Hub Pass Socket Pass Snyk Pass

返回排行榜