Skip to content
Kitbay

audit-and-reduce-dependencies

Apache-2.0Updated on Nov 10, 2026307GitHub stars

A Grafana plugin-development skill that trims a JavaScript project's dependencies with pnpm while keeping the lockfile, workspace layout and version range style intact.

What the skill teaches

A Grafana plugin-development skill that trims a JavaScript project's dependencies with pnpm while keeping the lockfile, workspace layout and version range style intact. It first runs the check-npm hardening audit, then records a baseline, removes direct dependencies that are not used, aligns duplicate versions across a monorepo, ranks the largest transitive trees in the lockfile, looks for low-risk upgrades, replaces trivial packages with inline code and applies e18e guidance. It reports each package as keep, replace or remove, with special handling for @grafana packages. It does not cover Go modules.

Capabilities

  • Remove unused direct dependencies with pnpm
  • Deduplicate dependency versions across a monorepo
  • Rank the largest transitive dependency trees
  • Report keep, replace or remove decisions