azldev-image
できること
このスキルは、KIWI定義を使ってazldevでシステムイメージをビルドし、テストする方法を説明します。azldevのディストリビューションでコンテナや仮想マシンのイメージを作る開発者が対象です。
使う場面
- ✓ビルド済みのパッケージから、コンテナまたは仮想マシンのイメージをビルドする必要があるとき。
- ✓ビルドしたイメージをテスト用の仮想マシンで起動したいとき。
- ✓イメージの設定を登録または変更する必要があるとき。
スキルのリンク
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-image/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“azldevプロジェクトでcontainer-baseイメージをビルドし、テスト用の仮想マシンで起動してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、イメージの一覧、ビルド、起動、テストのコマンドを使います。イメージは設定ファイルで定義されています。実行前に、インストール済みのツールのバージョンに合うフラグを確認します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Build and boot images
An image assembles built RPMs into a deliverable — a container or a bootable VM.
azldev drives the build from a kiwi-ng definition; the .kiwi file itself is
upstream KIWI NG (docs) and azldev does not
own its schema.
Commands
Images are selected by their name as a positional argument (not -p).
| Task | Command |
|---|---|
| List images | azldev image list |
| Build an image (kiwi-ng) | azldev image build <name> |
| Boot an image in a QEMU VM | azldev image boot <name> |
| Run an image's tests | azldev image test <name> |
| Customize a pre-built image | azldev image customize |
azldev image build takes --local-repo / --remote-repo to add package sources and
--arch to target an architecture. When the selected distro version defines
kiwi-config-override, azldev passes it to KIWI with --config. These top-level
overrides have highest precedence. azldev image boot takes a built image name, or an
explicit --image-path / --iso. Confirm current flags with
azldev image <command> --help (there are more subcommands, e.g. inject-files).
Registering an image
Images are declared under [images.<name>] (conventionally in an images.toml):
[images.container-base]
description = "Container base image"
definition = { type = "kiwi", path = "container-base/container-base.kiwi", profile = "core" }
architectures = ["x86_64", "aarch64"]
[images.container-base.capabilities]
container = true
systemd = false
[images.container-base.properties]
openssl-fips-provider = "upstream"
[images.container-base.tests]
tests = [{ name = "smoke" }]
definition.typeiskiwi(the only type today);pathpoints at the.kiwifile;profileselects a kiwi profile (optional).- Boolean
capabilitiesare tri-state flags describing the image —machine-bootable,container,systemd,runtime-package-management,wsl,installer-media,fips-enabled, andcvm. Set only the ones that apply. propertiesis an extensible string-to-string metadata bag. For example,openssl-fips-provider = "upstream"records the image's provider policy without requiring azldev to define that property in its schema.architectures = ["x86_64", "aarch64"]is optional; when unset or empty, the image is treated as unrestricted (all recognized architectures). Set it to restrict which architecturesimage build --archallows for the image.tests.testslists the tests or test groupsazldev image testruns locally. An image ref may also setsku-groups = ["<name>", ...]to fan a test or group out across the VM sizes of one or more[sku-groups.<name>]entries; that fan-out is done by external test orchestration, not by localazldev image test. Do not mapsku-groupsonto arbitrary LISA tests: LISA tests carry their own requirements and are skipped when the SKU does not meet them, so this is meaningful only for the special case of multi-SKU performance tests.publish.channelslists the channels the image publishes to.
The kiwi definition
The .kiwi file is upstream KIWI NG XML — azldev does not own its schema. It selects the
image type (container vs. VM), package lists, repositories, and boot configuration. See
the KIWI NG documentation for the format and elements.
Generated by azldev docs agent; do not hand-edit.
よくある質問
イメージはどの形式で定義されますか?
イメージはKIWI NGの定義ファイルで定義されます。これは、ツールがビルドの元にする上流の形式です。
再ビルドせずにイメージを起動できますか?
はい。スキルによると、ビルド済みのイメージ名または明示したイメージファイルを起動できます。
イメージはどこに登録しますか?
プロジェクトの設定のimagesセクションに宣言します。慣例では、imagesファイルに記述します。
詳細
作者による元の説明
Read this before building, booting, or configuring an azldev image. Explains the azldev image commands (list, build, boot, test, customize) and the [images.<name>] config (kiwi definition, capabilities, tests, publish); the kiwi XML format itself is upstream KIWI NG. Triggers include image build, image boot, kiwi, container image, VM image, images.toml.
repo: microsoft/azurelinux
人気
- GitHubのスター
- 5.4k
- ランキング
- #14963
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
azldev-add-component
5.4kエージェントが、azldevのLinuxディストリビューションのビルドに新しいソフトウェアコンポーネントを追加し、上流のspec確認から結果の検証まで進められるよう支援します。
azldev-build-component
5.4kエージェントが、azldevのパッケージのビルドとデバッグを行えるよう支援します。render、build、テストの繰り返しと、失敗したビルドチェックの修正を含みます。
azldev-comp-toml
5.4kエージェントが、azldevで各パッケージのビルド方法を定めるコンポーネント定義ファイルを、作成、編集、確認できるよう支援します。
azldev-mock
5.4kエージェントが、モックのビルド環境の中でビルド済みパッケージをテスト、確認できるよう支援します。お使いのコンピューターには一切インストールされません。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。