跳到正文
TakoAPI
返回技能列表

npkill

由 ashirbadgudu 提供

Calendar & Scheduling
1.8k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Clean up node_modules and .next folders to free up disk space using npkill.

描述

该技能的功能

npkill scans your filesystem for node_modules and .next folders, displays their sizes, and lets you delete them interactively or automatically. It targets build artifacts that accumulate across JavaScript and Next.js projects over time.

Manually hunting down node_modules with find commands shows no size info and misses nested folders; npkill lists everything with sizes and supports selective deletion in one pass.

何时使用

  • Freeing disk space before a large system update
  • Clearing out old side projects no longer in active development
  • Removing stale .next build caches after upgrading Next.js
  • Finding which projects have the largest node_modules folders
  • Running a weekly cleanup of the local development workspace

示例工作流

输入

User asks: Clean up old node_modules folders taking up space on my machine

智能体
  1. 1

    Run npkill --dry-run to preview all node_modules folders and their sizes without deleting anything

  2. 2

    Review the list and identify which projects are safe to clean

  3. 3

    Run npkill in interactive mode to browse folders and mark selections for deletion

  4. 4

    Confirm deletions using the interactive interface

输出

Selected node_modules folders removed, with disk space freed reported per deletion

前置要求

  • npkill CLI installed globally (npm install -g npkill)

安装

clawhub install ashirbadgudu/npkill

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接