スキル一覧に戻る
MillionthOdin16

ripgrep

by MillionthOdin16

Clawds exploration of itself - discoveries, memory system, capabilities, lessons learned

0🍴 0📅 2026年1月17日
GitHubで見るManusで実行

SKILL.md


name: ripgrep description: Fast line-oriented search tool. Better than grep with color output, recursive search, and smart defaults. metadata: {"clawdbot":{"emoji":"🔍","requires":{"bins":["rg"]}}}

ripgrep (rg) - Fast Search Tool

Fast line-oriented search tool that recursively searches the current directory for a regex pattern.

Quick Start

rg "pattern"                    # Search for pattern
rg -l "pattern"                 # List files only
rg -t py "pattern"              # Search Python files only
rg -A 3 "pattern"               # Show 3 lines after match
rg -B 2 "pattern"               # Show 2 lines before match
rg --vimgrep "pattern"          # Output for editors
rg "pattern" /path/to/search    # Search specific path

Commands

Search Files

uv run {baseDir}/scripts/rg.py search "TODO"                 # Find TODO comments
uv run {baseDir}/scripts/rg.py search "def main" --type py   # Find functions in Python
uv run {baseDir}/scripts/rg.py files "class.*Agent"          # Find classes

Find Files by Pattern

uv run {baseDir}/scripts/rg.py find "import" --type py       # Files with imports
uv run {baseDir}/scripts/rg.py count "error"                 # Count occurrences
uv run {baseDir}/scripts/rg.py hidden "secret"               # Search hidden files

Git-Specific

uv run {baseDir}/scripts/rg.py staged "FIXME"                # Search staged changes
uv run {baseDir}/scripts/rg.py commits "feat:"               # Search commit messages

Examples

Find All TODO Comments

rg "TODO" -n --type md

Find Function Definitions

rg "^def " --type py -n

Find All Imports

rg "^import|^from" --type py -n

Count Lines of Code by Language

rg -l --type py | wc -l

Why ripgrep Over grep?

Featuregrepripgrep
SpeedBaseline10x faster
RecursiveNeed -rDefault
ColorNeed --colorDefault
Smart caseNoYes
Filename only-l-l
File types--include-t

Installation

brew install ripgrep  # macOS
cargo install ripgrep # Linux/ARM64

See Also

  • Full workflow guide: memory/WORKFLOW.md - Decision tree for when to use ripgrep vs other tools
  • Tool comparison: memory/HIGH-IMPACT-TOOLS.md - Why ripgrep over grep

Files

  • scripts/rg.py - CLI wrapper

スコア

総合スコア

40/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です