skills/practices/dependency-evaluation/SKILL.md
Framework for evaluating and selecting npm packages, libraries, and tools. Use when choosing between alternatives (ORMs, auth libs, UI frameworks) or adding new dependencies.
npx skillsauth add devjarus/coding-agent dependency-evaluationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Solves: "which auth library?", "prisma vs drizzle?", "should we add this dep?"
npm audit / pip audit. Check for known CVEs. Check Snyk/Socket.devShow a structured comparison format agents should use:
## Evaluation: [Category] — [Option A] vs [Option B] vs [Option C]
| Criteria | Option A | Option B | Option C |
|----------|----------|----------|----------|
| Solves problem? | ... | ... | ... |
| Maintained? | ... | ... | ... |
| Security | ... | ... | ... |
| Bundle size | ... | ... | ... |
| TypeScript | ... | ... | ... |
| Community | ... | ... | ... |
| API stability | ... | ... | ... |
| Docs quality | ... | ... | ... |
| Escape hatch | ... | ... | ... |
| License | ... | ... | ... |
Recommendation: [Option] because [reason]
Risk: [what could go wrong]
testing
Multi-source research method — decompose a question, fan out parallel investigators, interleaved-think each result, verify claims adversarially, synthesize a cited answer. Use for breadth-heavy research, stack comparisons, "which approach wins" questions.
testing
Decide when to use unit vs integration vs e2e tests, and when to mock vs use the real thing per dependency. Dependency injection is the enabler — without it you end up monkey-patching imports. Apply when writing tests of any kind.
development
Test-driven development process — write failing test, implement to pass, refactor. Use when implementing any feature or fixing bugs.
development
Patterns for sharing types, API contracts, and validation schemas between frontend and backend. Use when multiple domains consume the same data shapes to prevent contract drift.