Back to Skills

github

GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation. Use when working with GitHub PRs, merging strategies, or repository management tasks.

1,313stars94forksUpdated 5/9/2026

Security Assessment

Safe(100/100)
Security Score100/100

About github

The GitHub skill provides structured patterns and command-line workflows for managing pull requests, branching strategies, and repository automation using the gh CLI. It addresses common challenges developers face when handling complex GitHub workflows, such as managing stacked pull requests, ensuring clean merges, and maintaining an organized commit history. By standardizing these operations through clear CLI commands and workflows, this skill helps reduce errors and streamline collaboration across teams.

Key features of this skill include the use of the gh CLI for creating pull requests, viewing PR status and checks, performing squash merges, and rebasing branches in a stacked PR workflow. It offers step-by-step guidance for merging a chain of dependent pull requests, including handling conflicts, updating PR bases, and ensuring commits are cleanly integrated into the main branch. The skill also provides quick reference commands and links to detailed documentation for advanced workflows, emphasizing reproducibility and efficiency.

This skill is ideal for developers, DevOps engineers, and repository maintainers who regularly work with GitHub pull requests, especially in environments with stacked or dependent PRs. It is useful for teams looking to enforce consistent merging strategies, simplify code review processes, and automate routine repository tasks. By following the prescribed patterns, users can improve collaboration, maintain a clean commit history, and reduce friction when integrating multiple changes into a project.

FAQ

How do I create a new pull request using this skill?

You can use the gh CLI command `gh pr create --title "<title>" --body "<description>"` from your current branch to create a new pull request.

Can this skill handle stacked pull requests?

Yes, it provides a workflow for merging stacked PRs by rebasing each subsequent branch onto main, updating the PR base, and squash merging in sequence.

Do I need to use the GitHub web interface?

No, all recommended operations are performed using the gh CLI for lower context usage and more automation control.

What should I do if there are merge conflicts in a stacked PR?

If conflicts occur, the workflow stops and requires manual resolution before continuing with rebasing and merging.

Is this skill compatible with all GitHub repositories?

It works with any GitHub repository where you have appropriate permissions and can use the gh CLI, but it assumes familiarity with Git and command-line operations.

All Files

3 files
SKILL.md1.8 KB
View
references/stacked-pr-workflow.md2.7 KB
View
agents/openai.yaml0.2 KB
View

Install github

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill