AGENT SKILL
code-lookup
搜索并读取与故障相关的代码片段。
- License 许可
- MIT
- 最近更新
- 2026-10-15
- Stars
- ★ 1
- Forks
- 1
01 前言 Front Matter
- name
- code-lookup
- metadata
- { "role": "helper" }
- description
- 搜索并读取与故障相关的代码片段。
- allowed-tools
- code.search code.read code.find_callers
02 资源文件 1
- 参考文档references/guide.md580 B
03 SKILL.md 正文
Code lookup
工具组:code.search、code.read、code.find_callers。根据日志、trace 或症状定位代码,并跨仓库追踪 caller。
详细准则见 references/guide.md。
code.search
- 从 symptom 提取文件路径时用
file:<path>查询;否则用症状首行关键词。 - 优先使用
normalize-incident.extracted与日志/trace 线索。
code.read
- 优先
code-search步骤 hits[0] 的 path/repo。 - 其次 metadata.code_path、extracted.code_path、症状中的
Foo.java:42。 - 无明确目标时
skip: true。
code.find_callers
- 输入
normalize-incident.extracted.call_chain。 - 默认
prefer_graph=true:先走 GitNexus 知识图谱,失败再回退 Zoekt 启发式。 - 跨已索引仓库搜索 caller,与运行时堆栈对齐;识别
*ControllerHTTP 入口。 - 无 call_chain 时
skip: true。 - 若上一步
graph.impact已给出充分 caller,仍应执行本步做对齐与入口识别。
04 同仓库更多 Skills
hello-triage
Minimal playbook fixture for install tests.
★ 1
trace-chain
获取分布式 trace 链路证据。
★ 1
notify-send
在报告生成后发送排查结果通知。
★ 1
log-query-trace
按 trace id 查询日志证据。
★ 1
log-query-template
按默认错误模板查询日志作为兜底证据。
★ 1
index-repo-context
检查代码索引状态并列出已注册仓库。
★ 1