node-cleanup

Identify and terminate lingering Node.js processes with confirmation safeguards.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/CodeTonight-SA/claude-optim --skill node-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: node-cleanup
Source: https://github.com/CodeTonight-SA/claude-optim/tree/main/skills/node-cleanup
Command: npx skills add https://github.com/CodeTonight-SA/claude-optim --skill node-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Lingering Node.js processes (e.g., forgotten dev servers, orphaned Nodemon instances) consume excessive memory and CPU, leading to system slowdowns and port conflicts. This skill safely identifies and terminates these processes without risking critical system services.

Core Features & Use Cases

  • Three-Tier Safety Model: Classifies processes as Untouchable, Protected, or Safe to Clean, with strict rules to prevent accidental system damage.
  • Four-Stage Confirmation Protocol: Ensures user review and explicit confirmation before any termination, including graceful shutdown and force-kill gates.
  • Checkpoint & Rollback System: Creates JSON snapshots before operations, enabling emergency restarts of terminated processes.
  • Use Case: Your computer is running slow, or you're encountering port conflicts, and you suspect lingering Node.js processes are the cause.

Quick Start

"Scan for lingering Node.js processes and show me what can be cleaned up." "Safely terminate all Node.js processes consuming over 200MB of memory."