/cli-tools:cli-toolsfrom cli-tools
Installs, audits, updates, and reconciles CLI tools (ripgrep, fd, jq, yq, bat, gh, etc.). Handles 'command not found' errors, duplicate installations, and recommends modern alternatives over legacy tools.
Ships in cli-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Install, audit, update and reconcile CLI tools from the toolset's catalog
(catalog/<tool>.json, one entry per tool). The skill ships inside that
repository; every script named below lives in ${CLAUDE_SKILL_DIR}/../../scripts/
— call it by that path, never by a copy.
command not found)type -P -a <binary>, then hash -r. It may already be
installed off PATH (~/.local/bin, ~/.cargo/bin, $(go env GOPATH)/bin).references/binary_to_tool_map.md
(rg → ripgrep, ansible → ansible-core, difft → difftastic), or
jq -r 'select(.binary_name == "<binary>") | input_filename' ${CLAUDE_SKILL_DIR}/../../catalog/*.json.${CLAUDE_SKILL_DIR}/../../scripts/install_tool.sh <tool> installtype -P <binary> and <binary> --version.Full flow: references/resolution-workflow.md.
${CLAUDE_SKILL_DIR}/../../scripts/install_tool.sh <tool> <action> with action
install (default), update, uninstall, reconcile (switch to the preferred
install method and remove the other copy) or status.
${CLAUDE_SKILL_DIR}/../../scripts/check_environment.sh audit <project_dir> —
PATH problems, duplicate installations, package managers, required tools${CLAUDE_SKILL_DIR}/../../scripts/detect_project_type.sh json <project_dir> —
project types plus required and recommended catalog toolsPer-type tool lists and the tools that belong in the project rather than on the
machine (phpstan, mypy, …): references/project_type_requirements.md.
${CLAUDE_SKILL_DIR}/../../scripts/auto_update.sh update updates every detected
package manager and its packages; prefix DRY_RUN=1 to preview.
| Legacy | Modern | Legacy | Modern |
|---|---|---|---|
grep -r | rg | diff | difft |
find | fd | time | hyperfine |
| grep on JSON | jq | cat | bat |
| sed on YAML | yq | cloc | tokei / scc |
| awk on CSV | qsv | grep for security | semgrep |
| sed on TOML | dasel |
Install commands and per-tool gotchas: references/preferred-tools.md.
The shell scripts need only bash and jq, so they work straight from a fresh
plugin install. Without the Python environment two things degrade, neither
fatal: the user config (~/.config/cli-audit/config.yml) falls back to its
defaults, and the audit snapshot is not refreshed after an install
(# Warning: Failed to refresh snapshot). audit.py itself (the version
table, make audit) does need that environment: run it as
uv run --project ${CLAUDE_SKILL_DIR}/../.. python ${CLAUDE_SKILL_DIR}/../../audit.py,
which creates one on first use.
| Symptom | Fix |
|---|---|
| Installed but not found | hash -r, or add the install dir to PATH |
| No sudo | cargo install, uv tool install, a release binary; on Debian/Ubuntu apt-get download + dpkg -x |
Debian bat = batcat, fd = fdfind | symlink into ~/.local/bin/ |
| Global npm install lands off PATH | a node shim ahead of nvm — see troubleshooting |
PATH, permissions, portability (timeout on macOS) and probe pitfalls:
references/troubleshooting.md.
Before trusting a status, a count or an empty result from a shell command,
check references/shell-pitfalls.md: set -e with $(…), SIGPIPE under
pipefail, read/IFS field collapse, heredoc and quoting traps, sed -i
no-ops — and that grep in the agent's shell is ugrep, which skips
.gitignored files and gets grep -q -v wrong.
references/binary_to_tool_map.md (opens in a new tab)references/preferred-tools.md (opens in a new tab)references/project_type_requirements.md (opens in a new tab)references/resolution-workflow.md (opens in a new tab)references/shell-pitfalls.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
cli-tools, tool-installation, environment-audit, modern-tools
Other plugins' skills for the same job
cli-tools@netresearch-claude-code-marketplace is listed by netresearch/claude-code-marketplace — review the source before installing
npx claudepluginhub netresearch/claude-code-marketplace --plugin cli-tools