← Back to Skills Marketplace
dinghaibin

Which Tool

by BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
73
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install which-tool
Description
Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts.
README (SKILL.md)

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
Usage Guidance
This appears safe to use for basic command-path lookup. Be aware that the documented flags and multi-command examples may not work with the included script, so verify behavior before relying on it in automation.
Capability Analysis
Type: OpenClaw Skill Name: which-tool Version: 1.0.0 The skill is a simple utility to locate executable paths using Python's 'shutil.which' in 'scripts/which.py'. While the 'SKILL.md' documentation describes several advanced features (such as JSON output, symlink resolution, and multiple command support) that are not actually implemented in the provided code, the script itself is safe and lacks any indicators of malicious intent, data exfiltration, or security vulnerabilities.
Capability Assessment
Purpose & Capability
The stated purpose is coherent and low-impact, and the included script uses Python's shutil.which for a named command. However, SKILL.md advertises broader CLI features such as multiple commands and flags that are not implemented by the included script.
Instruction Scope
The instructions are normal user-invoked examples for locating commands and do not direct autonomous high-impact actions.
Install Mechanism
There is no install spec, package dependency, remote script, or install-time execution shown.
Credentials
The artifact only shows PATH-based command lookup; it does not read credentials, access private files, make network calls, or execute the located command.
Persistence & Privilege
No persistence, background behavior, privilege escalation, account access, or credential use is present in the supplied artifacts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install which-tool
  3. After installation, invoke the skill by name or use /which-tool
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug which-tool
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Which Tool?

Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts. It is an AI Agent Skill for Claude Code / OpenClaw, with 73 downloads so far.

How do I install Which Tool?

Run "/install which-tool" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Which Tool free?

Yes, Which Tool is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Which Tool support?

Which Tool is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Which Tool?

It is built and maintained by BIN (@dinghaibin); the current version is v1.0.0.

💬 Comments