Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Search file contents using regex pattern across directories. Cross-platform pure Python implementation (no external tools needed). Returns matching lines with file paths and line numbers.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✗→✓ | ▲ Improved | -54% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -17% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -7% | 0% |
| case-22 | ✗→✓ | ▲ Improved | -23% | 0% |
| case-08 | ✓→✗ | ▼ Worse | -25% | 0% |
跨平台内容搜索工具。
| 参数 | 类型 | 必填 | 说明 | |-----|------|-----|------| | pattern | string | 是 | 正则表达式搜索模式 | | path | string | 否 | 搜索目录(默认当前目录) | | include | string | 否 | 文件名 glob 过滤(如 ".py") | | context_lines | integer | 否 | 匹配行前后的上下文行数(默认 0) | | max_results | integer | 否 | 最大返回匹配数(默认 50) | | case_insensitive | boolean | 否 | 是否忽略大小写(默认 false) |
搜索函数定义:
json{ "pattern": "def test_", "include": "*.py" }
搜索 TODO 标记(忽略大小写):
json{ "pattern": "TODO|FIXME", "case_insensitive": true, "max_results": 20 }
搜索并显示上下文:
json{ "pattern": "class.*Error", "path": "src/", "context_lines": 3 }
glob: 按文件名模式查找文件read-file: 读取搜索到的文件edit-file: 编辑搜索到的匹配Other measured skills in the registry, with their headline benchmark lift.