Help us improve
Share bugs, ideas, or general feedback.
GitHub patterns using gh CLI for pull requests, stacked PRs, code review, branching strategies, and repository automation.
npx claudepluginhub callstackincubator/agent-skills --plugin react-native-best-practicesHow this skill is triggered — by the user, by Claude, or both
Slash command
/upgrading-react-native:githubThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use `gh` CLI for all GitHub operations. Prefer CLI over GitHub MCP servers for lower context usage.
Guides Git branch management and GitHub PR workflows using main-branch development, modern git switch/restore commands, and MCP tools for creating, listing, and updating PRs.
Automates GitHub workflow: branching, committing, pushing, PRs, issues, and code review. Use when managing git operations or GitHub development lifecycle.
Guides GitHub CLI (gh) commands for creating/managing PRs, issues, CI runs, releases, auth, and JSON scripting from terminal.
Share bugs, ideas, or general feedback.
Use gh CLI for all GitHub operations. Prefer CLI over GitHub MCP servers for lower context usage.
# 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>
When merging a chain of stacked PRs (each targeting the previous branch):
# 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.
| File | Description |
|---|---|
| stacked-pr-workflow.md | Merge stacked PRs into main as individual squash commits |
| Problem | Start With |
|---|---|
| Merge stacked PRs cleanly | stacked-pr-workflow.md |