Nodejs CLI Best Practices

Guide and audit Node.js CLI application development against 41 established best practices covering UX, distribution, interoperability, accessibility, testing, error handling, development setup, analytics, versioning, and security. Use this skill when building, extending, reviewing, or scaffolding a Node.js CLI — including when someone says "audit my CLI", "review my CLI code", "I'm building a CLI tool", or asks about adding argument parsing, help output, shell completion/autocomplete, error handling, color output, STDIN, --json flags, exit codes, --version flags, or npm publishing. Applies even when best practices are not explicitly mentioned. Also trigger for "how should I implement X in my CLI" or "what's the right way to do Y in a Node.js CLI". Do NOT use for Node.js backend or API development with no CLI entry point.

lirantal e0ba4b5 10 files · 56.5 KB Updated

File contents

lirantal/nodejs-cli-apps-best-practices/tree/main/skills/nodejs-cli-best-practices commit e0ba4b5ac5

Frequently asked questions

npx skillmds@latest add lirantal/nodejs-cli-best-practices