github-ops

Automate GitHub PRs, issues, repos, and workflows via gh CLI and APIs.

1.3k|212|Updated Oct 22, 2025
One-click install
npx skills add https://github.com/daymade/claude-code-skills --skill github-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-ops
Source: https://github.com/daymade/claude-code-skills/tree/main/github-ops
Command: npx skills add https://github.com/daymade/claude-code-skills --skill github-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, and includes references (resource) components.

What problem does it solve?

This Skill guides users through GitHub operations using the gh CLI and GitHub REST/GraphQL APIs, enabling efficient PR management, issue handling, repository operations, and workflow automation.

Core Features & Use Cases

  • Create, view, merge PRs; manage issues; configure repositories
  • Query GitHub API endpoints (REST/GraphQL)
  • Manage Workflows/Actions; bulk operations for large repos
  • Enterprise GitHub integration and CLI-based automation

Quick Start

  • Create and view PRs: gh pr create --title "<title>" --body "<desc>" and gh pr view <pr-number>

Frequently Asked Questions about github-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request creation and merging with the gh CLI?

The gh CLI automates PR workflows end-to-end: create PRs with `gh pr create --title "<title>" --body "<desc>"`, view them with `gh pr view <pr-number>`, and merge with `gh pr merge <pr-number>`. You can chain commands to script multi-step PR operations and produce JSON output for downstream processing.

Can I manage GitHub issues and repositories from the command line?

Yes. The gh CLI handles issue creation, viewing, and updates alongside repository configuration and bulk operations. You can query and modify issues and repos programmatically, making it ideal for automation across large repositories and enterprise GitHub environments.

What's the best way to query GitHub REST and GraphQL APIs without writing custom code?

Use gh CLI's built-in API commands to query both REST and GraphQL endpoints directly. Structure queries with `gh api` and filter results as JSON, eliminating the need for external HTTP clients or custom authentication logic while maintaining full endpoint access.

How can I automate GitHub Actions workflows and control them programmatically?

The gh CLI lets you manage workflows, trigger runs, and query workflow status programmatically. Combined with REST/GraphQL API access, you can build automation for workflow dispatch, monitoring, and integration with external systems.

Does gh CLI support GitHub Enterprise authentication and multi-host setups?

Yes. The gh CLI handles authentication across GitHub.com and GitHub Enterprise hosts. You can configure multiple hosts and automate operations across both public and enterprise environments in a single workflow or script.

Can I script GitHub operations to produce structured output for further processing?

Yes. The gh CLI outputs JSON natively, letting you format results as templates or structured data. This enables chaining operations with other tools, parsing results in scripts, and building complex automation pipelines.