github
БесплатноЗапускает вложенные скриптыНе проверенMUST USE for ANY GitHub work - instead of the gh CLI, gh api, curl to api.github.com, or a browser. Pull requests (view, create, edit, review, comment, merge…
от code-yeongyu★ 71 250 звёзд на GitHubОб этом скилле
GitHub
Typed GitHub operations that replace gh subprocesses: trimmed JSON, pagination followed, failures carry a kind.
Replace <skill-root> with this skill's own directory.
const { client, surface } = await import("<skill-root>/scripts/sdk.ts")
const pr = await client.pr.view({ repo: "owner/name", number: 123 })
Rules
- PASS
repo: "owner/name"IN EVERY EVAL-CELL CALL. When omitted it falls back to the git origin of the process cwd, and an eval kernel's cwd is rarely the repo you mean. - NEVER READ
scripts/srcTO LEARN AN OPERATION. Its inputs are one expression away:surface.ops.issue.list.input.json(JSON Schema) and.description. Results are plain JSON, and most lists come wrapped ({ repo, items },{ repo, runs }), so print one before indexing it. - NEVER MERGE WITHOUT
matchHeadSha. Readpr.view(mergeState,reviewDecision,headSha) andpr.checks, then callpr.merge({ matchHeadSha }). A head that moved after you verified it then refuses with kindconflictinstead of landing commits nobody checked. - NEVER POLL CHECKS OR SLEEP FOR CI. Use
await client.pr.wait(...)orrun.wait(...)for waits under about 4 minutes. A longer wait runs as atool.monitorcommand: READ references/waiting.md BEFORE ARMING ONE. - A WRITE THAT FAILS WITH
serverORnetworkMAY HAVE LANDED. Writes are never retried for you. Read the target back (issue.view({ comments: 3 }),pr.view) before sending it again, or you post it twice. - BEFORE CREATING OR CONFIGURING A REPO, READ THE REFERENCE FOR THAT STEP. Creating one, description, topics, README, merge options, labels, secrets: references/repo-setup.md. Rulesets and branch protection: references/branch-rules.md. Workflow files and action pins: references/workflows.md.
- CHANGE REPO SETTINGS ONLY WHERE THE TASK OWNS THE REPO. Visibility, rulesets, secrets, Actions and merge options on a shared repo are the owner's call: read and report, write on their word.
- PR BODY SCREENSHOTS GO THROUGH GITHUB USER ATTACHMENTS ONLY. Never commit temporary images, never use Releases or an external host: references/evidence-attachments.md.
Pull requests, issues, runs
| gh habit | Operation | What to know |
|---|---|---|
gh pr view |
pr.view |
state, draft, merged, mergeCommit, mergedBy, autoMerge, mergeable, mergeState, reviewDecision, headSha, baseSha, checks (rollup), closes; comments: N / commits: N add the latest N; body: false trims |
gh pr checks |
pr.checks |
each check has bucket (pass, fail, pending, skipping, cancel), required, runId; plus counts; only: ["fail"] filters |
gh pr checks --watch |
pr.wait |
returns verdict pass, fail, timeout, no_checks or head_moved |
gh pr list, gh pr status |
pr.list, pr.status |
items carry headSha, baseSha, state: "merged", mergedAt, mergeCommit; truncated says the limit cut the list; author, label, search and merged-only also return total |
gh pr diff |
pr.files, pr.diff |
read files first; diff is capped by maxBytes |
gh pr create / edit / comment / ready / close / reopen |
pr.create pr.edit pr.comment pr.ready pr.close |
comment.editId replaces a comment; ready.undo turns it back into a draft; reopen is edit({ state: "open" }) |
gh pr review / update-branch / revert / lock / unlock |
pr.review pr.updateBranch pr.revert pr.lock pr.unlock |
review.comments puts comments on lines of the diff; updateBranch.expectedHeadSha refuses a moved head with kind conflict |
| review feedback (gh has no command) | pr.reviews pr.replyToThread pr.resolveThread pr.dismissReview |
reviews returns review bodies and line threads with resolved and outdated; unresolvedOnly: true is the list still to handle; reply first, then resolve |
gh pr checkout |
pr.checkout |
runs git in the dir you pass |
gh pr merge, --admin |
pr.merge |
rule 3, with the full 40-character SHA; without method, the first the repository allows; it calls the merge endpoint directly, so the token's bypass rights apply as with --admin; auto: true enables auto-merge (or merges now if it already can); a failed branch delete after the merge is branchDeleteError, never a throw |
gh issue view / list / status / create / edit / comment / close / reopen |
issue.view issue.list issue.status issue.create issue.edit issue.comment issue.close |
list excludes PRs and sorts by update; close takes reason and a comment; reopen is edit({ state: "open" }) |
gh issue pin / unpin / lock / unlock / transfer / develop / delete |
issue.pin issue.unpin issue.lock issue.unlock issue.transfer issue.develop issue.delete |
develop lists or create |
Установить github в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл github?
MUST USE for ANY GitHub work - instead of the gh CLI, gh api, curl to api.github.com, or a browser. Pull requests (view, create, edit, review, comment, merge, checks, diff, files), waiting for CI, issues, Actions runs and failed-job logs, workflow dispatch, releases, search, raw REST/GraphQL, and repository setup (create a repo, description, topics, README, labels, secrets, rulesets and branch protection, workflow files), through a typed Bun SDK for eval cells plus a CLI and MCP. Local commits, rebases and history belong to the `git` skill. Triggers: GitHub, PR, pull request, issue, CI, checks, Actions, workflow run, release, gh, gh pr, gh api, gh run watch, gh repo create, gh secret set, 'is CI green', 'wait for CI', 'open a PR', 'merge the PR', 'why did the workflow fail', 'comment on the issue', 'make a new repo', 'protect the branch', 'set the topics'.
Как установить скилл github?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic