NPkill: Node.js and Next.js Build Artifact Cleaner for Openclaw

A specialized CLI utility to identify and remove bloated node_modules and .next folders to reclaim storage space.

ashirbadgudu
v1.0.1
Jan 27, 2026
0
3.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install npkill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install npkill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is NPkill: Node.js and Next.js Build Artifact Cleaner?

NPkill is a powerful utility designed for JavaScript and Next.js developers who frequently encounter storage issues due to massive dependency folders. By integrating this tool into your Openclaw Skills repertoire, you can gain a bird's-eye view of your development environment and pinpoint exactly which projects are consuming the most disk space. The tool provides a visual and interactive way to manage build artifacts that would otherwise require manual and tedious searching across various directories.

This skill focuses on efficiency and safety, ensuring that developers can purge old dependencies without accidentally harming their system or active projects. Whether you are running a single cleanup or establishing a routine maintenance workflow, using this skill streamlines the process of keeping a lean and performant local development machine.

NPkill: Node.js and Next.js Build Artifact Cleaner Use Cases

  • Freeing up critical disk space when storage is exhausted by nested node_modules folders.
  • Purging legacy .next build artifacts from inactive Next.js projects to recover gigabytes of space.
  • Maintaining a clean and organized development workspace by removing build leftovers.
  • Auditing local directories to identify the largest storage-consuming projects.
  • Performing bulk automated cleanup across massive monorepos or workspace folders.

How NPkill: Node.js and Next.js Build Artifact Cleaner Works

  1. Trigger the skill via the CLI to initiate a recursive scan of the file system from your current directory.
  2. Filter for specific build artifact patterns such as node_modules or .next based on your specific requirements.
  3. Review the generated list of folders which includes real-time size calculations for each directory found.
  4. Utilize the interactive interface to select specific folders for deletion or use flags for automated removal.
  5. Verify the reclamation of disk space through the summary report provided after the cleanup execution.

NPkill: Node.js and Next.js Build Artifact Cleaner Setup

To utilize this part of your Openclaw Skills library, you must have the npkill CLI tool installed globally on your system. Run the following command in your terminal:

npm install -g npkill

After installation, you can verify it is working by running npkill --version.

NPkill: Node.js and Next.js Build Artifact Cleaner Data Schema & Taxonomy

The skill interacts with your file system and provides structured feedback based on the following parameters:

Parameter Description
Target Folder The specific directory name being searched (default: node_modules)
Scan Path The root directory where the search operation begins
Folder Size The calculated disk usage of the identified artifact, displayed in MB or GB
Protection Status A safety indicator (⚠️) marking system-critical or protected directories

NPkill: Node.js and Next.js Build Artifact Cleaner Advanced Features

  • Custom target scanning to find and delete non-standard build folders like .next or dist.
  • Dry-run mode to simulate deletions and preview potential space savings without modifying the disk.
  • Automated bulk deletion using the --delete-all flag for rapid environment resets.
  • Advanced sorting filters to organize found folders by size or name for prioritized cleanup.
  • Directory exclusion support to white-list sensitive projects from being scanned or deleted.
  • Unit toggle to switch between MB and GB views for better visibility of massive folders.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*