Skip to content
Docksoft

GitHub Workflows (gh CLI)

A

callstack-github

GitHub patterns using gh CLI: pull requests, stacked PRs, code review, branching strategies (squash, rebase), and repository automation. Use for any GitHub PR/branching task.

githubgh-clipull-requeststacked-prcode-review

Install

/plugin install github@callstack-agent-skills
Author
Callstack
License
MIT
Updated
April 2026
Type
Single skill
Document
1.8 KB
Platforms
Claude Code, Codex, Cursor, Multi Platform
View source

SKILL.md

GitHub Patterns

Tools

Use gh CLI for all GitHub operations. Prefer CLI over GitHub MCP servers for lower context usage.

Quick Commands

# Create a PR from the current branch
gh pr create --title "feat: add feature" --body "Description"

# Squash-merge a PR
gh pr merge <PR_NUMBER> --squash --title "feat: add feature (#<PR_NUMBER>)"

# View PR status and checks
gh pr status
gh pr checks <PR_NUMBER>

Stacked PR Workflow Summary

When merging a chain of stacked PRs (each targeting the previous branch):

  1. Merge the first PR into main via squash merge
  2. For each subsequent PR: rebase onto main, update base to main, then squash merge
  3. On conflicts: stop and ask the user to resolve manually
# Rebase next PR's branch onto main, excluding already-merged commits
git rebase --onto origin/main <old-base-branch> <next-branch>
git push --force-with-lease origin <next-branch>
gh pr edit <N> --base main
gh pr merge <N> --squash --title "<PR title> (#N)"

See stacked-pr-workflow.md for full step-by-step details.

Quick Reference

FileDescription
stacked-pr-workflow.mdMerge stacked PRs into main as individual squash commits

Problem -> Skill Mapping

ProblemStart With
Merge stacked PRs cleanlystacked-pr-workflow.md

Related

DevOps & Infrastructure

A

.NET MSBuild

dotnet-msbuild

Comprehensive MSBuild and .NET build skills: failure diagnosis, performance optimization, code quality, and modernization patterns for SDK-style projects.

claude-codegithub-copilotcursor+1MIT

DevOps & Infrastructure

A

.NET NuGet

dotnet-nuget

NuGet and .NET package management: dependency management, version pinning, and modernization patterns for project references.

claude-codegithub-copilotcursor+1MIT

DevOps & Infrastructure

B

AWS Skills

aws-skills

AWS development with CDK best practices, cost optimization, and serverless patterns.

claude-codeMIT

Agent tooling

Want agents that know your stack?

This index is ours, and so is the tooling behind it. If your team wants agents that understand how your own systems actually work, that is a thing we build.

Contact the dock

One address, read by the people who would do the work. No intake form, no calendar link — just an email.

tphamdn@gmail.com
Other reasons to writeWe reply within two business days