What problem does it solve? Building command-line tools for npm packages involves recurring pitfalls: corrupted shebangs, PATH misconfiguration, broken Windows compatibility, frozen spinners, and failed global installs. This Skill provides research-backed solutions to 50+ documented CLI problems so you can ship working command-line tools without rediscovering these issues. ## Core Features & Use Cases - Installation & Distribution Fixes: Diagnose and resolve shebang corruption, binary permission issues, npm PATH problems, and pre-publish validation with npm pack testing. - Cross-Platform Compatibility: Implement correct path handling, config directory conventions (Windows/macOS/Linux), line ending management, and CI matrix testing across operating systems. - CLI Architecture Guidance: Apply Unix philosophy principles, choose argument parsing libraries (Commander.js, Yargs, parseArgs), detect monorepos (pnpm, Nx, Lerna), and handle TTY/CI interactive mode detection. - Use Case: You are publishing an npm CLI tool and users report it fails on Windows with path errors and the spinner freezes during prompts. This Skill walks you through path.join() fixes, async spinner patterns, and a GitHub Actions CI matrix to catch these issues before release. ## Quick Start Ask the agent to review your npm CLI package for cross-platform compatibility and common installation issues before publishing.