← 返回 Skills 市场
Clean Unused Deps
作者
hgxszhj-pixel
· GitHub ↗
· v1.0.0
· MIT-0
214
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clean-unused-deps - 安装完成后,直接呼叫该 Skill 的名称或使用
/clean-unused-deps触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 214 次。
如何安装 Clean Unused Deps?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clean-unused-deps」即可一键安装,无需额外配置。
Clean Unused Deps 是免费的吗?
是的,Clean Unused Deps 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Clean Unused Deps 支持哪些平台?
Clean Unused Deps 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Clean Unused Deps?
由 hgxszhj-pixel(@hgxszhj-pixel)开发并维护,当前版本 v1.0.0。
推荐 Skills