auditing-cli-installs

Installation
SKILL.md

Auditing CLI Installations

Diagnose how a CLI is installed, find which copy a shell actually resolves, and safely remove old or broken duplicates.

Core model

A single command name can resolve through several independent installation channels. On macOS these are the ones that matter:

Channel Marker Where the real binary lives
Homebrew /opt/homebrew/bin/<cmd> symlink Cellar/<name>/<ver>/bin/<cmd>
npm global symlink in fnm/node installation/bin lib/node_modules/<pkg> (often a .js wrapper or a postinstall-copied binary)
Official installer ~/.<name>/bin ~/.<name>/downloads/<name>-<ver>-… versioned binaries
Standalone packages ~/.codex/packages/standalone releases/<ver>-… + current symlink
Native versioned dirs ~/.local/share/<name>/versions one directory per version, active one symlinked from ~/.local/bin

The shadowing rule: the leftmost PATH entry wins. which -a shows every candidate in order; the first one is what actually runs.

Workflow

Installs
1
GitHub Stars
2
First Seen
Today
Security Audits