AshirbadGudu

NPkill

Developmentv1.0.1
By AshirbadGuduUpdated 2026-05-172 versions · latest released 2026-01-27npkill@clawhub_ashirbadgudu/npkill
Scripting#Javascript

According to AlphaMoat, as of 2026-09, NPkill has 3,454 downloads and 0 stars — ranked #3,215 of 5,078 AI skills overall, and #413 of 577 in Development.

Installs
106
Downloads
3.5K
Stars
-
Overall Rank
#3,215
Top 64% overall · Top 72% in Development
PlatformInstallsDownloadsStarsComments
ClawHub ↗1063.4K--
SkillHub ↗1063.5K-—

Platforms count differently and update at different times.

What this skill does

The primary documents using npkill --dry-run to preview matches and interactive mode to select items; npkill --delete-all --yes automatically deletes discovered directories. Bulk deletion may remove dependencies or build artifacts that are still needed. Preview and inspect paths first, scan a narrowly scoped workspace, and prefer interactive selection; do not run automatic deletion without reviewing the list.

Profile published 2026-10-29

What you can do with it

  • Preview matching directories in a workspace
  • Inspect locations of .next or node_modules folders
  • Use interactive cleanup for targets confirmed to be unnecessary

When to use it

  • When development workspaces have accumulated removable build artifacts
  • When dry-run output and matched paths can be reviewed first
  • When the scan scope is narrow and target directories are no longer needed

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Run npkill --dry-run and list matches without deleting anything
Inspect only .next directories under the specified project
Explain the deletion scope and risks of npkill --delete-all --yes

Monthly Trend

Downloads3.5K
2.8K3.1K3.5K2026-06 · Downloads 2.8K2026-07 · Downloads 3.1K2026-08 · Downloads 3.2K2026-09 · Downloads 3.5K26-0626-09
Stars-
0112026-06 · Stars -2026-07 · Stars -2026-08 · Stars -2026-09 · Stars -26-0626-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-093.5K—-
2026-083.2K+4.8%-
2026-073.1K+10.3%-
2026-062.8K—-

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.7 KB · ClawHub v1.0.1
---
name: npkill
description: Clean up node_modules and .next folders to free up disk space using npkill. Specifically designed to help JavaScript and Next.js developers remove accumulated build artifacts that consume significant storage. Provides both interactive and automated cleanup options with safety checks to protect important system directories.
---

# NPkill - Node.js and Next.js Build Artifact Cleaner

This skill leverages the npkill tool to clean up node_modules and .next folders that accumulate over time from JavaScript and Next.js development, freeing up significant disk space.

## Purpose
Show all (110 lines)

This skill addresses a common problem faced by JavaScript and Next.js developers: accumulation of large build artifact folders (node_modules, .next) that consume significant disk space over time. It provides a safe and efficient way to identify and remove these unnecessary folders.

## When to Use This Skill

Use this skill when:
- Your disk space is running low due to accumulated node_modules folders
- You want to clean up old Next.js build artifacts (.next folders)
- You need to maintain a clean development environment
- You want to identify which projects are consuming the most disk space
- You want to perform regular maintenance on your development workspace

## Core Commands

### Interactive Cleanup (Recommended)
```bash
npkill
```
Launches the interactive interface to browse and selectively delete node_modules folders. This is the safest method as it allows you to review each folder before deletion.

### Target .next Folders Specifically
```bash
npkill --target .next
```
Search specifically for .next folders (used by Next.js projects) instead of node_modules.

### Dry Run (Always Recommended First)
```bash
npkill --dry-run
```
Simulates the operation without actually deleting anything. Shows what would be deleted.

### Automated Cleanup (Use with Caution)
```bash
npkill --delete-all --yes
```
Automatically deletes all node_modules folders found. Use only after verifying with dry-run.

### View Sizes in Gigabytes
```bash
npkill --gb
```
Shows folder sizes in gigabytes instead of megabytes for easier reading.

### Scan from Specific Directory
```bash
npkill --directory /path/to/search/from
```
Starts searching from a specific directory instead of current directory.

## Safety Features

- **Warnings for Protected Directories**: npkill highlights system/app directories that shouldn't be deleted with a ⚠️ symbol
- **Interactive Confirmation**: Manual selection required in interactive mode
- **Dry-run Option**: Preview changes before executing any deletions
- **Exclusion Options**: Ability to exclude specific directories from scanning

## Common Use Cases for Next.js Developers

### Clean .next Folders Safely
```bash
# First, preview what would be deleted
npkill --target .next --dry-run

# Then, if satisfied with the preview, run interactively
npkill --target .next
```

### Regular Maintenance
```bash
# Run interactive cleanup to review and selectively delete
npkill
```

### Check Disk Usage
```bash
# View all node_modules folders sorted by size
npkill --sort=size
```

## Best Practices

1. **Always run with --dry-run first** to see what would be deleted
2. **Review warnings carefully** about protected directories marked with ⚠️
3. **Use interactive mode** for safer selective deletion
4. **Consider excluding important project directories** using --exclude if needed
5. **Schedule regular cleanup** to prevent massive accumulation

## Installation Requirements

This skill requires the npkill CLI tool to be installed globally:
```bash
npm install -g npkill
```

## Limitations

- Requires npkill to be installed separately
- May not detect all protected system directories in all environments
- Interactive mode requires terminal with arrow key support

Popular in Development

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.