AshirbadGudu

NPkill

開発v1.0.1
作者:AshirbadGudu更新日 2026-05-17全 2 バージョン · 最新版の公開日 2026-01-27npkill@clawhub_ashirbadgudu/npkill
スクリプトツール#Javascript

AlphaMoatによると、2026-09時点でNPkillのダウンロード数は3,454、スター数は0で、AIスキル全体5,078件中3,215位、開発では577件中413位です。

インストール数
106
ダウンロード数
3454
スター数
-
総合順位
#3,215
全体の上位 64% · 開発の上位 72%
プラットフォームインストール数ダウンロード数スター数コメント
ClawHub ↗1063366--
SkillHub ↗1063454-—

プラットフォームごとに集計方法と集計時点が異なります。

このスキルでできること

主文では npkill --dry-run による事前確認と、対話モードでの個別選択を説明しています。npkill --delete-all --yes は検出したディレクトリを自動削除します。一括削除により、まだ必要な依存関係やビルド成果物が消える可能性があります。先に出力とパスを確認し、対象を限定したワークスペースを検索して、対話式の選択を優先してください。一覧を確認せず自動削除を実行しないでください。

資料公開日 2026-10-29

できること

  • ワークスペース内で一致したディレクトリを事前確認する
  • .next または node_modules の場所を調べる
  • 不要と確認できた対象を対話式で整理する

使う場面

  • 開発用ディレクトリに不要なビルド成果物が蓄積したとき
  • dry-run の結果と一致したパスを先に確認できるとき
  • 検索範囲が限定され、対象が不要と確認できたとき

プロンプト例

スキルのドキュメントをもとに生成した例であり、実際の実行結果ではありません。

削除せず npkill --dry-run を実行して対象パスを列挙する
指定プロジェクト内の .next だけを確認する
npkill --delete-all --yes の削除範囲とリスクを説明する

月次の推移

ダウンロード数3454
2753313035062026-06 · ダウンロード数 28052026-07 · ダウンロード数 30932026-08 · ダウンロード数 32432026-09 · ダウンロード数 345426-0626-09
スター数-
0112026-06 · スター数 -2026-07 · スター数 -2026-08 · スター数 -2026-09 · スター数 -26-0626-09

2026-09 から集計方法を変更し、同名スキルを作者ごとに分けて集計し、全スキルを対象にしました。破線は変更前の月で、変更後のデータとは直接比較せず、変更をまたぐ増減も計算していません。

月ダウンロード数前月比スター数
2026-093454—-
2026-083243+4.8%-
2026-073093+10.3%-
2026-062805—-

SKILL.md 原文

作者が公開した元のファイルをテキストのまま表示しています。AlphaMoat による編集や審査はしていません。リンクはクリックできません。コマンドは内容を確認してから実行してください。取得日 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
すべて表示(全 110 行)

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

開発の人気スキル

データ月:2026-09 · ダウンロード数、スター数、インストール数は公開スキルレジストリ(ClawHub、SkillHub)から月単位で集計しています。詳しくはデータの方法論をご覧ください。