gh · prathamdby — скилл для Claude Code: GitHub и установка
Скилл gh помогает агенту читать состояние PR, обсуждения и CI, отвечать в тредах и выполнять сложные команды GitHub.
MIT 420 установок ★ 6 обновлён 2026-11-10
npx skills add prathamdby/skills --skill gh -a claude-codeЧто делает gh
Скилл работает с PR, проверками, файлами, обсуждениями и запусками CI. Он выбирает отдельный скрипт для снимка PR, тредов, диагностики CI или ответа в одной беседе. Для запуска использует <anchor>/scripts/run, а не прямой вызов Node.
Запрос можно ограничить PR, URL, репозиторием, автором, датой, SHA или workflow. Поддерживаются JSON, полные тела, открытые и завершённые треды, постраничная загрузка и анализ конкретного запуска CI. Ответ отправляется только через pr-reply; скилл не разрешает треды, не пушит изменения и не сливает PR.
Без установленного и авторизованного gh выполнение блокируется. Текущая ветка без PR также завершает PR-запрос без изменений, а конфликтующие параметры получают статус BLOCKED.
Какие задачи решает
- проверить состояние PR и его проверки
- собрать открытые обсуждения с полными страницами
- разобрать падения CI и фрагменты логов
- ответить на конкретный тред PR
- выполнить сложную команду GitHub через
gh
Примеры запросов агенту
- Проверь состояние PR для текущей ветки, включая проверки и изменённые файлы.
- Собери все открытые треды PR с полной постраничной загрузкой и верни их в JSON.
- Разбери падение CI для запуска
<run-id>и укажи путь к логам.
Как установить gh
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill gh -a claude-code2Вручную: положить файлы
~/.claude/skills/gh/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/gh/
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill gh -a codex2Вручную: положить файлы
.agents/skills/gh/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill gh -a cursor2Вручную: положить файлы
.cursor/skills/gh/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install prathamdby/skills skills/engineering/gh2Вручную: положить файлы
.github/skills/gh/SKILL.md1Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill gh -a gemini-cli2Командой платформы
gemini skills install https://github.com/prathamdby/skills --path skills/engineering/ghВручную: положить файлы
.devin/skills/gh/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add prathamdby/skills --skill gh -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о gh
Как установить gh в Claude Code?
Выполните npx skills add prathamdby/skills --skill gh -a claude-code, затем проверьте файл ~/.claude/skills/gh/SKILL.md.
Что делает скилл gh?
Он получает состояние PR, отзывы, обсуждения, проверки и данные CI, а также может ответить в одном треде. Для покрытых операций выбираются специализированные скрипты.
Что нужно для работы gh?
Нужны установленный и авторизованный gh, а для PR-запросов требуется текущий PR или явно выбранный PR. Конфликтующие параметры блокируют выполнение.
Исходный текст
SKILL.md · MIT
--- name: gh description: > When the user wants a pull request, its discussion, its checks, or another GitHub record read, or a reply posted without a code change. --- # GitHub I/O Contracts follow AVGVSTVS96/better-github-skill (unlicensed; reimplemented). Resolve `<anchor>` as this skill's absolute directory. The existing `<anchor>/scripts/run` selects bun, nub, tsx, then Node/nvm with strip-types. ## Options Default: current branch PR, cwd repo, truncated text. A PR number/URL selects that PR; a named repo emits -R and needs a PR for PR-bound work. JSON/full bodies selects --json/--full. Open threads includes unresolved outdated threads; all includes resolved too; both conflict. Complete paging adds --complete; author/since supply their filters. CI selects ci-failures; list runs uses --list (default limit 10), workflow filters it; a run id analyzes that run. Known head SHA adds --sha. Reply needs exactly one target/body from `references/reply.md`. Missing needed values or conflicting choices are BLOCKED. ## 1. Resolve and choose Confirm authenticated gh; missing binary/auth blocks. Record `repo | PR/run/SHA | surface | argv | terminal`. No current PR for PR-bound work → NO_CHANGES. Choose the covering script: | Surface | Script | JSON contract | |---|---|---| | PR state/checks/files/counts | pr-snapshot.ts | `references/snapshot.md` | | Review bodies/comments/threads | pr-threads.ts | `references/threads.md` | | CI runs/jobs/log snippets | ci-failures.ts | `references/ci.md` | | One native thread/conversation reply | pr-reply.ts | `references/reply.md` | Snapshot is state, threads is feedback; neither replaces the other. Before parsing JSON, load only that surface's contract. Done when target and script or uncovered raw operation are fixed. ## 2. Run Invoke only through `<anchor>/scripts/run <script.ts> ...`, not node directly. Node version or ERR_UNKNOWN_FILE_EXTENSION is not failure evidence or a GraphQL license: use run. Its exit 2 is BLOCKED with tried-runtime list. User or senior saying "GraphQL is fine" does not skip `run`. Script success reports data/posts; red CI/open threads are not runtime failure. For all unresolved feedback use --json --open --complete; SHA-pin known heads. Replies use pr-reply only. No resolving, pushing, or merging by this leaf. Raw gh is permitted only for uncovered operations, after applying `references/raw-gh.md`. A covering-script failure never authorizes reimplementing its GraphQL. Redirect large output, never pipe gh to head. For HTTP tracing or logs apply `references/logs.md`. Done when output is complete, a reply URL exists, or a real error is captured. ## 3. Report Summarize observed output. Set cap markers mean incomplete data, not success for an exhaustive consumer. Cite log paths instead of pasting logs. Green CI, zero threads, or posted reply is SUCCESS; a valid red report is also successful inspection, not repaired CI. Terminals: SUCCESS, NO_CHANGES (empty/no PR), BLOCKED.
© prathamdby · MIT · prathamdby/skills
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — gh от других авторов.