use the query_repo.py script in /skills/semantic-indexer/scripts/query_repo.py to search for code constructs in the repository based on various criteria.
e.g. use query_function to search for functions by name.
利用此技能,可根据名称、文档字符串、注释,或源码模式等多种条件,从代码仓库中查询函数、类、文件或其他代码构造。若 grep、find 或简单的文本搜索难以满足需求,此技能便能派上用场。它采用基于 AST 的搜索方式。
--- frontmattername: query-repo description: Use this skill to query a code repository for functions, classes, files, or other code constructs using various criteria such as names, docstrings, comments, or source code patterns. This skill is useful if grep, find or simple text search is insufficient. This skill uses ast-based search
use the query_repo.py script in /skills/semantic-indexer/scripts/query_repo.py to search for code constructs in the repository based on various criteria.
e.g. use query_function to search for functions by name.