Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)5.4k · #14962

azldev-comp-toml

Was er macht

Dieser Skill erklärt das Format der azldev-Komponentendateien, die festlegen, woher die Spezifikation eines Pakets stammt und wie sie angepasst wird. Er ist für Entwickler gedacht, die Paketdefinitionen einer azldev-Distribution pflegen.

Wann du ihn nutzt

  • ✓Wenn du eine Komponentendefinitionsdatei anlegen oder bearbeiten musst.
  • ✓Wenn du eine Komponentendatei auf Fehler oder unnötige Einstellungen prüfst.
  • ✓Wenn du Build-Einstellungen oder die Release-Berechnung eines Pakets ändern willst.

Link zum Skill

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

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-comp-toml/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Kannst du meine jq-Komponentendatei prüfen und mir sagen, welche Einstellungen ich entfernen kann, weil sie den Standardwerten entsprechen?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Der Agent liest den Aufbau der Komponentendatei und das Schema und prüft dann Spezifikationsquelle, Build-Einstellungen und Overlays. Er schlägt Änderungen vor, die zum Format des Werkzeugs passen.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Component definition files (*.comp.toml)

A component definition tells azldev where a package's spec comes from and how to customize it for your distro. Every component lives under [components.<name>].

Get the authoritative, always-current field list from the schema:

azldev config generate-schema

Structure

A bare entry inherits everything from your distro's defaults — most upstream packages need nothing more:

[components.curl]

Add sub-tables only for what you change. The fields you will reach for most:

Field Purpose
spec where the spec comes from (see below)
overlays / overlay-files targeted spec/source edits (see the azldev-overlays skill)
build.defines / build.with / build.without RPM macro and bcond build tweaks
release.calculation how the Release tag is managed
render.skip-file-filter rendering edge-case escape hatch

Spec source

The spec field selects where the spec is fetched from. When omitted, the component inherits the distro default (normally an upstream import).

# Upstream import (the usual case) — inherits the distro's upstream version
[components.curl]

# Upstream, but pinned to a specific upstream distro/version
[components.curl]
spec = { type = "upstream", upstream-distro = { name = "fedora", version = "rawhide" } }

# Upstream package whose name differs from the component name
[components.mydistro-rpm-config]
spec = { type = "upstream", upstream-name = "redhat-rpm-config" }

# Local spec that lives in your repo (not imported from an upstream distro)
[components.mydistro-release]
spec = { type = "local", path = "mydistro-release.spec" }

Build configuration

[components.mypackage.build]
defines = { rhel = "11" }      # override RPM macros
with = ["feature_x"]            # enable %bcond_with conditionals
without = ["plugin_rhsm"]       # disable %bcond_with conditionals

Release calculation

release.calculation controls the Release: tag. There are four modes:

  • auto (default) — leave %autorelease unchanged; otherwise bump a static integer Release once for each fingerprint-derived synthetic change.
  • autorelease — force %autorelease handling (use when auto-detection misreads a spec that wraps %autorelease in a conditional).
  • static — require a non-%autorelease static release. The default legacy calculation supports only an integer, integer%{?dist}, or integer%{dist}; other forms require manual or an overlay.
  • manual — you own the Release: value. Use this only when render fails with a "non-standard Release tag" error. A manual component is not bumped by the render/commit/amend cycle, so increment its release yourself in the same change (see the azldev-update-component skill).
[components.mypackage.release]
calculation = "manual"

The temporary --rpmdev-bumpspec flag on comp build, comp render, and comp prepare-sources opts into transactional host handling while Azure Linux migrates. Only that path requires rpmdev-bumpspec, rpmdev-packager, rpm, rpmspec, and Python with its RPM module. It preserves the fixed team identity/comment/datestamp and strict source-EVR transaction checks; locks and synthetic history still determine the number and order of bumps. Without the flag, no bumpspec runtime discovery occurs and the legacy static calculation is used. %autorelease behavior is unchanged on either path.

Render configuration

render.skip-file-filter = true keeps all source and patch files during render. azldev normally prunes files not referenced by the rendered spec; set this only for the rare spec whose Source/Patch filenames use macros the filter cannot expand.

File organization

  • Inline — put simple, customization-free components directly in a shared config file (e.g. [components.jq]).
  • Dedicated — give a component its own <name>/<name>.comp.toml once it needs overlays, build config, or a local spec. Rule of thumb: anything more than [components.<name>] earns a dedicated file.
  • A parent config picks up dedicated files through an includes glob, for example includes = ["**/*.comp.toml"].

Review checklist

Start with azldev comp list -p <name> -q -O json, then use azldev comp query -p <name> -q -O json when the review needs parsed spec details. For a change review, focus on the diff while checking enough surrounding context to ensure

Häufige Fragen

Kann eine Komponentendatei sehr kurz sein?

Ja. Der Skill sagt, ein nackter Eintrag übernimmt Standardwerte, daher brauchen die meisten Upstream-Pakete kaum mehr.

Wo steht die genaue Feldliste?

Der Skill sagt, das Schema mit dem Konfigurationsbefehl des Werkzeugs zu erzeugen, statt sich auf das Gedächtnis zu verlassen.

Was ist ein Overlay?

Es ist ein Patch, der zur Build-Zeit auf die Spezifikation eines Pakets angewendet wird, statt die Spezifikation zu forken.

Details

Originalbeschreibung des Autors

Read this before authoring, editing, or reviewing a *.comp.toml file; do not work from memory. Explains the azldev component definition format and review workflow, covering component structure, spec sources, build config, release calculation, render options, file organization, overlay hygiene, stale files, disabled tests, and testing verification. Triggers include comp.toml, component config, review component, component hygiene, spec source, upstream-distro, build defines, release calculation, includes.

repo: microsoft/azurelinux

Beliebtheit

GitHub-Sterne
5.4k
Platz im Ranking
#14962
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills