← 返回 Skills 市场
dinghaibin

Grep Tool

作者 BIN · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install grep-tool
功能描述
Search text files for lines matching a pattern using regular expressions. Use for log analysis, code searching, and data filtering.
使用说明 (SKILL.md)

Pattern Search Utility

Search through files and output lines matching a given pattern. Supports basic, extended, and Perl-compatible regular expressions.

Usage

grep-tool [options] \x3Cpattern> [file...]

Common Options

  • -i: Case-insensitive search
  • -r: Recursive directory search
  • -n: Show line numbers
  • -v: Invert match (show non-matching lines)
  • -c: Count matches instead of showing lines

Examples

# Case-insensitive search
grep-tool -i "error" log.txt

# Recursive search
grep-tool -r "function" ./src

# Count matches
grep-tool -c "TODO" *.py
安全使用建议
This skill appears to implement exactly what it claims: a local text-search tool. Before using it, consider: only run it against directories you intend to search (it will read any files you point it at, so avoid running on sensitive system directories or as root), be cautious piping secrets into it, and note it does not perform any network I/O or require credentials. If you want extra assurance, you can inspect or run the included scripts/grep.py locally in a sandbox before enabling the skill for autonomous use.
功能分析
Type: OpenClaw Skill Name: grep-tool Version: 1.0.0 The skill implements a standard text search utility (grep) using Python's 're' and 'os' modules. The code in scripts/grep.py and the instructions in SKILL.md are consistent with the stated purpose of searching files for patterns, with no evidence of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
Name/description (pattern search for files) aligns with the provided implementation (scripts/grep.py) and SKILL.md usage examples. No unrelated binaries, env vars, or capabilities are requested.
Instruction Scope
SKILL.md simply documents how to run the utility; the included script reads stdin or files/directories provided by the user and does not access other system state, network endpoints, or secrets. Note: the tool will read any files/directories you point it at (including sensitive files) — which is expected for a grep-like tool.
Install Mechanism
No install spec (instruction-only skill) and a single, small Python script is included. There are no external downloads or archive extraction steps. Risk from installation is minimal.
Credentials
The skill requires no environment variables, credentials, or config paths. The code does not read env vars or attempt to access unrelated credentials.
Persistence & Privilege
always is false and the skill does not request permanent presence or modify other skills or system-wide settings. Autonomous invocation is allowed (platform default) and is reasonable for a user-invocable utility.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install grep-tool
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /grep-tool 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug grep-tool
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Grep Tool 是什么?

Search text files for lines matching a pattern using regular expressions. Use for log analysis, code searching, and data filtering. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。

如何安装 Grep Tool?

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

Grep Tool 是免费的吗?

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

Grep Tool 支持哪些平台?

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

谁开发了 Grep Tool?

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

💬 留言讨论