Skip to content
Back to skills

Dependency Hygiene

ASecurity

Keep the dependency graph small, current and pointing one way.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmenttestingapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add Andersseen/agentyx --skill dependency-hygiene --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dependency Hygiene?

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

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

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-hygiene
description: Keep the dependency graph small, current and pointing one way.
---

# Dependency hygiene

Every dependency is a commitment: to its API, its release cadence and its own dependencies.

## Justify each addition

Prefer the standard library and existing project dependencies. Adding a package for a function you
could write in a few lines trades a small cost now for an upgrade obligation forever.

## Keep direction one way

Module dependencies should form a directed acyclic graph. A cycle means the two modules are really
one, and it blocks testing, reuse and independent change.

## Depend on abstractions at boundaries

Isolate third-party clients behind an interface you own so a replacement touches one place. Apply
this where the risk is real, not to every import — an indirection layer for its own sake is cost
without benefit.

## Remove what is unused

Unused dependencies still carry vulnerabilities, install time and upgrade noise. Prune them
deliberately, since no tool will decide for you that a package is no longer wanted.

## Watch the transitive graph

Direct dependency count understates the real surface. Review what a package brings with it before
adding it, and prefer libraries with a small, well-maintained tree.

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.

Comments

Loading comments…