which-tool

Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "which-tool" with this command: npx skills add dinghaibin/which-tool

Which Tool — Command Path Locator

Find the absolute path of executable commands by searching the system PATH. Essential for verifying installations, debugging "command not found" errors, detecting conflicting versions, and scripting command discovery.

Quick Start

# Find where a command is installed
which-tool python

# Find multiple commands at once
which-tool python git docker

# Find all matching paths (not just the first)
which-tool -a node

Usage

which-tool COMMAND [COMMAND...] [OPTIONS]

Options:
  -a, --all          Show all matching paths, not just the first
  -s, --silent       Exit silently (exit code only, no output)
  --readable         Show only readable executables
  --skip-aliases     Skip shell aliases, search real PATH only
  --json             Output as JSON array
  --resolve-symlinks Show real path after resolving symlinks

Examples

# Check if a command exists
which-tool python3

# Find all Python installations
which-tool -a python3

# Check multiple tools before running a script
which-tool git node npm docker

# Silent check for scripts (use exit code)
which-tool -s required-tool && echo "Found"

# Resolve actual binary through symlinks
which-tool --resolve-symlinks node

# JSON output for automated checks
which-tool python java go --json

Features

  • Standard PATH search — follows shell PATH order
  • All matches-a flag to see every matching path
  • Silent mode — exit code only, for script conditionals
  • Symlink resolution — see the real target binary
  • Multiple commands — batch check in one call
  • JSON output — structured results for automation
  • Readable check — filter to actually executable files

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Las Vegas City

Provides detailed insights into Las Vegas' entertainment, gaming, tourism, and convention industries, highlighting its business model and competitive advanta...

Registry SourceRecently Updated
General

Return Window Rescue Planner

Build an urgent return action sheet for items with deadlines, packing needs, proof, route order, and a final checklist.

Registry SourceRecently Updated
General

Caffeine Cutback Ramp Card

Build a practical 14-day caffeine cutback ramp with baseline logging, taper targets, drink swaps, check-ins, and rebound trigger notes. Use for general routi...

Registry SourceRecently Updated
General

Delivered Package Missing Claim Kit

Build a missing-package claim packet when tracking says delivered but the package is not at the door, locker, mailroom, porch, lobby, or usual drop spot. Use...

Registry SourceRecently Updated