Skip to content
Back to skills

Github Helper

ASecurity

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.

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 7, 2026
toolspythonbashgit

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill github-helper --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Helper?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Helper
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-github-helper/badge)](https://www.skillsdirectory.com/skills/modbender-github-helper)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-helper
description: 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.
---

# 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:
```bash
# 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 <repo-url>
   ```
2. 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**
```bash
gh search repos <query> --limit 10
```

**Search issues**
```bash
gh issue list --repo <owner/repo> --state all --limit 20
```

**Search PRs**
```bash
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.

Files in this skill

  • SKILL.md2.8 KB
  • agents/openai.yaml243 B
  • scripts/scan_repos.py1.9 KB
  • scripts/update_kb.py1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…