Back to list
kito-cheng

github-operations

by kito-cheng

0🍴 2📅 Jan 20, 2026

SKILL.md


GitHub Operations Guide

Core Principle

Always use the gh command for ALL GitHub-related operations. Never use raw API calls, curl to GitHub API, or other methods when gh can accomplish the task.

Operations Requiring Explicit User Permission

IMPORTANT: The following operations modify remote state and MUST NOT be performed without explicit user permission:

  • PR comments: gh pr comment, gh pr review --comment
  • PR updates: gh pr edit, gh pr merge, gh pr close, gh pr reopen
  • Push to remote: git push (branches or tags)
  • Issue modifications: gh issue comment, gh issue edit, gh issue close
  • Release creation: gh release create

Always ask the user for confirmation before executing any of these commands. Read-only operations (view, list, diff, checkout) can be performed freely.

Common Operations

Pull Requests

# List PRs
gh pr list

# View specific PR
gh pr view <number>

# View PR diff
gh pr diff <number>

# Create PR
gh pr create --title "Title" --body "Description"

# Check out a PR locally
gh pr checkout <number>

# Review a PR
gh pr review <number> --approve
gh pr review <number> --comment --body "Comment"
gh pr review <number> --request-changes --body "Changes needed"

# Merge a PR
gh pr merge <number>

# View PR comments
gh api repos/{owner}/{repo}/pulls/{number}/comments

Issues

# List issues
gh issue list

# View specific issue
gh issue view <number>

# Create issue
gh issue create --title "Title" --body "Description"

# Close issue
gh issue close <number>

# Add labels
gh issue edit <number> --add-label "bug,urgent"

Repository Information

# View repo info
gh repo view

# Clone a repo
gh repo clone <owner>/<repo>

# Fork a repo
gh repo fork <owner>/<repo>

Workflows and Actions

# List workflow runs
gh run list

# View specific run
gh run view <run-id>

# Watch a run
gh run watch <run-id>

# Rerun failed jobs
gh run rerun <run-id> --failed

Releases

# List releases
gh release list

# Create release
gh release create <tag> --title "Title" --notes "Notes"

# Download release assets
gh release download <tag>

When Given a GitHub URL

IMPORTANT: If the user provides ANY GitHub URL (e.g., https://github.com/...), ALWAYS use the gh command to handle it. NEVER use WebFetch, curl, or other tools to access GitHub URLs.

Examples:

  • https://github.com/owner/repo/pull/123gh pr view 123 --repo owner/repo
  • https://github.com/owner/repo/issues/456gh issue view 456 --repo owner/repo
  • https://github.com/owner/repogh repo view owner/repo
  • https://github.com/owner/repo/actions/runs/789gh run view 789 --repo owner/repo

Authentication

The gh CLI should already be authenticated. If not, prompt the user to run gh auth login.

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon