본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

npkill

ashirbadgudu 제작

Calendar & Scheduling
1.8kclawskills.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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크