SuperAPI AI 工具集

github-research

编程与开发

查看项目

更新于 10-15 17:27

技能介绍

用途:这是一个基于 gh CLI 的 GitHub 研究技能,用于在 GitHub 上检索既有方案(prior art)、实现模式与维护者决策。

主要能力:可搜索 issues、已合并 PR 和代码。已合并 PR 被认为信号最高,因为代表实际落地的决策;其次是维护者评论;再次是有解决方案的已关闭 issue;开放 issue 信号较低。还可查看单条 issue 或 PR 的完整详情。

使用方式:通过命令行调用。搜索 issues:gh search issues "topic" --repo owner/repo --limit 20 --json number,title,state,url。搜索已合并 PR:gh search prs "topic" --repo owner/repo --merged --limit 20 --json number,title,url。搜索代码时可使用查询语法过滤路径,如 gh search code "pattern path:src/" --repo owner/repo --limit 20 --json path,textMatches。查看详情可用 gh issue view 123 --repo owner/repo --json number,title,body,comments 与 gh pr view 456 --repo owner/repo --json number,title,body,reviews,files。

限制:搜索 API 限速为每分钟 30 次请求,可用 gh api rate_limit --jq '.resources.search' 查看。报告需按指定格式输出,始终附上 URL;若找不到相关内容应如实说明。