GitHub Operations
Comprehensive GitHub operations using the gh CLI and REST/GraphQL APIs — PRs, issues, repositories, workflows, and bulk operations across public and Enterprise GitHub.
Clicking through the GitHub UI for repetitive PR and issue work is slow and error-prone. This playbook gives Claude a reliable command vocabulary for everything via gh and the API.
Who it's for: developers, DevOps engineers, engineering managers, automation builders
Example
"Merge the approved PRs and close stale issues" → Claude runs the gh commands to review status, merge, and triage with the right safeguards
CLAUDE.md Template
New here? 3-minute setup guide → | Already set up? Copy the template below.
npx ccplaybooks add github-ops# 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)Get new playbooks like this one
One email a week with new Claude Code workflows. Free, like everything here.
No spam. Unsubscribe anytime.
What This Does
Comprehensive GitHub operations using the gh CLI and REST/GraphQL APIs — PRs, issues, repositories, workflows, and bulk operations across public and Enterprise GitHub.
What's Inside
The template covers:
- When to Use This Skill
- Core Operations
- Authentication and Configuration
- Output Formats
- Quick Reference
- Resources
Quick Start
Step 1: Create a Project Folder
Make a dedicated folder for this workflow and open it in Claude Code.
Step 2: Download the Template
Click Download above to save the template, then drop it into your project as CLAUDE.md (or paste it into your existing one).
Step 3: Start Working
Tell Claude what you need in plain language — it will follow the template's workflow automatically. For example:
Merge the approved PRs and close stale issues
Claude reads the template and runs the steps for you.