跳到正文
cccskills
免费在 GitHub 公开

gh-stack-reconcile

remote の rebase や force-push 後に diverge した gh-stack を診断し、local state を退避して remote に合わせて再構築する。履歴書き換えが疑われる non-fast-forward の調査と復旧に使う。通常の sync や一般の Git branch 管理には使わない。

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

yaakaito/env星标 3(GitHub 3 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(3)

  • SKILL.md2.6 KB
  • references/audit.md3.9 KB
  • references/rebuild.md5.2 KB

SKILL.md(原文)

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

gh-stack reconcile

remote を正として local stack を再構築する。 remote を一切更新せず、純粋な rebase と内容の乖離を layer ごとに区別し、失われ得る local state を先に退避する。

安全条件

  • 実行前に gh stack --version と使う subcommand の --help を確認する。 CLI の挙動は変わり得るため、古い手順を無条件に適用しない。
  • この手順では gh stack sync、gh stack push、gh stack submit、force-push を実行しない。 stack 構成の divergence と Git branch 履歴の divergence は別物である。
  • 再構築はユーザーが依頼した場合だけ行う。 診断だけなら audit と退避案を報告し、stash、backup branch 作成、local branch の ref 更新、stack metadata 変更を行わない。
  • remote は引数で指定されたものを使う。 未指定なら remote.pushDefault、単一 remote の順に解決する。 複数候補が残る場合は推測しない。
  • コマンドはすべて非対話で実行する。 gh stack view には必ず --json、gh stack checkout には stack number、PR number、または PR URL を渡す。
  • rebase、merge、cherry-pick、revert、gh stack modify の recovery が進行中なら何も変更せず止める。
  • 対象 stack に queued PR があれば、merge queue が branch を更新し得るため止める。 queue から外れた後に最初から audit する。

診断と再構築

  1. audit.md を読み、local state、remote 構成、layer ごとの内容差を記録する。 診断だけの依頼は、その結果と退避案を報告して完了とする。
  2. 再構築を依頼されている場合は、audit 後に rebuild.md を読む。 未 commit 変更と元の全 branch を退避し、remote chain が有効な場合だけ ref と local metadata を再構築する。
  3. 再構築の完了は、branch 順と SHA、working tree、remote に途中変更がないことを検証して判断する。 backup と stash は保持し、未解決事項と復元に必要な情報を報告する。

診断結果があっても、別の作業を挟んだ場合は状態を取り直す。 競合や前提の変化を検出したら、古い記録で ref を更新しない。

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Create, update, or review Architecture Decision Records (ADRs) using the project's conventions. Use when asked to record an architecture decision or work on an ADR; not for general design discussion without a requested record.

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

yaakaito/env32026年10月27日 更新

agents-md

免费

Create, edit, or review AGENTS.md and CLAUDE.md repository instructions. Use for agent instruction setup and structure advice, not ordinary code changes that merely read those files.

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

yaakaito/env32026年10月27日 更新

dig

免费

Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking or requests an in-depth interview with dig.

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

yaakaito/env32026年10月27日 更新

discuss

免费

Discuss ideas and design choices before implementation, without editing files.

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

yaakaito/env32026年10月27日 更新

Clone 済みのこの環境リポジトリのルートで実行し、setup.yaml(唯一の真実)と dotfiles/、skills/ を基準に端末上の dotfiles、Claude/Codex skills、関連 CLI 設定を安全に同期・更新・整理する。Use when the user asks to set up, reconcile, migrate, update, clean, prune, or merge this repository's dotfiles or skills with an existing terminal, especially when existing local files must be inspected before applying repository versions.

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

yaakaito/env32026年10月27日 更新

PR 作成を依頼されたときに、依頼範囲の変更を確認し、リポジトリのテンプレートに沿ったタイトルと本文で GitHub PR を作る。本文の下書きだけを求められた場合は公開しない。

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

yaakaito/env32026年10月27日 更新

查看 yaakaito 的全部技能

报告此技能的问题