← 返回
开发者工具 中文

github-helper

Local GitHub repository helper for search, clone, sync, and issue/PR inspection workflows. Use when users mention github/repo/repository, ask to download or...
本地 GitHub 仓库助手,支持搜索、克隆、同步及 Issue/PR 检查流程。当用户提及 GitHub/仓库或请求下载时使用。
dandandujie
开发者工具 clawhub v1.0.0 1 版本 99891.4 Key: 无需
★ 0
Stars
📥 920
下载
💾 35
安装
1
版本
#latest

概述

GitHub Helper

Overview

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

Local Repository Directory

Default path: /Users/liuchen/Documents/github

This path is referenced in the knowledge base file: @/Users/liuchen/Documents/github/CLAUDE.md

Core Workflows

1. Initialize or Update Knowledge Base

When first using this skill or when user requests an update:

  1. Check if the github directory exists.
  2. If not found, ask user for the correct path.
  3. Scan the directory using scripts/scan_repos.py.
  4. Update CLAUDE.md using scripts/update_kb.py.

Example:

# Scan repositories
python3 scripts/scan_repos.py /Users/liuchen/Documents/github

# Update knowledge base (pass repos as JSON)
python3 scripts/update_kb.py /Users/liuchen/Documents/github '[{"name":"repo1","path":"/path","summary":"desc"}]'

2. Search for Repository

When user mentions a repository name:

  1. Check local first: Read @/Users/liuchen/Documents/github/CLAUDE.md.
  2. If found locally: Use local path to analyze and answer.
  3. If not found: Search GitHub using gh or GitHub MCP tools.
  4. Offer to download: Ask user whether to clone.

3. Download Repository

When user requests to download/clone:

  1. Clone to the github directory:

```bash

cd /Users/liuchen/Documents/github

git clone

```

  1. After successful clone, update knowledge base:
    • Run scripts/scan_repos.py to get repo info.
    • Run scripts/update_kb.py to update CLAUDE.md.

4. GitHub Search Integration

Use gh CLI first, then fall back to GitHub MCP:

Search repositories

gh search repos <query> --limit 10

Search issues

gh issue list --repo <owner/repo> --state all --limit 20

Search PRs

gh pr list --repo <owner/repo> --state all --limit 20

Answering Repository Questions

  1. Check whether repository exists in local knowledge base.
  2. If local, prioritize local code inspection.
  3. If information is insufficient, query GitHub issues/PRs/releases.

Directory Validation

If /Users/liuchen/Documents/github does not exist:

  1. Ask user for the correct repository root path.
  2. Update this SKILL.md path if needed.
  3. Initialize knowledge base at the new location.

Scripts

  • scan_repos.py: Scan local repositories and extract summaries.
  • update_kb.py: Update CLAUDE.md with repository metadata.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

rust-rebuilder

dandandujie
规划并执行增量项目重写为Rust,进行架构映射、同行验证、地道Rust指导、依赖预检查、...
★ 0 📥 737
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,843
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727