github-ops by daymade/claude-code-skills
npx skills add https://github.com/daymade/claude-code-skills --skill github-ops本技能提供使用 gh CLI 工具和 GitHub REST/GraphQL API 进行 GitHub 操作的全面指导。在执行任何与 GitHub 相关的任务时使用此技能,包括拉取请求管理、问题跟踪、仓库操作、工作流自动化和 API 交互。
此技能在涉及以下任务时激活:
# 使用 NOJIRA 前缀创建 PR(绕过 JIRA 强制检查)
gh pr create --title "NOJIRA: Your PR title" --body "PR description"
# 列出和查看 PR
gh pr list --state open
gh pr view 123
# 管理 PR
gh pr merge 123 --squash
gh pr review 123 --approve
gh pr comment 123 --body "LGTM"
📚 查看 references/pr_operations.md 获取全面的 PR 工作流
PR 标题规范:
GR-1234: 描述性标题广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
NOJIRA: 描述性标题# 创建和管理问题
gh issue create --title "Bug: 问题标题" --body "问题描述"
gh issue list --state open --label bug
gh issue edit 456 --add-label "priority-high"
gh issue close 456
📚 查看 references/issue_operations.md 获取详细的问题管理指南
# 查看和管理仓库
gh repo view --web
gh repo clone owner/repo
gh repo create my-new-repo --public
# 管理 GitHub Actions
gh workflow list
gh workflow run workflow-name
gh run watch run-id
gh run download run-id
📚 查看 references/workflow_operations.md 获取高级工作流操作指南
gh api 命令提供对 GitHub REST API 端点的直接访问。请参阅 references/api_reference.md 获取全面的 API 端点文档。
基本 API 操作:
# 通过 API 获取 PR 详情
gh api repos/{owner}/{repo}/pulls/{pr_number}
# 添加 PR 评论
gh api repos/{owner}/{repo}/issues/{pr_number}/comments \
-f body="评论文本"
# 列出工作流运行
gh api repos/{owner}/{repo}/actions/runs
对于需要多个相关资源的复杂查询,请使用 GraphQL。查看 references/api_reference.md 获取 GraphQL 示例。
# 登录 GitHub
gh auth login
# 登录 GitHub Enterprise
gh auth login --hostname github.enterprise.com
# 检查认证状态
gh auth status
# 设置默认仓库
gh repo set-default owner/repo
# 配置 gh 设置
gh config set editor vim
gh config set git_protocol ssh
gh config list
控制输出格式以便进行程序化处理:
# JSON 输出
gh pr list --json number,title,state,author
# 使用 jq 处理 JSON
gh pr list --json number,title | jq '.[] | select(.title | contains("bug"))'
# 模板输出
gh pr list --template '{{range .}}{{.number}}: {{.title}}{{"\n"}}{{end}}'
📚 查看 references/best_practices.md 获取 Shell 模式和自动化策略
最常用操作:
gh pr create --title "NOJIRA: 标题" --body "描述" # 创建 PR
gh pr list # 列出 PR
gh pr view 123 # 查看 PR 详情
gh pr checks 123 # 检查 PR 状态
gh pr merge 123 --squash # 合并 PR
gh pr comment 123 --body "LGTM" # 评论 PR
gh issue create --title "标题" --body "描述" # 创建问题
gh workflow run workflow-name # 运行工作流
gh repo view --web # 在浏览器中打开仓库
gh api repos/{owner}/{repo}/pulls/{pr_number} # 直接 API 调用
全面的拉取请求操作,包括:
在处理复杂的 PR 工作流或批量操作时加载此参考文档。
详细的问题管理示例,包括:
在大规模管理问题或设置问题工作流时加载此参考文档。
高级 GitHub Actions 工作流操作,包括:
在处理 CI/CD 工作流或调试失败运行时加载此参考文档。
Shell 脚本模式和自动化策略,包括:
在构建自动化脚本或处理企业部署时加载此参考文档。
包含全面的 GitHub REST API 端点文档,包括:
在执行复杂的 API 操作或需要详细的端点规范时加载此参考文档。
每周安装量
103
仓库
GitHub 星标数
628
首次出现
2026年1月21日
安全审计
安装于
claude-code84
opencode79
gemini-cli74
codex72
cursor69
github-copilot60
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.
This skill activates for tasks involving:
# Create PR with NOJIRA prefix (bypasses JIRA enforcement checks)
gh pr create --title "NOJIRA: Your PR title" --body "PR description"
# List and view PRs
gh pr list --state open
gh pr view 123
# Manage PRs
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:
GR-1234: Descriptive titleNOJIRA: Descriptive title# Create and manage 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
# View and manage repos
gh repo view --web
gh repo clone owner/repo
gh repo create my-new-repo --public
# Manage GitHub Actions
gh workflow list
gh workflow run workflow-name
gh run watch run-id
gh run download run-id
📚 See references/workflow_operations.md for advanced workflow operations
The gh api command provides direct access to GitHub REST API endpoints. Refer to references/api_reference.md for comprehensive API endpoint documentation.
Basic API operations:
# Get PR details via API
gh api repos/{owner}/{repo}/pulls/{pr_number}
# Add PR comment
gh api repos/{owner}/{repo}/issues/{pr_number}/comments \
-f body="Comment text"
# List workflow runs
gh api repos/{owner}/{repo}/actions/runs
For complex queries requiring multiple related resources, use GraphQL. See references/api_reference.md for GraphQL examples.
# Login to GitHub
gh auth login
# Login to GitHub Enterprise
gh auth login --hostname github.enterprise.com
# Check authentication status
gh auth status
# Set default repository
gh repo set-default owner/repo
# Configure gh settings
gh config set editor vim
gh config set git_protocol ssh
gh config list
Control output format for programmatic processing:
# JSON output
gh pr list --json number,title,state,author
# JSON with jq processing
gh pr list --json number,title | jq '.[] | select(.title | contains("bug"))'
# Template output
gh pr list --template '{{range .}}{{.number}}: {{.title}}{{"\n"}}{{end}}'
📚 See references/best_practices.md for shell patterns and automation strategies
Most Common Operations:
gh pr create --title "NOJIRA: Title" --body "Description" # Create PR
gh pr list # List PRs
gh pr view 123 # View PR details
gh pr checks 123 # Check PR status
gh pr merge 123 --squash # Merge PR
gh pr comment 123 --body "LGTM" # Comment on PR
gh issue create --title "Title" --body "Description" # Create issue
gh workflow run workflow-name # Run workflow
gh repo view --web # Open repo in browser
gh api repos/{owner}/{repo}/pulls/{pr_number} # Direct API call
Comprehensive pull request operations including:
Load this reference when working with complex PR workflows or bulk operations.
Detailed issue management examples including:
Load this reference when managing issues at scale or setting up issue workflows.
Advanced GitHub Actions workflow operations including:
Load this reference when working with CI/CD workflows or debugging failed runs.
Shell scripting patterns and automation strategies including:
Load this reference when building automation scripts or handling enterprise deployments.
Contains comprehensive GitHub REST API endpoint documentation including:
Load this reference when performing complex API operations or when needing detailed endpoint specifications.
Weekly Installs
103
Repository
GitHub Stars
628
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
claude-code84
opencode79
gemini-cli74
codex72
cursor69
github-copilot60
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
104,900 周安装