Files
memind/skills/search/SKILL.md
John 2e14873f2d Initial commit: Memind H5 portal with MindSpace, Plaza, and agent jobs.
Track application source and tests; exclude local env, user workspaces, and runtime data via .gitignore.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 15:04:43 -07:00

29 lines
839 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
name: search
description: 代码搜索技能:在代码库中搜索文本、符号、文件名(基于 ripgrep)
---
# 代码搜索
使用内置 `search` 平台扩展在工作区内快速定位代码。
## 何时使用
- 用户要找某个函数/变量/类定义在哪里
- 用户要找包含某段文字的文件
- 用户要找符合某种命名规律的文件
## 工具
| 工具 | 用途 |
|------|------|
| `search_text` | 按文本/正则搜索,支持 glob 过滤、大小写控制 |
| `search_files` | 按文件名通配符查找文件 |
| `search_symbol` | 精确匹配完整单词(适合找函数/变量名) |
## 规则
1. 优先用 `search_symbol` 找符号,精确度更高
2. `search_text``file_glob` 可缩小范围(如 `*.rs``src/**`
3. 结果超出 `max_results` 时提示用户缩小范围