用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cbgbt/bottlerocket-forest --skill build-variant-from-local-kits命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | build-variant-from-local-kits |
| description | Build a variant using locally published kits for development validation |
Build a complete Bottlerocket variant image using kits published to the local development registry. This enables end-to-end testing of kit changes before publishing to production registries.
build-kit-locally skill)cd ./bottlerocket
brdev twoliter use-local-deps
This creates Twoliter.override pointing to the local registry for fetching kits.
Edit Twoliter.toml and set vendor = "local" for kits you want from the local registry:
[kit.bottlerocket-core-kit]
vendor = "local" # Fetch from local registry
version = "2.0.0"
[kit.bottlerocket-kernel-6.1-kit]
# No vendor override - uses upstream
version = "2.0.0"
Only kits with vendor = "local" will be fetched from the local registry; others use upstream.
./tools/twoliter/twoliter update
cargo make
For specific variant:
cargo make -e BUILDSYS_VARIANT=aws-k8s-1.31
For specific architecture:
cargo make -e BUILDSYS_ARCH=aarch64
ls -lh build/images/*.img
The build should complete successfully and produce an .img file in build/images/.
When done testing, restore upstream configuration:
brdev twoliter use-upstream-deps
This removes Twoliter.override.
Remember to also revert any vendor = "local" changes in Twoliter.toml.
Kit not found in registry:
Error: failed to pull kit
Solution: Verify kit is published with brdev registry list
Version mismatch:
Solution: Ensure Twoliter.toml version matches the published kit version
Lock file out of sync:
Solution: Run ./tools/twoliter/twoliter update again
基于 SOC 职业分类