azldev-build-component
できること
このスキルは、azldevのコンポーネントをビルドし、ビルドの失敗に対処する方法を説明します。azldevでソフトウェアをパッケージ化していて、失敗したビルドを直す必要がある開発者が対象です。
使う場面
- ✓azldevのコンポーネントのビルドが失敗し、原因を探す必要があるとき。
- ✓依存関係のローカルリポジトリに対して、パッケージを再ビルドしたいとき。
- ✓特定のコンポーネントで、失敗しているテストチェックを無効にしたいとき。
スキルのリンク
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“azldevのコンポーネントのビルドがcheckフェーズで失敗します。原因を探して、ビルドを繰り返し直すのを手伝ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、render、build、テストの繰り返しに従い、レンダリングされたspecと差分を確認します。ツールのビルドオプションを使って依存関係を連鎖させ、デバッグ用にビルド環境を保持します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Build and debug a component
Never install built RPMs on your host — they target the distro, not your dev
machine. Test them in a chroot with the azldev-mock skill. Building and testing are separate
steps: azldev comp build produces RPMs; it does not test them.
Build
azldev comp build -p <name> # one component
azldev comp build -p <a> -p <b> --local-repo-with-publish <dir> # chain deps via a local repo
azldev comp build -p <name> --local-repo <dir> # rebuild against a populated repo
Build foundational packages before their dependents. RPMs land in the project's
configured output directory (out by default). -q quiets output but hides build
progress — use it only for inner-loop builds you expect to succeed.
The inner loop
investigate → modify → render → build → test → inspect
| Step | Command |
|---|---|
| Investigate | read the rendered spec under specs/, or azldev comp diff-sources -p <name> |
| Modify | edit the component's .comp.toml (see the azldev-overlays and azldev-comp-toml skills) |
| Verify | azldev comp render -p <name> (fast — skips source tarballs) |
| Build | azldev comp build -p <name> |
| Test | azldev adv mock shell --add-package <rpm> (see the azldev-mock skill) |
| Inspect | azldev comp build -p <name> --preserve-buildenv always, then a mock shell |
Prefer comp render for quick overlay verification; use comp diff-sources to see the
exact overlay effect (it fetches sources once, applies overlays to a copy, and diffs the
two trees). Builds can be slow — set generous timeouts.
Finalize with azldev comp update -p <name> before opening a PR (see the
azldev-update-component skill).
Debugging build failures
- Render error mentioning a non-standard
Releasetag — a release-calculation issue; see theazldev-comp-tomlskill. - Preview error mentioning
rpmdev-bumpspec,rpmdev-packager,rpm,rpmspec,python3, or the Python RPM module — this applies only when you explicitly use the temporary--rpmdev-bumpspecpreview. Provision the named prerequisite for that opt-in path. Without the flag, azldev keeps the legacy static Release calculation. - Overlay did not apply as expected —
azldev comp diff-sources -p <name>shows what the overlays actually change. - Inspect the build environment —
azldev comp build -p <name> --preserve-buildenv on-failure(valueson-failure,always,never), then enter a mock shell. - Failing
%check— fix the tests first (root cause, upstream patches, targeted fixes). Only as a last resort, disable withbuild.check.skip = trueand a requiredbuild.check.skip_reasonexplaining what fails, why it cannot be fixed, and whether it is temporary. A transient--no-checkbuild flag exists for one-off local builds.
Per-component build tweaks (build.defines, build.without) live in the .comp.toml —
see the azldev-comp-toml skill.
Generated by azldev docs agent; do not hand-edit.
よくある質問
ビルドしたRPMを自分のコンピューターにインストールすべきですか?
いいえ。RPMは配布先向けのもので、お使いのマシン向けではないため、モックのビルドルートでテストするよう、スキルは定めています。
ビルドすればパッケージのテストも行われますか?
いいえ。スキルによると、ビルドとテストは別の手順です。
失敗しているテストチェックを飛ばしてもよいですか?
スキルでは、設定によってコンポーネントの失敗チェックを無効にする方法に触れており、慎重に使うよう述べています。
詳細
作者による元の説明
Read this before building a component or diagnosing a build failure; do not guess build flags or the inner loop. Explains how to build, iterate on, and debug an azldev component, covering comp build flags (local-repo, preserve-buildenv), the render/build/test inner loop, diff-sources, and disabling a failing %check via check.skip. Triggers include build component, build failed, build error, inner loop, preserve buildenv, local repo, disable check.
repo: microsoft/azurelinux
人気
- GitHubのスター
- 5.4k
- ランキング
- #14961
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
azldev-add-component
5.4kエージェントが、azldevのLinuxディストリビューションのビルドに新しいソフトウェアコンポーネントを追加し、上流のspec確認から結果の検証まで進められるよう支援します。
azldev-comp-toml
5.4kエージェントが、azldevで各パッケージのビルド方法を定めるコンポーネント定義ファイルを、作成、編集、確認できるよう支援します。
azldev-image
5.4kエージェントが、azldevのイメージコマンドを使い、コンテナや仮想マシンのLinuxイメージをビルド、起動、テストできるよう支援します。
azldev-mock
5.4kエージェントが、モックのビルド環境の中でビルド済みパッケージをテスト、確認できるよう支援します。お使いのコンピューターには一切インストールされません。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。