github by callstackincubator/agent-skills
npx skills add https://github.com/callstackincubator/agent-skills --skill github所有 GitHub 操作均使用 gh CLI。与 GitHub MCP 服务器相比,更推荐使用 CLI 以降低上下文使用量。
# 从当前分支创建 PR
gh pr create --title "feat: add feature" --body "Description"
# 压缩合并一个 PR
gh pr merge <PR_NUMBER> --squash --title "feat: add feature (#<PR_NUMBER>)"
# 查看 PR 状态和检查
gh pr status
gh pr checks <PR_NUMBER>
当合并一系列堆叠式 PR 时(每个 PR 都以前一个分支为目标):
# 将下一个 PR 的分支变基到主分支,排除已合并的提交
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)"
完整的分步详细信息请参阅 stacked-pr-workflow.md。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 文件 | 描述 |
|---|---|
| stacked-pr-workflow.md | 将堆叠式 PR 作为独立的压缩提交合并到主分支 |
| 问题 | 从以下开始 |
|---|---|
| 清晰地合并堆叠式 PR | stacked-pr-workflow.md |
每周安装量
1.6K
仓库
GitHub 星标数
1.1K
首次出现
2026年1月26日
安全审计
安装于
claude-code1.1K
opencode1.1K
gemini-cli1.1K
codex1.0K
cursor993
github-copilot962
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 |
Weekly Installs
1.6K
Repository
GitHub Stars
1.1K
First Seen
Jan 26, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code1.1K
opencode1.1K
gemini-cli1.1K
codex1.0K
cursor993
github-copilot962
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装