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 — 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

Read
Bash

Вложенные файлы

.golangci.yml.goreleaser.yaml.manuscripts/20260710-125244-1a986992/proofs/2026-07-10-125244-fix-github-contents-pp-cli-acceptance.md.manuscripts/20260710-125244-1a986992/proofs/2026-07-10-125244-fix-github-contents-pp-cli-build-log.md.manuscripts/20260710-125244-1a986992/proofs/2026-07-10-125244-fix-github-contents-pp-cli-shipcheck.md.manuscripts/20260710-125244-1a986992/proofs/2026-07-10-dogfood-results.json.manuscripts/20260710-125244-1a986992/proofs/phase-4.85-findings.md.manuscripts/20260710-125244-1a986992/proofs/phase-4.95-findings.md.manuscripts/20260710-125244-1a986992/proofs/phase5-acceptance.json.manuscripts/20260710-125244-1a986992/research.json.manuscripts/20260710-125244-1a986992/research/2026-07-10-125244-feat-github-contents-pp-cli-absorb-manifest.md.manuscripts/20260710-125244-1a986992/research/2026-07-10-125244-feat-github-contents-pp-cli-brief.md.manuscripts/20260710-125244-1a986992/research/2026-07-10-125244-novel-features-brainstorm.md.manuscripts/20260710-125244-1a986992/research/github-contents-spec.yaml.printing-press-patches/.gitkeep.printing-press-patches/ambiguous-write-retries-disabled.json.printing-press-patches/batch-rollback-reports-committed-count.json.printing-press-patches/github-contents-auth-set-token-registration.json.printing-press-patches/github-contents-learning-happy-args.json.printing-press-patches/github-contents-mcp-contents-description.json.printing-press-patches/github-contents-search-read-only-store.json.printing-press-patches/github-contents-teach-json-envelope.json.printing-press-patches/path-parameters-percent-encoded.json.printing-press-patches/windows-download-mode-without-umask.json.printing-press-pii-polish.json.printing-press-release.json.printing-press-tools-polish.json.printing-press.jsonAGENTS.mdCHANGELOG.mdCLAUDE.mdLICENSEMakefileNOTICEREADME.mdagentcookie.tomlapify-actor-audit-report.jsoncmd/github-contents-pp-cli/main.gocmd/github-contents-pp-mcp/main.gogo.mod

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 с