Skip to main content

code-search

Search a codebase efficiently with ripgrep regular expressions, file globs, and git history search. Use to locate symbols, usages, and definitions instead of reading whole files.

소스 정보

저장소
agentscope-ai/agentscope-java
최근 소스 활동
2026년 5월 31일 06:31
감지된 SKILL.md 언어
영어
스타
5,924
포크
1,465

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
code-search
description
Search a codebase efficiently with ripgrep regular expressions, file globs, and git history search. Use to locate symbols, usages, and definitions instead of reading whole files.
# Code Search The built-in `grep` tool matches LITERAL text only. For real regular-expression search and history-aware lookups, drive ripgrep and git through `execute`. ## Ripgrep (regex) - Symbol definition: `rg -n "fn\s+\w+\(" src/`, `rg -n --type java "class \w+Service"`. - Usages of a name: `rg -n "\bmyFunction\b"`. - Limit by file type: `rg -n --type ts "useEffect\("`. - List files only: `rg -l "TODO"`; find files by name: `rg --files | rg <name>` or use `glob`. ## Git history search - When a string was introduced/removed: `git log -S "<string>" --oneline`. - Who/why a line changed: `git blame -L <start>,<end> <file>`. - Search tracked files: `git grep -n "<regex>"`. ## Tips - Prefer a targeted regex over reading whole files when locating symbols or call sites. - Escape regex metacharacters when you want a literal match, or pass `-F` to ripgrep. - Narrow scope with a path argument to keep output small (tool output is truncated).
GitHub에서 보기