闲社服务运行正常AI智能体自动化平台
g

GitHub智能分析

技能标识:github-intel

Analyze any GitHub repository in AI-friendly format. Convert entire repos to single markdown documents, generate architecture diagrams with Mermaid, inspect structure trees, language breakdowns, and recent activity. Includes GitHub URL tricks, API shortcuts, and advanced search techniques. Read-only analysis — never executes code from repositories. Built for AI agents — Python stdlib only, no dependencies. Use for repository analysis, code architecture review, open source research, GitHub intell

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

GitHub智能分析

🔍 GitHub 智能分析

以AI友好格式分析任意GitHub仓库。将仓库转换为Markdown,生成架构图,理解结构与模式。

功能特性

  • - 分析仓库结构 — 文件树、README、语言分布、近期活动
  • 生成架构图 — 基于代码库结构的Mermaid流程图
  • 仓库转Markdown — 将整个仓库转换为单一AI可读文档
  • 检查语言分布 — 按语言统计百分比及文件数量
  • 追踪近期活动 — 最新提交、贡献者、发布历史
  • GitHub URL技巧 — 隐藏功能、API快捷方式、搜索运算符
  • 控制分析深度 — 可配置的目录遍历深度
  • 限制文件数量 — 为大仓库设置文件上限
  • 只读保障 — 绝不执行仓库中的代码
  • 公共API访问 — 无需令牌(可选令牌获取更高速率限制)

环境要求

变量必需说明
GITHUBTOKEN❌可选 — 将速率限制从60次/小时提升至5000次/小时。从GitHub设置获取

快速开始

bash
PY=~/.openclaw/workspace/.venv/bin/python3

分析仓库

$PY skills/github-intel/scripts/repo_analyzer.py https://github.com/anthropics/claude-code

将仓库转换为单一Markdown文件

$PY skills/github-intel/scripts/repotomarkdown.py https://github.com/openai/openai-python

深度分析

$PY skills/github-intel/scripts/repo_analyzer.py https://github.com/user/repo --depth 3

命令

仓库分析器

bash

基础分析

$PY scripts/repo_analyzer.py https://github.com/owner/repo

深度目录遍历

$PY scripts/repo_analyzer.py https://github.com/owner/repo --depth 3

使用身份验证获取更高速率限制

GITHUBTOKEN=ghpxxx $PY scripts/repo_analyzer.py https://github.com/owner/repo

仓库转Markdown

bash

转换完整仓库

$PY scripts/repotomarkdown.py https://github.com/owner/repo

为大仓库限制文件数量

$PY scripts/repotomarkdown.py https://github.com/owner/repo --max-files 50

输出到文件

$PY scripts/repotomarkdown.py https://github.com/owner/repo > repo.md

输出格式(分析器)

仓库: owner/repo

结构

├── src/ │ ├── index.ts │ └── ... ├── README.md └── package.json

README

[完整README内容]

语言分布

  • - TypeScript: 78.2%
  • JavaScript: 15.1%
  • Shell: 6.7%

架构(Mermaid)

graph TD A[CLI入口] --> B[命令解析器] ...

近期活动

  • - 2天前: feat: 添加流式支持
  • 5天前: fix: 处理超时错误

参考资料

文件说明
references/github-tricks.mdURL技巧、API快捷方式、搜索运算符

脚本参考

脚本说明
{baseDir}/scripts/repoanalyzer.py带图表的完整仓库分析
{baseDir}/scripts/repoto_markdown.py
将仓库转换为单一Markdown文档 |

⚠️ 安全说明

此工具为只读工具。它绝不:

  • - 执行仓库中的代码
  • 运行脚本、Makefile或构建命令
  • 评估仓库中的任何内容
  • 向任何仓库写入数据

所有分析仅基于静态文件读取。

数据政策

本技能从GitHub API获取公共数据。除分析输出外,不会在本地存储任何数据。



由 M. Abidi 构建

LinkedIn · YouTube · GitHub · 预约通话

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-intel-1776273275 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 github-intel-1776273275 技能

通过命令行安装

skillhub install github-intel-1776273275

下载

⬇ 下载 github-intel v1.0.0(免费)

文件大小: 9.49 KB | 发布时间: 2026-4-16 18:26

v1.0.0 最新 2026-4-16 18:26
github-intel 1.0.0

- Initial public release of github-intel.
- Analyze any GitHub repository in a read-only, AI-friendly format.
- Generate repo structure trees, language breakdowns, and architecture diagrams using Mermaid.
- Convert entire repositories to single markdown documents.
- Includes GitHub URL tricks, API shortcuts, and advanced search techniques.
- Python standard library only; no dependencies.
返回顶部