azldev-overlay-metadata
できること
このスキルは、各オーバーレイが存在する理由を、カテゴリ、上流の状態、リンクとともに記録する方法を説明します。azldevのディストリビューションで、パッケージへのパッチを管理する開発者が対象です。
使う場面
- ✓オーバーレイを追加し、その存在理由を文書化する必要があるとき。
- ✓オーバーレイのメタデータが、正しいカテゴリと上流の状態になっているか確認するとき。
- ✓複数のオーバーレイが1つの論理的な変更に属し、共通の記録が必要なとき。
スキルのリンク
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-overlay-metadata/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ビルドからCVEの修正を取り除くため、オーバーレイを3つ追加しました。1つの変更として記録されるよう、メタデータを書いてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは必要なカテゴリと上流の状態を選び、参照リンクを追加して、関連するオーバーレイを1つのメタデータブロックにまとめます。メタデータは文書であり、ビルドされたパッケージは変わりません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Overlay metadata — pick a category and annotate
Every overlay documents why it exists (description, required) and what class
of change it is (metadata). When a [metadata] block is present it requires both
a category and an upstream-status. This skill covers how to pick the right values,
attach provenance, and write the TOML at the moment you author or review an overlay.
Metadata is pure documentation — it never changes the rendered spec and is excluded
from component fingerprints, so adding or editing it never invalidates build caches or
locks. For overlay types and the render-and-inspect loop, read the azldev-overlays
skill; this skill is only about the metadata table.
One [metadata] block = one logical change
A single logical change (a CVE backport, a feature disablement, a Fedora cherry-pick)
may need several overlays — e.g. remove a sub-package and drop the configure flags
that went with it. The per-file overlay format (overlay-files) captures exactly this:
one top-level [metadata] table and one or more [[overlays]] entries it applies to.
Per-overlay metadata inside an overlay file is rejected — the file-level block is
the single source of truth.
So: if you find yourself stamping the same metadata on several inline overlays, that is
a signal they are one logical change — move them into a single overlay file with one
[metadata] block.
When to add metadata
- New overlay (any inline
[[components.<name>.overlays]]block or[[overlays]]entry in an overlay file): addmetadatawith both acategoryand anupstream-status. - An overlay's intent changed (e.g. a prune becomes a backport): update the
categoryandupstream-statusto match the new intent.
Step 1 — Pick the category
Choose exactly one category from this closed set (authoritative — matches
metadata.category in the schema):
category |
Use when the overlay… | Extra required/expected fields |
|---|---|---|
upstream-backport |
Backports a fix from an upstream source (Fedora dist-git or the component's OSS project) that AZL will inherit once it bumps past the fix. Self-resolves on version bump. | commits (≥1 upstream commit URL) — required. upstream-status must be upstreamed or upstreamable. |
azl-pruning |
Removes content for AZL: unshipped deps, unneeded features, sub-packages, or files. | — |
azl-compatibility |
Adapts a component to how Azure Linux is built and shipped — build tooling, buildroot, infrastructure, runtime ecosystem — when upstream builds/behaves incorrectly for AZL-specific reasons that are not branding, a missing dependency, architecture, or tests (e.g. azldev downloader quirks, rpmdiff reproducibility, buildroot gaps, Fedora version-skew). |
— |
azl-temp-workaround |
Temporary workaround explicitly intended to be dropped once an upstream or environmental fix lands. Covers a dependency not yet imported into AZL (or unavailable on a target) and any other transient workaround waiting on an external change. | — |
azl-branding-policy |
Fedora→Azure Linux identity differences: intentional name/path/vendor conventions and spec fixes for upstream code that hard-codes Fedora identity strings (e.g. _vendor=redhat, <cpu>-redhat-linux[-gnu] triples, redhat-linux-build dirs). Also covers repointing a Source/URL tag from a Fedora mirror to an Azure Linux one (e.g. azurelinux-rpm-config, golang). |
— |
azl-disable-flaky-tests |
Skips tests that fail intermittently / due to environmental flakiness, not a real component bug. | — |
azl-disable-unsupported-tests |
Skips tests that cannot meaningfully run in AZL's build/runtime env (need network, root, or unavailable hardware in mock). | — |
azl-security-compliance |
Makes FIPS or crypto-policy changes. | — |
azl-release-management |
Adjusts release-tag / changelog mechanics. | — |
azl-platform-adaptation |
Makes architecture-specific adjustments. | — |
Disambiguation tips
- Backport vs. compatibility/pruning: if the exact change exists as a commit in Fedora
dist-git or the upstream project, it is
upstream-backport(supplycommits, withupstream-statusofupstreamedorupstreamable). Use anazl-*category only when the change is AZL-specific with no upstream equivalent. - Pruning vs. temp-workaround: removing a dependency we deliberate
よくある質問
メタデータはビルドされたパッケージを変えますか?
いいえ。スキルによると、メタデータは文書で、ビルドキャッシュの対象から除外されます。
カテゴリと状態は必須ですか?
はい。スキルによると、メタデータブロックにはカテゴリと上流の状態の両方が必要です。
各オーバーレイに個別のメタデータを付けられますか?
いいえ。スキルによると、オーバーレイファイル内の個別のメタデータは拒否されるため、ファイル単位のブロックが唯一の情報源になります。
詳細
作者による元の説明
Read this before adding or reviewing an overlay `metadata` table; do not guess the category or upstream status from memory. Explains the overlay metadata schema that documents why an overlay exists and when it can be dropped, covering the required category and upstream-status values, commit/bug URL references, and the per-file overlay metadata block. Triggers include overlay metadata, category, upstream-status, upstream-backport, azl-pruning, azl-branding-policy, needs-upstream-hook, why overlay.
repo: microsoft/azurelinux
人気
- GitHubのスター
- 5.4k
- ランキング
- #14965
- ライセンス
- 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-image
5.4kエージェントが、azldevのイメージコマンドを使い、コンテナや仮想マシンのLinuxイメージをビルド、起動、テストできるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。