本文へ移動
cccskills
無料GitHub で公開

grep

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.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md1.5 KB
  • agents/openai.yaml214 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Grep

跨平台内容搜索工具。

Parameters

参数类型必填说明
patternstring是正则表达式搜索模式
pathstring否搜索目录(默认当前目录)
includestring否文件名 glob 过滤(如 "*.py")
context_linesinteger否匹配行前后的上下文行数(默认 0)
max_resultsinteger否最大返回匹配数(默认 50)
case_insensitiveboolean否是否忽略大小写(默认 false)

Examples

搜索函数定义:

{
  "pattern": "def test_",
  "include": "*.py"
}

搜索 TODO 标记(忽略大小写):

{
  "pattern": "TODO|FIXME",
  "case_insensitive": true,
  "max_results": 20
}

搜索并显示上下文:

{
  "pattern": "class.*Error",
  "path": "src/",
  "context_lines": 3
}

Notes

  • 自动跳过 .git、node_modules、pycache、.venv 等目录
  • 自动跳过二进制文件
  • 纯 Python 实现,无需安装 ripgrep/grep
  • 返回格式: file:line_number:content

Related Skills

  • glob: 按文件名模式查找文件
  • read-file: 读取搜索到的文件
  • edit-file: 编辑搜索到的匹配

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Record important information to long-term memory for learning user preferences, successful patterns, and error lessons. When you need to remember user preferences, save successful patterns, or record lessons from errors.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

Click page elements by CSS selector or text content. When you need to click buttons, links, or select options. PREREQUISITE - must use browser_navigate to open target page first.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

Extract page content and element text from current webpage. When you need to read page information, get element values, scrape data, or verify page content.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

List all open browser tabs with their index, URL and title. When you need to check what pages are open, manage multiple tabs, or find a specific tab to switch to.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

Navigate browser to specified URL to open a webpage. When you need to open webpages or start web automation. PREREQUISITE - must call before browser_click/type operations. Auto-starts browser if not running.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

Open new browser tab and navigate to URL (keeps current page open). When you need to open additional page without closing current, or multi-task across pages. PREREQUISITE - must confirm browser is running first.

日本語の概要は準備中です。原文の説明を表示しています。

openakita/openakita1,9992026年9月24日 更新

openakita のスキルをすべて見る

このスキルの問題を報告する