Get the FREE Ultimate OpenClaw Setup Guide →

cli-tools

npx machina-cli add skill netresearch/cli-tools-skill/cli-tools --openclaw
Files (1)
SKILL.md
3.3 KB

CLI Tools Skill

Manage CLI tool installation, environment auditing, and updates.

Triggers

Reactive (auto-install):

bash: <tool>: command not found

Proactive (audit): "check environment", "what's missing", "update tools"

Capabilities

  1. Reactive: Auto-install missing tools on "command not found"
  2. Proactive: Audit project dependencies and tool versions
  3. Maintenance: Batch update all managed tools

Preferred Tools

When multiple tools can accomplish the same task, prefer the modern alternative for speed, correctness, and simpler syntax.

Instead of...Use...WhySkill
grep on coderg (ripgrep)10x faster, respects .gitignorefile-search
findfd5x faster, simpler syntaxfile-search
grep on PDFs/docsrga (ripgrep-all)Searches inside PDFs, archivesfile-search
cloc / wc -ltokei or scc10-100x faster, accuratefile-search
grep/awk on JSONjqStructured extractiondata-tools
sed/awk on YAMLyqSyntax-aware, preserves commentsdata-tools
sed on JSONjq or daselCorrect escapingdata-tools
awk/Python on CSVqsvHandles quoting, 100x fasterdata-tools
sed on TOML/XMLdaselUniversal format supportdata-tools
diff on codedifft (difftastic)Syntax-aware diffsgit-workflow
git commit --fixupgit absorbAuto-detects parent commitgit-workflow
Manual security grepsemgrep --config autoAST-aware, OWASP rulesetssecurity-audit
time for benchmarkshyperfineStatistical analysis, comparison(this skill)
cat for viewingbatSyntax highlighting, git integration-

Workflows

Missing Tool Resolution

  1. Diagnose: check if tool exists elsewhere (which, command -v, type -a)
  2. Install: lookup in references/binary_to_tool_map.md, run scripts/install_tool.sh <tool> install
  3. Verify: confirm with which <tool> and <tool> --version, retry original command

See references/resolution-workflow.md for detailed diagnostic and verification steps.

Environment Audit

scripts/check_environment.sh audit .

Scripts

ScriptPurpose
install_tool.shInstall/update/uninstall tools
auto_update.shBatch update package managers
check_environment.shAudit environment
detect_project_type.shDetect project type

Catalog (74 tools)

Core CLI, Languages, Package Managers, DevOps, Linters, Security, Git Tools

References

ReferenceUse when...
references/binary_to_tool_map.mdMapping binary names to catalog entries
references/project_type_requirements.mdChecking what tools a project type needs
references/preferred-tools.mdDetailed usage patterns and examples for preferred tools
references/resolution-workflow.mdFull diagnostic/install/verify workflow for missing tools
references/troubleshooting.mdPATH issues, permission problems, installation blocked

Contributing: https://github.com/netresearch/cli-tools-skill

Source

git clone https://github.com/netresearch/cli-tools-skill/blob/main/skills/cli-tools/SKILL.mdView on GitHub

Overview

The cli-tools skill automates the installation of missing CLI utilities, audits project environments, and batch updates managed tools. It reacts when a command is not found, proactively checks what's missing, and keeps tooling up to date across projects.

How This Skill Works

It monitors shell executions for 'command not found' errors and uses a reference map to install the appropriate tool via install_tool.sh. For audits, it runs check_environment.sh audit to enumerate dependencies and versions, and for maintenance it executes auto_update.sh to update all managed tools.

When to Use It

  • When you type a command and receive 'command not found' and want the tool installed automatically.
  • When starting a new project and you need to ensure all required CLI tools are installed.
  • When you want to audit a repository to see missing or outdated tools and their versions.
  • When you need to batch update all managed tools to the latest versions.
  • When you want to switch to faster or more reliable modern alternatives as recommended.

Quick Start

  1. Step 1: Try a command; if it's missing, cli-tools will auto-install the appropriate tool.
  2. Step 2: If you want to audit, run scripts/check_environment.sh audit . to enumerate dependencies and versions.
  3. Step 3: For maintenance, run scripts/auto_update.sh to batch-update all managed tools.

Best Practices

  • Reference references/binary_to_tool_map.md for exact mappings to install.
  • Prefer modern alternatives (as noted in preferred-tools) for speed and correctness.
  • Verify installations with which <tool> and <tool> --version after install.
  • Run environment audits regularly (CI or pre-commit) to catch drift early.
  • Use the provided scripts (install_tool.sh, auto_update.sh, check_environment.sh) for consistent operations.

Example Use Cases

  • A developer types a missing command and the tool auto-installs automatically.
  • A project kickoff runs scripts/check_environment.sh audit . to list missing tools and versions.
  • The team runs auto_update.sh to refresh all managed tools in one sweep.
  • Codebase searches switch from grep to ripgrep (rg) following the preferred-tools guidance.
  • Cloning a repo triggers the resolution workflow to diagnose and install missing tools.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers