Codebase search
a startup but not simple agent demo using google adk.
npx -y skills add valkryhx/google_adk_agent --skill codebase_searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 7 stars7 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
通过 ripgrep 在本地文件系统中精确定位代码、配置或文档,支持多轮迭代检索。
SKILL.md
1.8 KB, as published. Nobody here has run it
Execution Instructions
基本流程
- 先定位:根据用户问题,提取核心变量名或关键词,使用
execute_ripgrep - 后深入:根据 rg 返回的文件名和行号,判断相关性
- 读全文:如果确定文件关键,使用
read_file_content获取完整上下文 - 迭代:如果发现新的依赖项或引用,重复步骤 1
搜索策略
精确搜索
已知确切名称时:
execute_ripgrep(pattern="function_name")
模糊搜索
不确定时使用通配符:
execute_ripgrep(pattern="pay.*handler")
正则搜索
复杂模式使用正则:
execute_ripgrep(pattern="^def.*init.*\\(")
失败处理协议
- 零结果:不要轻易说"没找到",尝试减少正则约束或使用近义词
- 关键词替换:考虑
uservsaccount,startvsinit等 - 报错自愈:收到
regex parse error时,分析错误并修复 pattern - 最后手段:多次搜索无果,用
list_files查看目录结构获取线索
示例
用户问题: "系统是怎么处理支付回调的?"
执行流程:
Thought: 我需要搜索 'webhook' 或 'payment_callback' 相关的代码
Action: execute_ripgrep(pattern="payment_callback")
Observation: src/api/handler.py:45: def payment_callback(request):
Action: read_file_content(file_path="src/api/handler.py")
Observation: [文件内容,发现引用了 StripeProcessor]
Action: execute_ripgrep(pattern="class StripeProcessor")
Observation: src/services/stripe.py:10: class StripeProcessor:
Final Answer: 支付回调由 payment_callback 函数处理,位于 src/api/handler.py,
核心逻辑在 StripeProcessor 类中实现。