跳到正文
cccskills
免费在 GitHub 公开

gz-migrate-semver

Use to record ADR or OBPI semver renaming migration events.

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

查看安装方法

包含的文件(2)

  • SKILL.md1.8 KB
  • agents/openai.yaml208 B

SKILL.md(原文)

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

gz migrate-semver

Overview

Append artifact_renamed events so the ledger resolves an old ADR or OBPI id to its canonical id. The ledger is never rewritten. gz migrate-semver proposes a rename from two sources:

  • SEMVER_ID_RENAMES in src/gzkit/commands/register.py, a fixed table of legacy renames (pool and SemVer re-sequencing, early slug corrections);
  • on-disk drift (GHI #345): for each ADR or OBPI file whose stem is a slug id, the bare id (ADR-0.35.0, OBPI-0.1.0-01) when ledger events still carry it.

A pair is skipped when its rename event already exists, when the old id never appears in the ledger, or when the ledger already canonicalizes the old id. Re-running is safe. Each event has reason semver_minor_sequence_migration.

It covers bare→slug renames and the table only. A slug→slug correction to an OBPI id goes through uv run python -m gzkit.governance.obpi_slug_rename, and a pool ADR promotion records its own rename through gz adr promote.

Workflow

  1. Preview: uv run gz migrate-semver --dry-run lists each Would append artifact_renamed: <old> -> <new> and writes nothing.
  2. Show the operator the list. The run writes one ledger event per pair in bulk and has no confirmation step, and a bulk rename written in error cannot be removed from an append-only ledger, only countered (GHI #584).
  3. On the operator's approval, run uv run gz migrate-semver and report the count it prints. No applicable SemVer ID migrations found. means nothing was pending.

Example

uv run gz migrate-semver --dry-run
uv run gz migrate-semver

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).

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

tvproductions/gzkit92026年10月23日 更新

Use to file a GitHub issue when a finding needs its own work order or the operator asks; OBPI corrections stay in its change log.

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

tvproductions/gzkit92026年10月23日 更新

ghi-close

免费

Use to do the work a GHI describes, verify it and close the issue with evidence in one sweep.

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

tvproductions/gzkit92026年10月23日 更新

Use to triage the open GHI queue before planning or choosing what to pull; produces a ranked deliverable.

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

tvproductions/gzkit92026年10月23日 更新

git-sync

免费

Run the guarded repository sync ritual; the hooks your pre-commit config declares enforce the quality gates.

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

tvproductions/gzkit92026年10月23日 更新

git-sync

免费

Run the guarded repository sync ritual; commit-time hooks enforce the cheap gates and the pre-push hook runs gz check.

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

tvproductions/gzkit92026年10月23日 更新

查看 tvproductions 的全部技能

报告此技能的问题