跳到正文
cccskills
免费在 GitHub 公开

stacked-prs

Use only when the user explicitly asks to implement with stacked PRs, branch-on-branch PRs, or `gh stack`. For ordinary implementation, use vanilla branches, worktrees, and pull requests.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md1.9 KB
  • agents/openai.yaml214 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Stacked PRs

Use GitHub's official github/gh-stack extension to create a linear series of branches where each pull request targets the branch below it.

When to Use

Use this skill only when the user specifically requests a stack. Otherwise use vanilla branches, worktrees, and PRs, even when a change is large or could be split.

Usage

Inspect the current branch and working tree, preserve unrelated changes, and confirm gh stack --help works. If needed, install the extension:

gh extension install github/gh-stack

Plan a few reviewable layers from foundational to dependent, then implement and commit them bottom to top:

gh stack init --base <trunk> <first-branch>
# implement, verify, and commit
gh stack add <next-branch>
# implement, verify, and commit
gh stack view --json
gh stack submit --auto

submit --auto creates draft PRs. Add --open only when the user wants them ready for review.

To update a lower layer:

gh stack checkout <branch>
# edit, verify, and commit
gh stack rebase --upstack
gh stack push

Use gh stack sync after lower layers merge.

Rules

  • Keep layers linear, focused, and independently reviewable, with their own tests and documentation.
  • Follow repository branch conventions; in this repository, default to agent/ names.
  • Use explicit arguments and non-interactive forms such as view --json and submit --auto.
  • With multiple remotes, identify the correct one and pass --remote <name> where supported.
  • Publish, merge, prune, unstack, or restructure only when authorized by the user's request.
  • Consult the GitHub command reference for less common operations and recovery.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

flue

免费

Use when building, debugging, reviewing, migrating, or documenting Flue projects, including agents, hooks, tools, skills, subagents, sandboxes, routing, channels, persistence, schedules, observability, React clients, deployment targets, and CLI usage. Find and read version-matched Flue documentation before relying on API details.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

github-gh

免费

Choose between deterministic GitHub API tools, local git facts, and approved gh CLI workflows in Neondeck.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

Guidance for Neondeck's /fix-ci operation when repairing failing PR checks in a managed worktree.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

Guidance for Neondeck docs-drift fix handoffs when updating documentation from drift reports.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

Guidance for Neondeck issue-triage digests and human-owned drafted issue replies.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

Guidance for Neondeck's /review-pr agent when preparing a human-owned review briefing and draft comments.

中文简介正在准备中。当前显示原文说明。

pandemicsyn/neondeck82026年10月22日 更新

查看 pandemicsyn 的全部技能

报告此技能的问题