Skip to content
Back to skills

Dependency Research

ASecurity

This skill should be used when the user asks to "add a utility", "create a helper", "build a wrapper", or writes utility code a maintained package may already provide.

  • 23 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 3, 2026
developmentgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add dean0x/devflow --skill dependency-research --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Research?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Dependency Research
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dean0x-dependency-research/badge)](https://www.skillsdirectory.com/skills/dean0x-dependency-research)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: dependency-research
description: This skill should be used when the user asks to "add a utility", "create a helper", "build a wrapper", or writes utility code a maintained package may already provide.
user-invocable: false
allowed-tools: Read, Grep, Glob
---

# Research

Research before building. Check if a battle-tested solution exists before writing custom utility code.

## Iron Law

> **RESEARCH BEFORE BUILDING**
>
> Never write custom utility code without first checking if a battle-tested solution
> exists. The best code is code you don't write. A maintained package with thousands
> of users will always beat a hand-rolled utility in reliability, edge cases, and
> long-term maintenance.

## When This Skill Activates

**Triggers** — creating or modifying utility or infrastructure code that:
- Parses, formats, or validates data (dates, URLs, emails, UUIDs, etc.)
- Implements common algorithms (sorting, diffing, hashing, encoding)
- Wraps HTTP clients, retries, rate limiting, caching
- Handles file system operations beyond basic read/write
- Implements CLI argument parsing, logging, or configuration
- Creates test utilities (mocking, fixtures, assertions)

**Does not trigger** for:
- Domain-specific business logic unique to this project, where no generic solution could exist
- Glue code connecting existing components
- Trivial operations (< 5 lines, single-use)
- Code that intentionally avoids external dependencies (e.g., zero-dep libraries)

## Research Process

### Phase 1: Need Analysis

Before searching, write the need in one sentence, with its constraints (runtime, bundle size, license, zero-dep requirement), its must-haves and its nice-to-haves.

### Phase 2: Search

Spawn an Explore subagent when you can spawn agents, to keep main session context clean; otherwise search directly. Search for packages in the project's ecosystem (npm/PyPI/crates; check package.json/requirements.txt), existing utilities in this codebase, and framework built-ins. For each candidate, find weekly downloads, last publish date and maintenance status, bundle size and dependency count, the API surface relevant to the need, and license. Return the top 3 candidates with pros and cons, or confirm nothing suitable exists.

### Phase 3: Evaluate

Score each candidate against evaluation criteria. See `references/evaluation-criteria.md` for the full matrix.

Quick checklist:
- [ ] Last published within 12 months
- [ ] Real user base: weekly downloads > 1,000 (npm), or equivalent dependents or stars
- [ ] Few transitive dependencies, not a deep tree
- [ ] No known vulnerabilities (check Snyk/npm audit)
- [ ] API fits the use case without heavy wrapping
- [ ] License compatible with project (MIT/Apache/BSD preferred)
- [ ] Bundle size acceptable for the project context

### Phase 4: Decide

Choose one of four outcomes:

| Decision | When | Action |
|----------|------|--------|
| **Adopt** | Exact match, well-maintained, good API | Install and use directly |
| **Extend** | Partial match, needs thin wrapper | Install + write minimal adapter |
| **Compose** | No single package fits, but 2-3 small ones combine well | Install multiple, write glue code |
| **Build** | Nothing fits, or dependency cost exceeds value | Write custom, document why |

**Document the decision** in a code comment at the usage site, for example `// research: Adopted date-fns for date formatting (2M weekly downloads, 30KB)`.

## Anti-Patterns

- Choosing the most popular package without checking fit: evaluate API fit, not just popularity.
- Wrapping a package so heavily it obscures the original: if wrapping > 50% of the original API, reconsider.
- Installing a massive framework for one utility function: look for focused, single-purpose packages.

Files in this skill

  • SKILL.md4.7 KB
  • references/evaluation-criteria.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.