CommunityCodierung & Entwicklunggithub.com

update-twoliter

Aktualisiert alle Bottlerocket-Repositorys auf eine neue Twoliter-Version.

Was ist update-twoliter?

Diese Skill aktualisiert systematisch alle Bottlerocket-Repositorys in der Arbeitsumgebung auf eine neue Twoliter-Version. Sie extrahiert SHA256-Prüfsummen für die x86_64- und aarch64-Architekturen von den GitHub-Releases, aktualisiert die Makefile-Dateien in den Kits und die Makefile.toml-Datei im Bottlerocket-Hauptrepository und erstellt für jede Änderung einen Git-Commit. Dies ist nützlich, um neue Twoliter-Release-Kandidaten zu testen, auf eine stabile Version zu aktualisieren oder Pull-Requests für CI-Tests vorzubereiten. Die Skill unterstützt die Kits core-kit, kernel-kit und das Bottlerocket-Hauptrepository und stellt sicher, dass die Versions- und Prüfsummenwerte gemäß der unterschiedlichen Formatierung (mit/ohne 'v'-Präfix) korrekt gesetzt werden.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/cbgbt/bottlerocket-forest/tree/main/skills/update-twoliter

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Skill: Twoliter-Version aktualisieren

Zweck

Aktualisiert alle Repositorys im Forest auf eine neue Version von Twoliter. Dabei werden Git-Commits in den Repositorys core-kit, kernel-kit und bottlerocket mit der aktualisierten Version und den SHA256-Prüfsummen erstellt.

Wann verwenden

  • Testen eines neuen Twoliter-Release-Kandidaten
  • Aktualisieren auf eine neue stabile Twoliter-Version
  • Vorbereiten von Pull-Requests, um CI-Tests mit einer neuen Twoliter-Version auszulösen

Voraussetzungen

  • Alle Repositorys im Forest geklont
  • Git mit Autorinformationen konfiguriert
  • Netzwerkzugriff auf GitHub-Releases

Vorgehen

1. SHA256-Prüfsummen für die neue Version abrufen

Ersetze X.Y.Z durch die Zielversion (z. B. 0.13.0 oder 0.13.0-rc1):

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

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

2. Alle Kits aktualisieren

Bearbeite für jedes Kit im Worktree (z. B. bottlerocket-core-kit, bottlerocket-kernel-kit) die Makefile-Datei:

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

Jedes Kit committen:

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

3. Bottlerocket aktualisieren

Bearbeite bottlerocket/Makefile.toml im Worktree (beachte das v-Präfix):

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

Committen:

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

Validierung

Überprüfe, ob Commits in allen Kits und Bottlerocket erstellt wurden:

# Jedes Kit prüfen
for kit in kits/*/; do
  echo "=== $(basename $kit) ==="
  (cd "$kit" && git show HEAD --stat)
done

# Bottlerocket prüfen
(cd bottlerocket && git show HEAD --stat)

Jeder sollte Folgendes anzeigen:

  • Commit-Nachricht: chore: bump to twoliter X.Y.Z
  • 1 Datei geändert, 3 Einfügungen(+), 3 Löschungen(-)

Häufige Probleme

SHA256-Prüfsumme nicht gefunden:

  • Überprüfe, ob das Release existiert: https://github.com/bottlerocket-os/twoliter/releases/tag/vX.Y.Z
  • Stelle sicher, dass dem Release binäre Artefakte beigefügt sind

Falsches Versionsformat:

  • Kits verwenden "X.Y.Z" (kein v-Präfix) in ihren Makefiles
  • Bottlerocket verwendet "vX.Y.Z" (mit v-Präfix) in Makefile.toml

Commits ändern: Wenn du einen vorhandenen Commit aktualisieren musst (z. B. von RC zu Stable):

# Dateiänderungen vornehmen, dann:
git add <datei>
git commit --amend -m "chore: bump to twoliter X.Y.Z"

Verwandte Skills

  • Keine (eigenständiger Skill)

Hinweise

  • Dieser Skill erstellt KEINE Push-Operationen oder Pull-Requests
  • Nach dem Erstellen der Commits kannst du sie pushen und manuell PRs erstellen
  • PRs lösen CI aus, um die neue Twoliter-Version zu testen
  • Schema-Versionsänderungen sind selten; aktualisiere nur, wenn die Release-Notes dies angeben

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

Verwandte Skills