git-kb-retrieve

Navigate GitHub repository folder trees and retrieve file contents via gh-cli.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/sheldonxxxx/skills --skill git-kb-retrieve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-kb-retrieve
Source: https://github.com/sheldonxxxx/skills/tree/main/skills/git-kb-retrieve
Command: npx skills add https://github.com/sheldonxxxx/skills --skill git-kb-retrieve

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill allows you to efficiently navigate and retrieve information from a GitHub-based knowledge base, overcoming the challenge of finding specific details within a potentially large and complex folder structure.

Core Features & Use Cases

  • Hierarchical Navigation: Browse the knowledge base by drilling down through directory levels.
  • Targeted File Retrieval: List and read specific files or frontmatter from identified branches.
  • Use Case: When you need to find information on a specific technical topic, like "authentication patterns," you can use this skill to explore the relevant sections of your GitHub knowledge base, identify the most pertinent files, and read their content.

Quick Start

Use the git-kb-retrieve skill to find information about authentication.

Frequently Asked Questions about git-kb-retrieve

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve files from a GitHub knowledge base repository?

You retrieve GitHub knowledge base files by traversing the repository's folder tree structure and reading specific content via gh-cli commands. This requires setting the GIT_KB_REPO environment variable to your owner/repo-name.

What is the best way to navigate a large documentation repository on GitHub?

Navigating a large documentation repository on GitHub is achieved by drilling down through hierarchical directory levels. You locate specific technical topics by exploring folder branches and listing pertinent files within the tree structure.

Do I need the gh-cli to browse a GitHub knowledge base?

Yes, you need the gh-cli installed to use this retrieval method. The navigation and file content retrieval processes rely entirely on gh-cli commands to list directories and read files from the target GitHub repository.

How do I read frontmatter from specific files in a GitHub repo?

You read frontmatter from specific files by first traversing the repository's folder tree to locate the target branch, then using targeted gh-cli retrieval commands to list and extract the file content or frontmatter directly.

Why does my GitHub knowledge base retrieval not work without environment variables?

Retrieval fails without environment variables because the process requires the GIT_KB_REPO variable to identify the target repository. Without this owner/repo-name configuration, the gh-cli commands cannot locate the correct knowledge base.