← 返回 Skills 市场
OpenClaw Code Search
作者
Yanxingang
· GitHub ↗
· v1.0.0
470
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-code-search
功能描述
Provides fast, read-only codebase search and exploration using grep for content, glob for filenames, and tree for directory structure with filtering and limits.
安全使用建议
This skill appears to be a straightforward, read-only code search wrapper around ripgrep/fd/tree. Before installing or using it: (1) Ensure you trust the agent workspace path used in examples (/root/.openclaw/...) or change it to a safe directory — the script will read any path you give it and could expose sensitive files if asked to search system or home directories; (2) The script checks for rg/fd/tree but does not install them automatically — DESIGN.md suggests curl downloads from GitHub releases if needed; only run those manual install commands if you trust the source and checksum; (3) The shell script parses rg --json using awk in a simplistic way (not a security issue per se, but parsing could mis-handle edge cases); (4) Autonomous agent invocation is allowed by default — if you want to limit when the agent can run filesystem searches, keep the skill user-invocable only or adjust agent policies. Overall the skill is coherent with its stated purpose, but avoid pointing it at directories containing secrets unless you intend to expose that data.
功能分析
Type: OpenClaw Skill
Name: openclaw-code-search
Version: 1.0.0
The skill provides benign code search functionality using standard CLI tools (ripgrep, fd, tree), and explicitly states it's read-only. However, the `scripts/search.sh` script directly passes user-controlled input (e.g., search patterns, paths) to these external commands, which, while generally robust, presents a potential shell injection vulnerability. Additionally, the dependency check in `scripts/search.sh` suggests installing tools via `curl | tar | cp` from external GitHub URLs, introducing a supply chain risk if those sources were ever compromised.
能力评估
Purpose & Capability
Name/description (read-only code search) match the included files and runtime behavior: a shell wrapper around ripgrep (rg), fd, and tree. There are no unrelated environment variables, credentials, or config paths requested.
Instruction Scope
SKILL.md and the script direct the agent to run a local shell script which performs filesystem searches. The script only reads files and directories (search path is an explicit parameter or current dir). This matches the declared purpose. Note: the tool will read any path you point it at (including system or user dirs) so results may include sensitive files if the agent is asked to search those locations.
Install Mechanism
There is no automated install spec in the registry (instruction-only behavior). The included DESIGN.md provides manual install suggestions, including GitHub release tarball downloads and package-manager commands; those sources are standard project releases. Nothing is automatically downloaded or executed by the registry install step.
Credentials
The skill requires no environment variables, no credentials, and no special config paths. All required runtime tools are standard CLIs (rg, fd, tree) and are checked at runtime by the script — proportional to the stated functionality.
Persistence & Privilege
The skill is not marked always:true and does not request persistent system-wide changes. It does not modify other skills or global agent configuration. Autonomous invocation is allowed (platform default) but combined with no extra privileges or credentials.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-code-search - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-code-search触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: grep/glob/tree via ripgrep, fd, tree
元数据
常见问题
OpenClaw Code Search 是什么?
Provides fast, read-only codebase search and exploration using grep for content, glob for filenames, and tree for directory structure with filtering and limits. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 470 次。
如何安装 OpenClaw Code Search?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-code-search」即可一键安装,无需额外配置。
OpenClaw Code Search 是免费的吗?
是的,OpenClaw Code Search 完全免费(开源免费),可自由下载、安装和使用。
OpenClaw Code Search 支持哪些平台?
OpenClaw Code Search 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Code Search?
由 Yanxingang(@yanxingang)开发并维护,当前版本 v1.0.0。
推荐 Skills