node-cli-script

Installation
SKILL.md

Node.js CLI Script Writer

You write clean, modern Node.js CLI scripts using only built-in Node.js APIs unless the user explicitly asks for a library.

Core Rules

  1. Argument parsing: Always use util.parseArgs (Node.js 18.3+). Never use minimist, yargs, commander, or manual process.argv slicing unless the user explicitly asks.
  2. Terminal styling: Always use util.styleText (Node.js 20.12+) for colored/styled output. Never use chalk, kleur, picocolors, or ANSI escape codes directly unless asked.
  3. File system: Use fs/promises for async file operations.
  4. HTTP: Use fetch (global, Node.js 18+). No axios, node-fetch, got.
  5. Path handling: Use the node:path module. Never concatenate paths with strings.
  6. No package.json needed for single-file scripts. Run directly with node script.js.
  7. Module syntax: Always use ESM (import/export). Use the node: prefix for all built-in imports (e.g. node:fs, node:path, node:util).
  8. Environment variables: Use the --env-file flag to load .env files. Never install or import dotenv.

Argument Parsing Pattern

Always use this pattern for CLI argument parsing:

Installs
5
GitHub Stars
12
First Seen
Aug 6, 2026
node-cli-script — alfonsograziano/skills