| name | github-ops |
| description | Provides comprehensive GitHub operations using gh CLI and GitHub API. Activates when working with pull requests, issues, repositories, workflows, or GitHub API operations including creating/viewing/merging PRs, managing issues, querying API endpoints, and handling GitHub workflows in enterprise or public GitHub environments. |
| zh_description | 用于 GitHub 运维、仓库管理、PR/Issue 流程和自动化协作。 |
| version | 1.0.0 |
| author | seaworld008 |
| source | in-house |
| source_url | |
| tags | ["devops", "github", "ops", "sre"] |
| created_at | 2026-03-04 |
| updated_at | 2026-03-20 |
| quality | 5 |
| complexity | intermediate |
GitHub Operations
Overview
This skill provides comprehensive guidance for GitHub operations using the gh CLI tool and GitHub REST/GraphQL APIs. Use this skill when performing any GitHub-related tasks including pull request management, issue tracking, repository operations, workflow automation, and API interactions.
When to Use This Skill
This skill activates for tasks involving:
- Creating, viewing, editing, or merging pull requests
- Managing GitHub issues or repository settings
- Querying GitHub API endpoints (REST or GraphQL)
- Working with GitHub Actions workflows
- Performing bulk operations on repositories
- Integrating with GitHub Enterprise
- Automating GitHub operations via CLI or API
Core Operations
Pull Requests
gh pr create --title "NOJIRA: Your PR title" --body "PR description"
gh pr list --state open
gh pr view 123
gh pr merge 123 --squash
gh pr review 123 --approve
gh pr comment 123 --body "LGTM"
📚 See references/pr_operations.md for comprehensive PR workflows
PR Title Convention:
- With JIRA ticket:
GR-1234: Descriptive title
- Without JIRA ticket:
NOJIRA: Descriptive title
Issues
gh issue create --title "Bug: Issue title" --body "Issue description"
gh issue list --state open --label bug
gh issue edit 456 --add-label "priority-high"
gh issue close 456
📚 See references/issue_operations.md for detailed issue management
Repositories
gh repo view --web
gh repo owner/repo
gh repo create my-new-repo --public