Dependency research

From dean0x/devflow · View interactive version

Dependency research is an AI agent skill from the GitHub repository dean0x/devflow. 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.

How to use this skill

Skill file

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:

Does not trigger for:

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:

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.