Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.
  2. NEVER READ scripts/src TO 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.
  3. NEVER MERGE WITHOUT matchHeadSha. Read pr.view (mergeState, reviewDecision, headSha) and pr.checks, then call pr.merge({ matchHeadSha }). A head that moved after you verified it then refuses with kind conflict instead of landing commits nobody checked.
  4. NEVER POLL CHECKS OR SLEEP FOR CI. Use await client.pr.wait(...) or run.wait(...) for waits under about 4 minutes. A longer wait runs as a tool.monitor command: READ references/waiting.md BEFORE ARMING ONE.
  5. A WRITE THAT FAILS WITH server OR network MAY 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.
  6. 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.
  7. 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.
  8. 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

.npmignorereferences/branch-rules.mdreferences/evidence-attachments.mdreferences/repo-setup.mdreferences/waiting.mdreferences/workflows.mdscripts/cli.tsscripts/package.jsonscripts/sdk.tsscripts/src/account.tsscripts/src/actions-write.tsscripts/src/actions.tsscripts/src/attestations.tsscripts/src/blake2b.tsscripts/src/branch-protection.tsscripts/src/caches.tsscripts/src/checks.tsscripts/src/codespaces.tsscripts/src/comments.tsscripts/src/commits.tsscripts/src/conversation-lock.tsscripts/src/deployments.tsscripts/src/discussion-list.tsscripts/src/discussion-lookup.tsscripts/src/discussions.tsscripts/src/env.tsscripts/src/errors.tsscripts/src/fields.tsscripts/src/gist-shape.tsscripts/src/gists-write.tsscripts/src/gists.tsscripts/src/git-auth.tsscripts/src/graphql.tsscripts/src/http.tsscripts/src/issue-activity.tsscripts/src/issue-develop.tsscripts/src/issues-extra.tsscripts/src/issues-write.tsscripts/src/issues.tsscripts/src/keys.ts

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить github с