← Back to Skills Marketplace
Clean Unused Deps
by
hgxszhj-pixel
· GitHub ↗
· v1.0.0
· MIT-0
214
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install clean-unused-deps
Description
Clean up unused npm dependencies in a project. Use when you want to remove packages that are installed but not used in the codebase.
README (SKILL.md)
Clean Unused Dependencies
This skill helps identify and remove unused npm dependencies from a project.
Workflow
- Identify unused dependencies using
depcheck - Remove the unused dependencies with
npm uninstall
Prerequisites
- Node.js and npm installed
depcheckinstalled globally (npm install -g depcheck)
Instructions
- Run
depcheckin the project root to identify unused dependencies - Review the output and identify packages to remove
- Run
npm uninstall \x3Cpackage-name>for each unused package
Example
# Check for unused dependencies
depcheck
# Remove unused package
npm uninstall unused-package-name
For multiple packages:
npm uninstall package1 package2 package3
Usage Guidance
This skill appears coherent for identifying and removing unused npm packages, but take precautions before uninstalling: run it in a git branch, commit or stash changes first so you can revert; run your test suite and build after removals; be aware depcheck can miss dynamic imports or tools invoked only in scripts (CI/build). Prefer running depcheck via npx (npx depcheck) rather than a global install, and review depcheck output carefully before running npm uninstall. If you let an agent run this autonomously, restrict it from executing destructive commands without explicit user confirmation.
Capability Analysis
Type: OpenClaw Skill
Name: clean-unused-deps
Version: 1.0.0
The skill 'clean-unused-deps' provides straightforward instructions for identifying and removing unused npm dependencies using the legitimate 'depcheck' utility and 'npm uninstall' command. The logic in SKILL.md is transparent, aligns with the stated purpose, and contains no indicators of malicious intent, data exfiltration, or unauthorized execution.
Capability Assessment
Purpose & Capability
Name and description match the instructions: it uses depcheck to detect unused npm deps and npm uninstall to remove them. The requested tools (Node/npm and depcheck) are appropriate for this task.
Instruction Scope
The SKILL.md confines actions to running depcheck and npm uninstall, which is within scope. However, the instructions are minimal and omit safety guidance (e.g., run tests, use a branch, use version control, review dynamic imports or build-time dependencies). The simple workflow could lead to accidental removal of legitimately used packages if depcheck reports false positives.
Install Mechanism
No install spec and no code files — lowest-risk, instruction-only skill. It does recommend installing depcheck globally but does not perform any downloads or write to disk itself.
Credentials
The skill requests no environment variables, credentials, or config paths — consistent and proportional for its purpose.
Persistence & Privilege
always is false and the skill does not request persistent/system privileges. It does not modify other skills or system-wide settings.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clean-unused-deps - After installation, invoke the skill by name or use
/clean-unused-deps - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of the clean-unused-deps skill.
- Provides instructions for identifying and removing unused npm dependencies from a project.
- Guides users to use depcheck and npm uninstall for dependency cleanup.
- Includes prerequisites, step-by-step workflow, and example commands.
Metadata
Frequently Asked Questions
What is Clean Unused Deps?
Clean up unused npm dependencies in a project. Use when you want to remove packages that are installed but not used in the codebase. It is an AI Agent Skill for Claude Code / OpenClaw, with 214 downloads so far.
How do I install Clean Unused Deps?
Run "/install clean-unused-deps" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Clean Unused Deps free?
Yes, Clean Unused Deps is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Clean Unused Deps support?
Clean Unused Deps is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Clean Unused Deps?
It is built and maintained by hgxszhj-pixel (@hgxszhj-pixel); the current version is v1.0.0.
More Skills