Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

pp-github-contents

БесплатноБез исполняемых скриптовНе проверен

Download any GitHub folder without cloning — plan it first, verify it after, re-sync only what changed. Trigger phrases: `download a folder from github`…

mvanhornот mvanhorn★ 2 170 звёзд на GitHub

Об этом скилле

GitHub Contents — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the github-contents-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install github-contents --cli-only
    
  2. Verify: github-contents-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer). This installs into $GOPATH/bin (default $HOME/go/bin), so add that directory to $PATH instead:

go install github.com/mvanhorn/printing-press-library/library/developer-tools/github-contents/cmd/github-contents-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

Addresses owner/repo/path#ref like degit, but streams big files past the 1 MB contents-API limit via the raw CDN, preserves folder structure, and gives every command --json for agents. The plan/verify/sync-dir loop — preview cost before downloading, prove local files match remote by git blob SHA, then fetch only the diff — exists in no other GitHub download tool.

When to Use This CLI

Reach for this CLI when a task needs files out of a GitHub repo without a full clone: downloading a subdirectory (docs, datasets, templates, book collections) with structure preserved, previewing what a download costs, verifying a local copy still matches upstream, or keeping a mirror current with minimal bandwidth. It works unauthenticated on public repos and uses at most a couple of API requests per operation.

Anti-triggers

Do not use this CLI for:

  • Cloning a repo with git history — use git clone or gh repo clone
  • Working with issues, pull requests, or actions — use the gh CLI
  • Writing, committing, or pushing files to a repo — this CLI is read-only
  • Downloading Git LFS binaries — v1 detects and warns but does not resolve LFS pointers
  • Searching code across GitHub — use gh search or the code-search API

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Plan-verify-sync loop

  • plan — Preview exactly what a fetch would download — file list, sizes, total bytes, API-request cost vs your remaining quota, and LFS-pointer warnings — before spending any bandwidth.

    Run this before fetch to know a download is 122 files / 1.9 GB and costs only 2 API requests, instead of finding out mid-download.

    github-contents-pp-cli plan mjwoon/AI-readings/books --agent
    
  • verify — Check whether a previously downloaded directory still matches the remote at a ref — match/changed/missing/extra per file — without re-downloading anything.

    Proves 'this workspace matches ref X' cheaply — the post-download assertion CI and agents otherwise can't make without re-fetching.

    github-contents-pp-cli verify ./books mjwoon/AI-readings/books --agent
    
  • sync-dir — Update an existing downloaded directory in place, fetching only files that changed upstream or are missing locally.

    The weekly-mirror command: keeps a local collection current for the price of one API call plus only the changed bytes.

    github-contents-pp-cli sync-dir ./books mjwoon/AI-readings/books --agent
    

Remote inspection

  • stats — Size and file-count breakdown of any repo path by subfolder and extension, plus the largest files, from a single API request.

    Answers 'how big is this directory and what is in it' in one call before committing to a download.

    github-contents-pp-cli stats mjwoon/AI-readings/books --agent --select by_folder
    
  • search — Search previously fetched repo listings from the local store — find files by name or pattern with zero API calls.

    Lets agents answer 'which repo path had file X' from data already on disk instead of re-walking the API.

    github-contents-pp-cli search "transformers" --limit 20
    

Command Reference

blobs — Raw git blobs — fetch file content by SHA (works for files up to 100 MB)

  • github-contents-pp-cli blobs <owner> <repo> <file_sha> — Get a blob (base64-encoded content) by its git SHA

contents —

Полный SKILL.md на GitHub

Установить pp-github-contents в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash

FAQ

Что делает скилл pp-github-contents?

Download any GitHub folder without cloning — plan it first, verify it after, re-sync only what changed. Trigger phrases: `download a folder from github`, `download this github directory`, `grab files from a repo without cloning`, `check if my local copy matches the repo`, `how big is that github folder`, `use github-contents`, `run github-contents`.

Как установить скилл pp-github-contents?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл pp-github-contents запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить pp-github-contents с