Communityコーディング&開発github.com

update-twoliter

すべてのBottlerocketリポジトリを新しいTwoliterバージョンに更新します。

update-twoliter とは?

このスキルは、フォレスト内のすべてのBottlerocketリポジトリ(core-kit、kernel-kit、bottlerocket)を新しいTwoliterバージョンに更新する手順を提供します。新しいTwoliterリリース候補のテストや安定版へのアップデート、CIテストをトリガーするプルリクエストの準備に最適です。各リポジトリのMakefileまたはMakefile.tomlでバージョンとSHA256チェックサムを更新し、適切なコミットメッセージでコミットを作成します。このスキルはプッシュやPR作成は行わず、手動で行う必要がある点に注意してください。

対応~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に質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

スキル: Twoliterバージョンの更新

目的

フォレスト内のすべてのリポジトリを新しいTwoliterバージョンに更新します。これにより、core-kit、kernel-kit、bottlerocketリポジトリに、更新されたバージョンとSHA256チェックサムを含むgitコミットが作成されます。

使用するタイミング

  • 新しいTwoliterリリース候補のテスト
  • 新しい安定版Twoliterリリースへの更新
  • 新しいTwoliterバージョンでのCIテストをトリガーするプルリクエストの準備

前提条件

  • すべてのリポジトリがフォレストにクローンされていること
  • Gitが作成者情報で設定されていること
  • GitHubリリースへのネットワークアクセス

手順

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 <file>
git commit --amend -m "chore: bump to twoliter X.Y.Z"

関連スキル

  • なし(独立したスキル)

注意事項

  • このスキルはコミットをプッシュしたり、プルリクエストを作成したりしません
  • コミットを作成した後、手動でプッシュしてPRを作成できます
  • PRは新しいTwoliterバージョンでCIテストをトリガーします
  • スキーマバージョンの変更はまれです。リリースノートで指定されている場合のみ更新してください

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

関連スキル