跳到正文
cccskills
免费在 GitHub 公开

cascade-merge

Cascade merge changes through a chain of dependent branches. Use when updating stacked/chained PRs, propagating changes from a parent branch to all downstream branches, or when the user mentions "cascade merge", "propagate changes", "update dependent branches", or "merge to downstream branches".

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

集成工具GitHub
查看安装方法

包含的文件(1)

  • SKILL.md2.6 KB

SKILL.md(原文)

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

Cascade Merge

Propagate changes from a source branch through all dependent branches in a PR chain.

Workflow

1. Identify Downstream Branches

gh pr list --state open --json number,title,headRefName,baseRefName --limit 50 | jq -r '.[] | "\(.baseRefName)\t\(.headRefName)"'

Build the dependency chain by finding PRs where baseRefName matches the current branch, then recursively find PRs based on those branches.

2. Merge and Push Each Branch

Fetch first, then for each downstream branch in order:

git fetch origin
git checkout <downstream-branch>
git merge origin/<upstream-branch> --no-edit
git push origin <downstream-branch>

A hook allows git merge only for the remote-tracking branch of the PR's base, so merge origin/<upstream-branch>, not the local branch. Pushing the upstream branch updates origin/<upstream-branch> before the next downstream merge.

Do not cherry-pick into a downstream branch, even when the merge is blocked or only one commit is needed. A cherry-picked commit gets a new hash, so git cannot tell it is the same change as the upstream commit. Every later change upstream has to be picked again by hand, and each round leaves duplicate commits and conflicts in the downstream history. When the PR targets a branch other than the default branch, a hook blocks git cherry-pick of any commit that an upstream branch already holds. Upstream branches are the base, its own PR bases up the chain, and the default branch. If the merge you need is blocked, report it to the user instead of looking for another route.

3. Handle Conflicts

If a merge conflict occurs:

  1. Report the conflict to the user
  2. Ask how to proceed (resolve manually, skip branch, or abort)

Example

Given this PR chain:

main
 └── feature-1
      └── feature-2
           └── feature-3

When feature-1 is updated, cascade merge will:

  1. Merge feature-1 into feature-2, push
  2. Merge feature-2 into feature-3, push

Output

Report results as a table:

BranchMerged FromStatus
feature-2feature-1Done
feature-3feature-2Done

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Use by any agent before writing specs, editing code, or changing workflow files when the change could add compatibility behavior, aliases, silent fallbacks, or default-value fallbacks.

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

ogadra/dotfiles32026年10月19日 更新

grill-me

免费

Interview the user in rounds until no branch of the design tree stays open.

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

ogadra/dotfiles32026年10月19日 更新

外部のスキルをこのリポジトリにコピーして自分のスキルにする。ユーザーがスキルのURLやリポジトリ名を渡して「入れたい」「導入したい」と言ったとき、「上流を参照せずコピーしたい」と言ったとき、またはユーザーが `/import-skill` と打ったときに使う。Vendors an external Claude skill into this repository.

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

ogadra/dotfiles32026年10月19日 更新

ponytail

免费

Forces the laziest solution that actually works, simplest, shortest, most minimal. Channels a senior dev who has been paged at 3am for a factory class that wrapped one function: question whether the task needs to exist at all, reach for the standard library before custom code, native platform features before dependencies, one line before fifty. Supports intensity levels: lite, full, ultra. The default is full. Use on ANY coding task: writing, adding, refactoring, fixing, reviewing, or designing code, and choosing libraries or dependencies. Also use whenever the user says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal solution", "yagni", "do less", or "shortest path", or complains about over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT use for non-coding requests such as general knowledge, prose, translation, summaries, recipes.

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

ogadra/dotfiles32026年10月19日 更新

pr-create

免费

PRを作る、または既存PRのbodyを直す。ユーザーが「PRを作る」「PR出して」「PRのbodyを直して」と言ったとき、ユーザーが `/pr-create` と打ったとき、または `gh pr create` や `gh pr edit --body` がhookにブロックされたときに使う。Creates or edits a pull request with a three-line body.

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

ogadra/dotfiles32026年10月19日 更新

pr-review

免费

Review a GitHub pull request from multiple perspectives in parallel, output only findings, then let the user pick which to fix in the same session. Use when the user asks to review a PR by number, mentions "PRレビュー" / "PR review" with a number, or invokes `/pr-review <number>`. Fans out subagents for absolute-rules, stop-slop, security, architecture, code-quality, testing, and ai-antipattern.

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

ogadra/dotfiles32026年10月19日 更新

查看 ogadra 的全部技能

报告此技能的问题