Community程式設計與開發github.com

更新 Twoliter 版本

將所有 Bottlerocket 儲存庫更新至新的 Twoliter 版本。

更新 Twoliter 版本 是什麼?

此技能用於將工作樹中所有 Bottlerocket 儲存庫(包括 core-kit、kernel-kit 以及 bottlerocket 主儲存庫)更新至指定的 Twoliter 新版本。它會自動在每個儲存庫中修改 Makefile 或 Makefile.toml,更新 TWOLITER_VERSION 及其對應的 SHA256 校驗碼,然後以標準化的 commit 訊息提交變更。支援從 GitHub Releases 擷取 x86_64 與 aarch64 架構的 SHA256 值。此技能適用於測試 Twoliter 的 Release Candidate 或升級至穩定版本,並可為後續的 CI 觸發做好準備。請注意,此技能僅負責建立本機提交,不會自動推送或建立 Pull Request。

相容平台~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 Release Candidate
  • 更新至新的 Twoliter 穩定版本
  • 準備 Pull Request 以觸發使用新 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. 更新所有套件

對於工作樹中的每個套件(例如 bottlerocket-core-kit、bottlerocket-kernel-kit),編輯 Makefile:

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

提交每個套件:

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"

驗證

確認提交已在所有套件和 bottlerocket 中建立:

# 檢查每個套件
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
  • 檢查該版本是否已附加二進位檔案

版本格式錯誤:

  • 套件的 Makefile 使用 "X.Y.Z"(沒有 v 前綴)
  • bottlerocket 的 Makefile.toml 使用 "vX.Y.Z"(有 v 前綴)

修改先前的提交: 如果需要更新現有的提交(例如從 RC 改為穩定版):

# 先修改檔案,然後:
git add <檔案>
git commit --amend -m "chore: bump to twoliter X.Y.Z"

相關技能

  • 無(獨立技能)

備註

  • 此技能不會推送提交或建立 Pull Request
  • 建立提交後,您可以手動推送並建立 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

相關技能