github-kb — community github-kb, All-skills, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for AI Agents needing unified access to GitHub repositories and knowledge bases via the gh CLI. 集合了所有的openclaw,claudecode,open等各个平台所有的skills

YPYT1 YPYT1
[0]
[0]
Updated: 2/20/2026

Agent Capability Analysis

The github-kb skill by YPYT1 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for AI Agents needing unified access to GitHub repositories and knowledge bases via the gh CLI.

Core Value

Empowers agents to manage a local GitHub knowledge base, providing GitHub search capabilities and cataloging projects with brief descriptions using environment variables like GITHUB_TOKEN for private repository access.

Capabilities Granted for github-kb

Cataloging projects with brief descriptions in GITHUB_KB.md
Searching GitHub repositories via gh CLI
Managing local knowledge base directories with GITHUB_KB_PATH

! Prerequisites & Limits

  • Requires GitHub Personal Access Token for private repositories
  • Needs environment variables set for GITHUB_TOKEN and GITHUB_KB_PATH
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

github-kb

Install github-kb, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

GitHub Knowledge Base

Manage a local GitHub knowledge base and provide GitHub search capabilities via gh CLI. Key file: GITHUB_KB.md at the root of the KB directory catalogs all projects with brief descriptions.

Configuration

Set environment variables before use:

  • GITHUB_TOKEN - GitHub Personal Access Token (optional, for private repos)
  • GITHUB_KB_PATH - Path to local KB directory (default: /home/node/clawd/github-kb)

Example:

bash
1export GITHUB_TOKEN="ghp_xxxx..." 2export GITHUB_KB_PATH="/your/path/github-kb"

Token Privacy: Never hardcode tokens. Inject via environment variables or container secrets.

GitHub CLI (gh)

Requirement: GitHub CLI must be installed and authenticated.

Installation:

  • macOS: brew install gh
  • Linux: apt install gh or see official install guide
  • Windows: winget install GitHub.cli

Authentication:

bash
1# Interactive login 2gh auth login 3 4# Or use token from GITHUB_TOKEN env var 5gh auth login --with-token <(echo "$GITHUB_TOKEN")

Verify: gh auth status

If gh is not installed or not authenticated, skip search operations and use only local KB features.

Searching Repos

bash
1# Search repos by keyword 2gh search repos <query> [--limit <n>] 3 4# Examples: 5gh search repos "typescript cli" --limit 10 6gh search repos "language:python stars:>1000" --limit 20 7gh search repos "topic:mcp" --limit 15

Search qualifiers:

  • language:<lang> - Filter by programming language
  • stars:<n> or stars:><n> - Filter by star count
  • topic:<name> - Filter by topic
  • user:<owner> - Search within a user's repos
  • org:<org> - Search within an organization

Searching Issues

bash
1gh search issues "react hooks bug" --limit 20 2gh search issues "repo:facebook/react state:open" --limit 30 3gh search issues "language:typescript label:bug" --limit 15

Search qualifiers:

  • repo:<owner/repo> - Search in specific repository
  • state:open|closed - Filter by issue state
  • author:<username> - Filter by author
  • label:<name> - Filter by label
  • language:<lang> - Filter by repo language
  • comments:<n> or comments:><n> - Filter by comment count

Searching Pull Requests

bash
1# Search PRs 2gh search prs <query> [--limit <n>] 3 4# Examples: 5gh search prs "repo:vercel/next.js state:open" --limit 30 6gh search prs "language:go is:merged" --limit 15

Search qualifiers:

  • repo:<owner/repo> - Search in specific repository
  • state:open|closed|merged - Filter by PR state
  • author:<username> - Filter by author
  • label:<name> - Filter by label
  • language:<lang> - Filter by repo language
  • is:merged|unmerged - Filter by merge status

Viewing PR/Issue Details

bash
1# View issue/PR details 2gh issue view <number> --repo <owner/repo> 3gh pr view <number> --repo <owner/repo> 4 5# View with comments 6gh issue view <number> --repo <owner/repo> --comments 7gh pr view <number> --repo <owner/repo> --comments

Local Knowledge Base Workflow

Querying About a Repo in KB

  1. Read GITHUB_KB.md to understand what projects exist
  2. Locate the project directory under ${GITHUB_KB_PATH:-/home/node/clawd/github-kb}/

Cloning a New Repo to KB

  1. Search GitHub if the full repo name is not known
  2. Clone to KB directory:
    bash
    1git clone https://github.com/<owner>/<name>.git ${GITHUB_KB_PATH:-/home/node/clawd/github-kb}/<name>
  3. Generate project description: Read README or key files to understand the project
  4. Update GITHUB_KB.md: Add entry for the new repo following the existing format:
    markdown
    1### [<name>](/<name>) 2Brief one-line description of what the project does. Additional context if useful (key features, tech stack, etc.).
  5. Confirm completion: Tell user the repo was cloned and where to find it

Default Clone Location

If user says "clone X" without specifying a directory, default to ${GITHUB_KB_PATH:-/home/node/clawd/github-kb}/.

GITHUB_KB.md Format

The catalog file follows this structure:

markdown
1# GitHub Knowledge Base 2 3This directory contains X GitHub projects covering various domains. 4 5--- 6 7## Category Name 8 9### [project-name](/project-name) 10Brief description of the project.

Maintain categorization and consistent formatting when updating.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is github-kb?

Perfect for AI Agents needing unified access to GitHub repositories and knowledge bases via the gh CLI. 集合了所有的openclaw,claudecode,open等各个平台所有的skills

How do I install github-kb?

Run the command: npx killer-skills add YPYT1/All-skills/github-kb. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for github-kb?

Key use cases include: Cataloging projects with brief descriptions in GITHUB_KB.md, Searching GitHub repositories via gh CLI, Managing local knowledge base directories with GITHUB_KB_PATH.

Which IDEs are compatible with github-kb?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for github-kb?

Requires GitHub Personal Access Token for private repositories. Needs environment variables set for GITHUB_TOKEN and GITHUB_KB_PATH.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add YPYT1/All-skills/github-kb. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use github-kb immediately in the current project.

Related Skills

Looking for an alternative to github-kb or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI