返回顶部
g

github-helperGitHub助手

Local GitHub repository helper for search, clone, sync, and issue/PR inspection workflows. Use when users mention github/repo/repository, ask to download or track repositories, or need structured local knowledge at /Users/liuchen/Documents/github with gh CLI and GitHub MCP integration.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
472
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

github-helper

GitHub Helper

概述

管理本地 GitHub 仓库目录,维护可检索知识库,并为仓库检索、克隆、Issue/PR 跟踪提供统一流程。

本地仓库目录

默认路径:/Users/liuchen/Documents/github

该路径在知识库文件 @/Users/liuchen/Documents/github/CLAUDE.md 中被引用。

核心工作流

1. 初始化或更新知识库

首次使用此技能或用户请求更新时:

  1. 1. 检查 github 目录是否存在。
  2. 如果未找到,询问用户正确的路径。
  3. 使用 scripts/scanrepos.py 扫描目录。
  4. 使用 scripts/updatekb.py 更新 CLAUDE.md。

示例:
bash

扫描仓库


python3 scripts/scan_repos.py /Users/liuchen/Documents/github

更新知识库(以 JSON 格式传递仓库信息)

python3 scripts/update_kb.py /Users/liuchen/Documents/github [{name:repo1,path:/path,summary:desc}]

2. 搜索仓库

当用户提到仓库名称时:

  1. 1. 首先检查本地:读取 @/Users/liuchen/Documents/github/CLAUDE.md。
  2. 如果在本地找到:使用本地路径进行分析和回答。
  3. 如果未找到:使用 gh 或 GitHub MCP 工具搜索 GitHub。
  4. 提供下载选项:询问用户是否要克隆。

3. 下载仓库

当用户请求下载/克隆时:

  1. 1. 克隆到 github 目录:
bash cd /Users/liuchen/Documents/github git clone <仓库-url>
  1. 2. 克隆成功后,更新知识库:
- 运行 scripts/scan_repos.py 获取仓库信息。 - 运行 scripts/update_kb.py 更新 CLAUDE.md。

4. GitHub 搜索集成

优先使用 gh CLI,然后回退到 GitHub MCP:

搜索仓库
bash
gh search repos <查询关键词> --limit 10

搜索 Issue
bash
gh issue list --repo <所有者/仓库> --state all --limit 20

搜索 PR
bash
gh pr list --repo <所有者/仓库> --state all --limit 20

回答仓库相关问题

  1. 1. 检查仓库是否存在于本地知识库中。
  2. 如果在本地,优先进行本地代码检查。
  3. 如果信息不足,查询 GitHub 的 Issue/PR/发布版本。

目录验证

如果 /Users/liuchen/Documents/github 不存在:

  1. 1. 询问用户正确的仓库根路径。
  2. 如有需要,更新此 SKILL.md 中的路径。
  3. 在新位置初始化知识库。

脚本

  • - scanrepos.py:扫描本地仓库并提取摘要。
  • updatekb.py:使用仓库元数据更新 CLAUDE.md。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 github-helper-1776277778 技能

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

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

通过命令行安装

skillhub install github-helper-1776277778

下载

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

文件大小: 3.8 KB | 发布时间: 2026-4-16 17:49

v1.0.0 最新 2026-4-16 17:49
Initial release of github-helper for local GitHub repository management.

- Provides workflows to search, clone, sync, and inspect issues/PRs for repositories at `/Users/liuchen/Documents/github`
- Integrates local knowledge base using CLAUDE.md, updated via helper scripts (`scan_repos.py`, `update_kb.py`)
- Uses GitHub CLI (`gh`) for searching repositories, issues, and PRs; falls back to MCP tools if needed
- Supports user prompts for directory validation and repository downloads/cloning
- Prioritizes local inspection for repository questions, with fallback to GitHub queries when needed

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部