Loading...
Loading...
Compare original and translation side by side
sg_keyword_searchsg_nls_searchsg_deepsearch_readsg_find_referencessg_go_to_definitionsg_read_file| Goal | Tool |
|---|---|
| Concepts/semantic search | |
| Exact code patterns | |
| Trace usage | |
| See implementation | |
| Understand systems | |
| Read files | |
| Browse structure | |
| Find repos | |
| Search commits | |
| Track changes | |
| Compare versions | |
sg_keyword_searchsg_nls_searchsg_deepsearch_readsg_find_referencessg_go_to_definitionsg_read_file| 目标 | 工具 |
|---|---|
| 概念/语义搜索 | |
| 精确代码模式 | |
| 追踪使用场景 | |
| 查看实现代码 | |
| 理解系统架构 | |
| 读取文件内容 | |
| 浏览文件结构 | |
| 查找代码仓库 | |
| 搜索提交记录 | |
| 追踪代码变更 | |
| 对比版本差异 | |
repo:^github.com/ORG/REPO$ # Exact repo (preferred)
repo:github.com/ORG/ # All repos in org
file:.*\.ts$ # TypeScript only
file:src/api/ # Specific directory
file:.*\.test\.ts$ -file:__mocks__ # Tests, exclude mocksrepo:^github.com/myorg/backend$ file:src/handlers lang:typescriptrepo:^github.com/ORG/REPO$ # 精确指定仓库(推荐)
repo:github.com/ORG/ # 组织下所有仓库
file:.*\.ts$ # 仅TypeScript文件
file:src/api/ # 特定目录
file:.*\.test\.ts$ -file:__mocks__ # 测试文件,排除模拟文件repo:^github.com/myorg/backend$ file:src/handlers lang:typescriptsg_deepsearch_readsg_read_filesg_diff_searchsg_deepsearch_readsg_read_filesg_diff_searchworkflows/implementing-feature.mdworkflows/understanding-code.mdworkflows/debugging-issue.mdworkflows/implementing-feature.mdworkflows/understanding-code.mdworkflows/debugging-issue.mdsg_keyword_searchsg_nls_searchsg_deepsearch_readsg_deepsearch_readsg_keyword_searchsg_nls_searchsg_deepsearch_readsg_deepsearch_read| Intent | Query |
|---|---|
| React hooks | |
| API routes | |
| Error handling | |
| Type definitions | |
| Test setup | |
| Config files | |
| CI/CD | |
query-patterns.md| 意图 | 查询语句 |
|---|---|
| React钩子 | |
| API路由 | |
| 错误处理 | |
| 类型定义 | |
| 测试初始化 | |
| 配置文件 | |
| CI/CD流程 | |
query-patterns.md| Mistake | Fix |
|---|---|
| Searching all repos | Add |
| Too many results | Add |
| Missing relevant code | Try |
| Not understanding context | Use |
| Guessing patterns | Read implementations with |
| 错误 | 修复方案 |
|---|---|
| 搜索所有仓库 | 添加 |
| 结果过多 | 添加 |
| 找不到相关代码 | 尝试使用 |
| 无法理解上下文 | 使用 |
| 猜测代码模式 | 使用 |