agentleFS
zrtchzrtch/awesome-skills/skills/github-helper/SKILL.md

github-helper

Skill2 starsChanged 9 months agoMITView on GitHub

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.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 11 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 22
  2. Distinctive:

    Check if the github directory exists.

    line 24
  3. Distinctive:

    If not found, ask user for the correct path.

    line 25
  4. Very specific:

    Update CLAUDE.md using scripts/update_kb.py.

    line 27
  5. Distinctive:

    When user mentions a repository name:

    line 40
  6. Very specific:

    Check local first: Read @/Users/liuchen/Documents/github/CLAUDE.md.

    line 42
  7. Distinctive:

    If found locally: Use local path to analyze and answer.

    line 43
  8. Very specific:

    If not found: Search GitHub using gh or GitHub MCP tools.

    line 44
  9. Distinctive:

    Offer to download: Ask user whether to clone.

    line 45
  10. Distinctive:

    When user requests to download/clone:

    line 49
  11. Distinctive:

    After successful clone, update knowledge base:

    line 56
  12. Very specific:

    Run scripts/scan_repos.py to get repo info.

    line 57
  13. Very specific:

    Run scripts/update_kb.py to update CLAUDE.md.

    line 58
  14. Very specific:

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

    line 62
  15. Distinctive:

    Check whether repository exists in local knowledge base.

    line 81
  16. Distinctive:

    If local, prioritize local code inspection.

    line 82
  17. Very specific:

    If information is insufficient, query GitHub issues/PRs/releases.

    line 83
  18. Very specific:

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

    line 87
  19. Distinctive:

    Ask user for the correct repository root path.

    line 89
  20. Very specific:

    Update this SKILL.md path if needed.

    line 90

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:
    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

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.