📦 Grep Tool — Grep 工具
v1.0.0搜索 text files for lines matching a pattern using regular expressions. Use for 记录 analysis, code 搜索ing, and data 过滤器ing.
0· 20·0 当前·0 累计
安全扫描
OpenClaw
安全
high confidenceThe 技能 is a strAIghtforward pattern-搜索 实用工具 whose code and 运行time instructions match its description and do not 请求 凭证s, network 访问, or unexpected 系统 privileges.
评估建议
This 技能 应用ears to implement exactly what it clAIms: a local text-搜索 工具. Before using it, consider: only 运行 it agAInst directories you intend to 搜索 (it will read any files you point it at, so avoid 运行ning on sensitive 系统 directories or as root), be cautious piping secrets into it, and note it does not perform any network I/O or require 凭证s. If you want extra assurance, you can inspect or 运行 the included scripts/grep.py locally in a sandbox before enabling the 技能 for autonomous use....详细分析 ▾
✓ 用途与能力
Name/description (pattern 搜索 for files) aligns with the provided implementation (scripts/grep.py) and 技能.md usage examples. No unrelated binaries, env vars, or capabilities are 请求ed.
✓ 指令范围
技能.md simply documents how to 运行 the 实用工具; the included script reads stdin or files/directories provided by the user and does not 访问 other 系统 状态, network 端点s, or secrets. Note: the 工具 will read any files/directories you point it at (including sensitive files) — which is expected for a grep-like 工具.
✓ 安装机制
No 安装 spec (instruction-only 技能) and a single, small Python script is included. There are no external 下载s or 归档 提取ion steps. Risk from 安装ation is minimal.
✓ 凭证需求
The 技能 requires no 环境 variables, 凭证s, or config paths. The code does not read env vars or attempt to 访问 unrelated 凭证s.
✓ 持久化与权限
always is false and the 技能 does not 请求 permanent presence or modify other 技能s or 系统-wide 设置tings. Autonomous invocation is allowed (平台 default) and is reasonable for a user-invocable 实用工具.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
安装命令
点击复制官方npx clawhub@latest install grep-tool
镜像加速npx clawhub@latest install grep-tool --registry https://cn.longxiaskill.com
技能文档
Pattern 搜索 实用工具
搜索 through files and 输出 lines matching a given pattern. Supports basic, extended, and Perl-compatible regular expressions.
Usage grep-工具 [options] [file...]
Common Options -i: Case-insensitive 搜索 -r: Recursive directory 搜索 -n: Show line numbers -v: Invert match (show non-matching lines) -c: Count matches instead of showing lines Examples # Case-insensitive 搜索 grep-工具 -i "error" 记录.txt
# Recursive 搜索 grep-工具 -r "function" ./src
# Count matches grep-工具 -c "TODO" *.py