← 返回 Skills 市场
dinghaibin

Which Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
73
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install which-tool
功能描述
Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install which-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /which-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug which-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Which Tool 是什么?

Locate the full path of executable commands in the system PATH. Find command locations, verify installation, and resolve command conflicts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 73 次。

如何安装 Which Tool?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install which-tool」即可一键安装,无需额外配置。

Which Tool 是免费的吗?

是的,Which Tool 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Which Tool 支持哪些平台?

Which Tool 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Which Tool?

由 BIN(@dinghaibin)开发并维护,当前版本 v1.0.0。

💬 留言讨论