deps-analyzer
Find unused and outdated dependencies. Use when your package.json is a mess.
Why use this skill?
Identify and remove unused dependencies, fix stale packages, and optimize your project build with the AI-powered Deps Analyzer. Zero config required.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/lxgicstudios/ai-depsWhat This Skill Does
The Deps Analyzer skill serves as an intelligent auditor for your project's package.json file. It effectively scans your codebase to identify unused dependencies that contribute to "bloat" and flags outdated packages that may pose security risks or compatibility issues. By leveraging Node.js environment analysis and passing results through GPT-4o-mini, the tool provides human-readable explanations for each dependency, helping you understand why a package is considered redundant or stale. This automated cleanup process helps reduce installation times, shrinks bundle sizes, and streamlines maintenance for both new and legacy projects.
Installation
This skill is part of the LXGIC Dev Toolkit and is designed for immediate use without local installation. To add this capability to your OpenClaw environment, use the command: clawhub install openclaw/skills/skills/lxgicstudios/ai-deps. Ensure you have Node.js 18+ installed and the OPENAI_API_KEY environment variable set in your system path, as the analyzer requires this key to process the analysis via GPT-4o-mini.
Use Cases
Use this tool when you inherit a messy project with mystery dependencies that you are afraid to remove manually. It is ideal for developers looking to optimize their CI/CD pipelines by removing unnecessary weight from the build process. Furthermore, if you are preparing for a major framework upgrade, running this tool provides a clean slate by ensuring all listed packages are currently utilized and up-to-date. It is also a lifesaver for developers struggling with high npm audit warning counts who need a prioritized list of what to update versus what to remove entirely.
Example Prompts
- "Analyze my current project and tell me which dependencies are dead weight that I can safely remove."
- "Run the dependency analyzer on my frontend directory and provide a prioritized plan for updating vulnerable packages."
- "Check for unused dependencies in this repository and auto-fix the package.json file where possible."
Tips & Limitations
Always run this tool in a version-controlled environment so you can roll back changes if a dynamically loaded dependency is incorrectly flagged as unused. While the tool is highly accurate at detecting static imports, it might occasionally miss dependencies required by dynamic imports or specific config files. For the best results, always run npm install immediately after applying fixes to ensure your lockfile is consistent with the updated package.json.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-lxgicstudios-ai-deps": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, file-write, external-api, code-execution
Related Skills
script-gen
Generate package.json scripts with AI. Use when setting up npm scripts.
email-template-gen
Generate responsive email templates. Use when building transactional emails.
branch-namer
Generate descriptive git branch names from plain English. Use when you need a branch name that follows conventions.
cloudflare-gen
Generate Cloudflare Workers configuration and code. Use when building on the edge.
adr-writer
Generate Architecture Decision Records with AI. Use when documenting technical decisions.