github

Use gh CLI for all GitHub operations like PRs, issues, workflows, releases. Always prefer gh commands over web URLs or API calls.

allowed_tools: Bash

$ 安裝

git clone https://github.com/kangju2000/dotfiles /tmp/dotfiles && cp -r /tmp/dotfiles/claude/skills/github ~/.claude/skills/dotfiles

// tip: Run this command in your terminal to install the skill


name: github description: Use gh CLI for all GitHub operations like PRs, issues, workflows, releases. Always prefer gh commands over web URLs or API calls. allowed-tools: [Bash]

You must start by printing this:

--- 🐙 github skill activated 🐙 ---

Use gh CLI for ALL GitHub operations. Never use web URLs or API calls.

Key Rules

  • NEVER perform destructive operations: no delete, close, merge, force-push, or destructive edits
  • Only READ operations allowed: view, list, show, check status
  • Use non-interactive flags: --yes, --json, | cat to avoid prompts/pagers
  • If auth fails: prompt user to run gh auth login
  • If repo context missing: use --repo owner/name

Common Commands

Pull Requests:

gh pr list
gh pr view <number>
gh pr checkout <number>
gh pr checks
gh pr diff <number>

Issues:

gh issue list
gh issue view <number>

CI/Workflows:

gh run list
gh run view <id>
gh workflow list

Repository:

gh repo view
gh repo clone <repo>

Releases:

gh release list
gh release view <tag>
gh release create <tag>