grep
星标12
分支0
更新时间2026年4月3日 18:13
Search for text patterns in files
安装
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
SKILL.md
readonly菜单
Search for text patterns in files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Search the web for up-to-date information using Tavily API
Press a combination of keys simultaneously (e.g., Ctrl+C, Alt+Tab)
Press a single key on the keyboard
Perform a mouse left-click at specified screen coordinates
Perform a mouse double-click at specified screen coordinates
Perform a mouse right-click at specified screen coordinates
| name | grep |
| description | Search for text patterns in files |
| context | same |
| args | [{"name":"pattern","description":"The text pattern to search for","required":true},{"name":"path","description":"Directory or file to search in","required":false},{"name":"include","description":"Glob pattern for files to include (e.g., \"*.py\")","required":false},{"name":"exclude","description":"Glob pattern for files to exclude (e.g., \"*.log\")","required":false},{"name":"context","description":"Number of lines to show before/after match","required":false},{"name":"ignore_case","description":"Case-insensitive search","required":false}] |
| tags | ["search","grep","find"] |
| category | system |
| version | 1.0.0 |
| author | cognitrix |
| allowed-tools | ["Grep"] |
| safety | {"risk-level":"low"} |
Search for text patterns in files using the Grep tool.
Grep pattern="function_name"
Grep pattern="TODO" include="*.py"
Grep pattern="error" context=3
Grep pattern="Error" ignore_case=false
Grep pattern="TODO" exclude="node_modules"
~ for home directory paths