Command Palette

Search for a command to run...

Назад к скиллам
скилл № 63192

github

Work with GitHub repositories, source code, pull requests, issues, releases, Actions, and API data using the gh CLI. Use for GitHub URLs and GitHub resources.

БесплатноБез исполняемых скриптов
sapeginот sapegin★ 539 звёзд на GitHub

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

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

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

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

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

Use gh for GitHub resources. It uses the user’s authenticated token and is preferred over curl, wget, or web_fetch for GitHub URLs.

Do not use this for non-GitHub URLs, GitHub Pages sites (*.github.io), or local Git operations like git commit and git push.

Repository code

For one file or directory, use gh api:

# Get raw file content directly
gh api repos/owner/repo/contents/path/to/file.py \
  -H "Accept: application/vnd.github.raw+json"

# List directory contents
gh api repos/owner/repo/contents/src/ --jq '.[].name'

For broader browsing, prepare a revision-pinned research checkout:

~/dotfiles/bin/github-source owner/repo
~/dotfiles/bin/github-source owner/repo v1.0.0

The CLI clones or refreshes /tmp/pi-github-repos/owner/repo, checks out the requested revision detached, and returns its directory and full commit SHA. Omitting the revision fetches the latest default-branch HEAD. It refuses dirty checkouts; report the error without resetting or deleting local work.

Fetch additional history explicitly when git log or git blame needs it; the helper fetches only depth one. Search the returned directory with find, grep, read, ls, and bash.

Common commands

# View repository metadata
gh repo view owner/repo

# List and inspect pull requests
gh pr list --repo owner/repo
gh pr view <number> --repo owner/repo --comments

# List and inspect issues
gh issue list --repo owner/repo
gh issue view <number> --repo owner/repo --comments

# Search issues and merged pull requests
gh search issues "keyword" --repo owner/repo --limit 10
gh search prs "keyword" --repo owner/repo --merged --limit 10

# List recent release tags
gh api repos/owner/repo/releases --jq '.[0:5] | .[].tag_name'

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

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

Без ограничений — скилл может использовать любой инструмент.

FAQ

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

Work with GitHub repositories, source code, pull requests, issues, releases, Actions, and API data using the gh CLI. Use for GitHub URLs and GitHub resources.

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

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

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

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

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

Сравнить github с