Community编程与开发github.com

更新 Twoliter 版本

将所有 Bottlerocket 仓库中的 Twoliter 版本更新为指定版本,并创建相应的 git 提交和 SHA256 校验和。

更新 Twoliter 版本 是什么?

此技能用于将森林中所有 Bottlerocket 仓库(包括 core-kit、kernel-kit 以及 bottlerocket 本身)更新到新的 Twoliter 版本。它通过自动化流程执行以下操作:首先,从 GitHub Releases 获取新版本对应架构(x86_64 和 aarch64)的 SHA256 校验和;然后,分别在各个 kit 的 `Makefile` 和 bottlerocket 的 `Makefile.toml` 中更新版本号和校验和;最后,生成符合约定格式的 git 提交(例如 `chore: bump to twoliter X.Y.Z`)。主要用途包括测试 Twoliter 发布候选版、更新到新的稳定版,以及准备触发 CI 测试的拉取请求。支持运行在任意能克隆这些仓库的本地开发环境中,需要网络访问 GitHub 和已配置的 git 用户信息。该技能不会自动推送或创建拉取请求,仅创建本地提交。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cbgbt/bottlerocket-forest/tree/main/skills/update-twoliter

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

技能:更新 Twoliter 版本

目的

将森林中所有仓库更新到新版本的 Twoliter。这会在 core-kit、kernel-kit 和 bottlerocket 仓库中创建包含更新版本号和 SHA256 校验和的 git 提交。

何时使用

  • 测试新的 Twoliter 发布候选版
  • 更新到新的稳定版 Twoliter
  • 准备拉取请求以触发使用新 Twoliter 版本的 CI 测试

前提条件

  • 所有仓库已克隆到森林中
  • Git 已配置作者信息
  • 能够访问 GitHub Releases

步骤

1. 获取新版本的 SHA256 校验和

将 X.Y.Z 替换为目标版本(例如 0.13.0 或 0.13.0-rc1):

# 对于 x86_64
curl -sSL "https://github.com/bottlerocket-os/twoliter/releases/download/vX.Y.Z/twoliter-x86_64-unknown-linux-musl.tar.xz.sha256"

# 对于 aarch64
curl -sSL "https://github.com/bottlerocket-os/twoliter/releases/download/vX.Y.Z/twoliter-aarch64-unknown-linux-musl.tar.xz.sha256"

2. 更新所有 kit

对工作树中的每个 kit(例如 bottlerocket-core-kit、bottlerocket-kernel-kit),编辑 Makefile:

TWOLITER_VERSION ?= "X.Y.Z"
TWOLITER_SHA256_AARCH64 ?= "<aarch64-sha256>"
TWOLITER_SHA256_X86_64 ?= "<x86_64-sha256>"

提交每个 kit:

cd kits/<kit-name>
git add Makefile
git commit -m "chore: bump to twoliter X.Y.Z"
cd ../..

3. 更新 bottlerocket

编辑工作树中的 bottlerocket/Makefile.toml(注意 v 前缀):

TWOLITER_VERSION = "vX.Y.Z"
TWOLITER_SHA256_AARCH64 = "<aarch64-sha256>"
TWOLITER_SHA256_X86_64 = "<x86_64-sha256>"

提交:

cd bottlerocket
git add Makefile.toml
git commit -m "chore: bump to twoliter X.Y.Z"

验证

确认所有 kit 和 bottlerocket 中已创建提交:

# 检查每个 kit
for kit in kits/*/; do
  echo "=== $(basename $kit) ==="
  (cd "$kit" && git show HEAD --stat)
done

# 检查 bottlerocket
(cd bottlerocket && git show HEAD --stat)

每个应显示:

  • 提交消息:chore: bump to twoliter X.Y.Z
  • 1 个文件变更,3 行插入,3 行删除

常见问题

找不到 SHA256 校验和:

  • 确认该版本存在:https://github.com/bottlerocket-os/twoliter/releases/tag/vX.Y.Z
  • 检查发布页是否附带了二进制构件

版本格式错误:

  • Kit 的 Makefile 中使用 "X.Y.Z"(不带 v 前缀)
  • bottlerocket 的 Makefile.toml 中使用 "vX.Y.Z"(带 v 前缀)

修改已有提交: 如果需要更新现有提交(例如从 RC 版切换到稳定版):

# 修改文件后:
git add <file>
git commit --amend -m "chore: bump to twoliter X.Y.Z"

相关技能

  • 无(独立技能)

备注

  • 此技能不会推送提交或创建拉取请求
  • 创建提交后,您可以手动推送并创建 PR
  • PR 将触发 CI 以测试新的 Twoliter 版本
  • Schema 版本变更很少见;仅在发布说明中特别指出时才进行更新

Individual skills in this repo

This repo contains 19 individual skills — each has its own dedicated page.

ad-hoc-implementation-plan

Transform a rough plan into implement-commit ready artifacts. Allows rigorous review while implementing.

build-kit-locally

Build a kit and publish it to a locally hosted registry for development testing

build-variant-from-local-kits

Build a variant using locally published kits for development validation

deep-research

Create educational documents that build understanding progressively with citations

edit-spec-file

Edit Bottlerocket RPM spec files following project style conventions

fact-find

Quick lookup of specific facts about Bottlerocket with citations

idea-honing

Clarify feature ideas through iterative Q&A, recording insights to guide concept development

implement-commit

Implement commits from an implementation plan using a TDD pipeline

local-registry

Start and manage a local OCI registry for Bottlerocket kit development

prepare-core-kit-release

Prepare bottlerocket-core-kit for release by bumping version and updating changelog

propose-feature-concept

Create a new feature concept document to pitch the idea and explain the problem/solution

propose-feature-design

Create or update feature technical design document with architecture and implementation guidance

propose-feature-requirements

Create or update feature requirements specification using EARS notation with examples and appendices

propose-feature-test-plan

Create a test plan mapping EARS requirements and Critical Constraints to specific tests

propose-implementation-plan

Create an implementation plan with atomic commits that build toward a complete feature

review-code

Deep code review generating PR comments via principled question-driven analysis

review-scope

Verify code changes match intended scope and requirements without exceeding boundaries

review-style

Verify code follows project style guides without providing improvement suggestions

test-local-twoliter

Build and test local changes to twoliter before releasing

相关技能