github · sammcj — скилл для Claude Code: работа с GitHub
Скилл для Claude Code задаёт правила работы с GitHub через gh: от чтения комментариев к PR до проверки GitHub Actions. Разбирает issues и ревью.
Apache-2.0 ★ 173 обновлён 2026-10-24
npx skills add sammcj/agentic-coding --skill github -a claude-codeЧто делает github
Скилл направляет Claude Code к gh для работы с issues, pull request и релизами; команды нужно запускать вне песочницы. Для общей переписки в PR он предлагает gh pr view --comments или REST endpoint, а для построчных замечаний с состоянием тредов — один запрос GraphQL.
При работе с GitHub Actions скилл требует проверять версии и выбирать те, что опубликованы как минимум 7 дней назад; для обновления предлагает pinact run -update --min-age 7. Для аудита безопасности Actions служит команда zizmor .. Если gh запускается в песочнице, это расходится с заданным правилом работы.
Закрывать тред ревью нужно через GraphQL-мутацию только по прямой просьбе пользователя; отвечать на комментарий без такого указания скилл запрещает. Для повторного открытия треда используется unresolveReviewThread.
Какие задачи решает
- просмотреть общие комментарии к pull request
- найти незакрытые построчные замечания ревью
- обновить версии GitHub Actions с учётом возраста релиза
- проверить GitHub Actions на проблемы безопасности
- закрыть тред ревью по просьбе пользователя
Примеры запросов агенту
- Посмотри общие комментарии к этому pull request через
gh. - Найди незакрытые построчные замечания ревью и покажи, кто их оставил.
- Проверь конфигурацию GitHub Actions на проблемы безопасности.
Как установить github
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill github -a claude-code2Вручную: положить файлы
~/.claude/skills/github/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/github/
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill github -a codex2Вручную: положить файлы
.agents/skills/github/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill github -a cursor2Вручную: положить файлы
.cursor/skills/github/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install sammcj/agentic-coding Skills/github/SKILL.md2Вручную: положить файлы
.github/skills/github/SKILL.md1Через Skills CLI (Vercel)
npx skills add sammcj/agentic-coding --skill github -a gemini-cli2Командой платформы
gemini skills install https://github.com/sammcj/agentic-coding --path Skills/githubВручную: положить файлы
.devin/skills/github/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о github
Как установить github в Claude Code?
Выполните npx skills add sammcj/agentic-coding --skill github -a claude-code. Файл скилла находится по пути ~/.claude/skills/github/SKILL.md.
Что делает скилл github?
Он задаёт правила для работы с GitHub через gh, чтения комментариев к PR, обработки тредов ревью и проверки GitHub Actions.
Как скилл предлагает выбирать версии GitHub Actions?
Использовать версии, которым не меньше 7 дней. Для обновления с этим ограничением указана команда pinact run -update --min-age 7.
Исходный текст
SKILL.md · Apache-2.0
---
name: github
description: You MUST always activate this github skill whenever working with GitHub in any capacity, including but not limited to gh cli, API, Actions, issues, PRs and other routine Github interactions.
metadata:
info: I moved these out of my global agent rules to save a few tokens
---
# GitHub
- Use the `gh` CLI tool for interacting with GitHub (issues, PRs, releases) and perform `gh` commands outside of the sandbox
- When when working with Github Actions, you should always check for and use the latest Actions versions that are at least 7 days old, you can use `pinact run -update --min-age 7` to achieve this
- For the general PR conversation timeline (not line-level review comments), use `gh pr view --comments` or the REST `/issues/N/comments` endpoint
- When you need to read line-level review comments with their resolved state (e.g. triaging bot or human review feedback), fetch them via GraphQL in one call: `gh api graphql -f query='query { repository(owner: "OWNER", name: "REPO") { pullRequest(number: N) { reviewThreads(first: 100) { nodes { id isResolved path line comments(first: 1) { nodes { author { login } body } } } } } } }' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'`
- When explicitly asked by the user to "close" or "resolve" a review comment, resolve the thread via the GraphQL mutation (do not reply to a comment unless instructed): `gh api graphql -f query='mutation($id: ID!) { resolveReviewThread(input: { threadId: $id }) { thread { isResolved } } }' -f id="PRRT_..."`
- Thread IDs start with `PRRT_`. Use `unresolveReviewThread` to reopen
- You can audit Github Actions security by running `zizmor .`
© sammcj · Apache-2.0 · sammcj/agentic-coding
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — github от других авторов.