ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

repo-research

GitHub 仓库深度研究与整合分析工具。支持单个/多个仓库研究、与本地项目对比分析、启发式整合建议。支持主题驱动搜索模式:自动搜索相关仓库、克隆、分析并生成报告。克隆远程仓库到本地 research/ 目录,进行深度代码分析、架构评估、依赖解析,并生成结构化研究报告。触发条件:用户提供 GitHub URL 请求研究/分析/整合/对比时,或提供主题关键词请求搜索并研究相关仓库时。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/cat-xierluo/repo-research
Or

Repo Research

GitHub 仓库深度研究工具,核心目标是从外部项目中获取启发,为用户自己的项目提供可操作的改进建议。

适用范围:本技能适用于研究任何类型的 GitHub 仓库,不仅限于 Claude Skills。可用于研究开源项目、库、框架、工具等。

依赖管理

本技能的核心功能(单仓库/多仓库研究)不需要任何前置技能。

只有使用主题驱动搜索模式时,才需要以下可选依赖:

依赖技能用途安装源必需性
find-skills按主题搜索 GitHub 上的相关仓库https://skills.sh/vercel-labs/skills/find-skills可选

使用说明

  • 如果您直接提供 GitHub URL,本技能会直接使用现有的单/多仓库研究模式
  • 如果您提供主题关键词(如"研究 OCR 相关项目"),本技能会:
    1. 首先检测 find-skills 是否已安装
    2. 如未安装,会提示您安装后再继续
    3. 安装后自动调用 find-skills 进行搜索

配置

本技能支持通过配置文件自定义输出目录和其他设置。

配置文件位置

skills/repo-research/assets/config.yaml

快速配置

  1. 复制示例配置:
cp skills/repo-research/assets/config.example.yaml skills/repo-research/assets/config.yaml
  1. 编辑 config.yaml,设置你的输出目录:
research:
  output_dir: "~/Documents/研究笔记"  # 支持绝对路径、相对路径、~ 展开

配置项说明

配置项说明默认值
research.output_dir研究报告输出目录./research
research.report_format报告格式markdown
research.shallow_clone使用浅克隆true
security.enabled启用安全分析true
security.prompt_analysis提示词安全检测true

配置读取逻辑

1. 检查 skills/repo-research/assets/config.yaml 是否存在
2. 如果存在,读取配置
3. 如果 output_dir 为空或不存在,使用默认值 ./research
4. 支持路径展开:
   - `~` 展开为用户目录
   - 相对路径基于当前工作目录

默认行为(无配置文件)

如果没有配置文件或 output_dir 为空,将使用默认行为:

  • 输出目录./research(当前工作目录下的 research 文件夹)
  • 报告格式:Markdown
  • 安全分析:启用

快速开始

# 单个仓库研究
/repo-research https://github.com/user/repo

# 多仓库对比研究
/repo-research https://github.com/user/repo-a https://github.com/user/repo-b

# 指定分析重点
/repo-research https://github.com/user/repo --focus=architecture

# 与现有技能整合
/repo-research https://github.com/user/repo --integrate-with=de-ai-polish

对话中触发:当用户提到"研究一下这个仓库"、"对比分析这些项目"、"对我项目有什么启发"等类似表述时自动激活。


配置

配置文件

本技能支持通过配置文件自定义输出目录等设置。

配置文件位置

~/.openclaw/skills/repo-research/assets/config.yaml

配置示例

# 研究报告输出目录
# 支持绝对路径、相对路径和 ~ 展开
output_dir: "/Users/yourname/Desktop/Clawd/99 - 🦐 大虾研究/09 - 📋 研究报告"

# 报告格式:markdown 或 json
report_format: markdown

# 是否自动打开报告(生成后)
auto_open_report: false

# 克隆深度:1 = 浅克隆(更快),0 = 完整克隆
clone_depth: 1

环境变量覆盖

配置也可通过环境变量设置(优先级高于配置文件):

环境变量说明
REPO_RESEARCH_OUTPUT_DIR输出目录
REPO_RESEARCH_FORMAT报告格式
REPO_RESEARCH_AUTO_OPEN是否自动打开
REPO_RESEARCH_CLONE_DEPTH克隆深度

输出目录结构

output_dir/
└── research/
    └── YYYYMMDD-topic-slug/
        ├── repo-name/                    # 克隆的仓库
        ├── repo-name-2/                  # 多仓库时有多个
        └── topic-slug-report.md          # 研究报告(如:twitter-skills-report.md)

工作流程

模式选择

根据输入自动选择研究模式:

Metadata

Stars4044
Views0
Updated2026-04-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-cat-xierluo-repo-research": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.