deps-analyzer for Openclaw

A smart dependency auditor that identifies unused packages and security risks using AI to streamline your project's footprint.

lxgicstudios
v1.0.2
Jan 29, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install deps-checker

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install deps-checker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is deps-analyzer?

deps-analyzer is a powerful utility within the Openclaw Skills ecosystem designed to eliminate dependency bloat. Modern development often leads to package.json files filled with unused or outdated libraries that increase bundle size and introduce security risks. This tool provides a zero-config solution to audit your codebase, identifying exactly which packages are dead weight and which ones require urgent updates.

By leveraging the intelligence of Openclaw Skills, this analyzer doesn't just list files; it provides context. It explains the purpose of problematic dependencies and helps developers understand the implications of removing them, ensuring that even dynamic dependencies are handled with care during the optimization process.

deps-analyzer Use Cases

  • Reducing bloated bundle sizes by removing unnecessary code and libraries.
  • Cleaning up legacy repositories where the purpose of various dependencies has been forgotten.
  • Streamlining CI/CD pipelines by decreasing installation times for dependencies.
  • Resolving complex npm audit warnings by identifying and prioritizing outdated packages.

How deps-analyzer Works

  1. The tool initiates a scan using depcheck to find installed packages that lack import references in the source code.
  2. It concurrently runs npm outdated to fetch the latest version data and identify known security vulnerabilities.
  3. The raw data is processed by GPT-4o-mini to generate a human-readable analysis of each dependency's role and risk level.
  4. Results are presented as an actionable report, or optionally applied directly to the project using the auto-fix capability.

deps-analyzer Setup

To use this tool within the Openclaw Skills environment, ensure you have Node.js 18+ and a valid OpenAI API key. Run it directly using npx:

export OPENAI_API_KEY='your_api_key'
npx ai-deps

deps-analyzer Data Schema & Taxonomy

Component Description
Unused Deps A list of packages identified as having no code references.
Outdated Deps A comparison table of current version vs. latest available version.
AI Analysis Natural language descriptions of why a package is flagged and suggested actions.
Security Flags Indicators for packages with known vulnerabilities (CVEs).

deps-analyzer Advanced Features

  • Automatic removal of identified unused dependencies using the --fix flag.
  • Support for targeted directory analysis, perfect for monorepos or specific sub-modules.
  • Comprehensive scanning of both core dependencies and devDependencies to ensure full environment health.
  • Deep AI integration to interpret the impact of dependency changes before they are committed.

SKILL.md


Loading

METADATA

Github Stars: 0
forks: 0

Featured*