Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)5.4k · #14965

azldev-overlay-metadata

Ce qu’il fait

Cette compétence explique comment consigner la raison d'être de chaque surcouche, avec une catégorie, un statut amont et des liens. Elle s'adresse aux développeurs qui maintiennent des correctifs sur des paquets d'une distribution azldev.

Quand l’utiliser

  • ✓Quand vous ajoutez une surcouche et devez documenter sa raison d'être.
  • ✓Quand vous relisez les métadonnées d'une surcouche pour vérifier la catégorie et le statut amont.
  • ✓Quand plusieurs surcouches font partie d'une même modification logique et ont besoin d'un enregistrement commun.

Lien du skill

https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-overlay-metadata/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-overlay-metadata/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“J'ai ajouté trois surcouches pour retirer un correctif CVE de notre compilation. Peux-tu rédiger les métadonnées pour qu'elles soient documentées comme une seule modification ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent choisit la catégorie et le statut amont requis, ajoute les liens de référence et regroupe les surcouches liées dans un seul bloc de métadonnées. Les métadonnées ne servent qu'à la documentation et ne modifient pas le paquet compilé.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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): add metadata with both a category and an upstream-status.
  • An overlay's intent changed (e.g. a prune becomes a backport): update the category and upstream-status to 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 (supply commits, with upstream-status of upstreamed or upstreamable). Use an azl-* category only when the change is AZL-specific with no upstream equivalent.
  • Pruning vs. temp-workaround: removing a dependency we deliberate
Questions fréquentes

Les métadonnées modifient-elles le paquet compilé ?

Non. La compétence indique que les métadonnées sont de la documentation et sont exclues des caches de compilation.

La catégorie et le statut sont-ils obligatoires ?

Oui. La compétence indique qu'un bloc de métadonnées doit comporter à la fois une catégorie et un statut amont.

Chaque surcouche peut-elle avoir ses propres métadonnées ?

Non. La compétence indique que les métadonnées par surcouche dans un fichier de surcouche sont rejetées, donc le bloc au niveau du fichier est la seule source.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
5.4k
Position au classement
#14965
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires