Development v1.0.0

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...

hgxszhj 更新于 2026-03-13 1 浏览
下载 SKILL

技能说明

Clean up unused npm dependencies in a project. Use when you want to remove packages that are installed but not used in the codebase.

使用场景

This skill helps identify and remove unused npm dependencies from a project.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/clean-unused-deps
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 15 kB
SKILL.md text/markdown
---
name: 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.
---

# Clean Unused Dependencies

This skill helps identify and remove unused npm dependencies from a project.

## Workflow

1. Identify unused dependencies using `depcheck`
2. Remove the unused dependencies with `npm uninstall`

## Prerequisites

- Node.js and npm installed
- `depcheck` installed globally (`npm install -g depcheck`)

## Instructions

1. Run `depcheck` in the project root to identify unused dependencies
2. Review the output and identify packages to remove
3. Run `npm uninstall <package-name>` for each unused package

## Example

```bash
# Check for unused dependencies
depcheck

# Remove unused package
npm uninstall unused-package-name
```

For multiple packages:
```bash
npm uninstall package1 package2 package3
```

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。