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★ 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:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install github-contents --cli-only - Verify:
github-contents-pp-cli --version - Ensure the reported install directory is on
$PATHfor 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 --agentverify— 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 --agentsync-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_foldersearch— 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 — List directories and read files via the repository contents API
github-contents-pp-cli contents <owner> <repo> <path>— Get a directory listing (JSON array) or file metadata+content (JSON object, base64, files up to 1 MB).
rate-limit — API quota status — check headroom before and during bulk downloads
github-contents-pp-cli rate-limit— Show remaining API quota
Установить pp-github-contents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashВложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic