azldev-comp-toml
Fungsinya
Skill ini menjelaskan format file komponen azldev, yang menentukan dari mana spec paket berasal dan bagaimana paket itu disesuaikan. Skill ini untuk pengembang yang mengelola definisi paket dalam distribusi azldev.
Kapan dipakai
- βSaat Anda perlu membuat atau mengedit file definisi komponen.
- βSaat meninjau file komponen untuk mencari kesalahan atau pengaturan yang tidak perlu.
- βSaat Anda ingin mengubah pengaturan build atau perhitungan rilis sebuah paket.
Link skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-comp-toml/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBisakah Anda meninjau file komponen jq saya dan memberi tahu pengaturan mana yang bisa dihapus karena sama dengan nilai default?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent membaca struktur file komponen dan skema, lalu memeriksa sumber spec, pengaturan build, dan overlay. Agent menyarankan perubahan yang sesuai dengan format alat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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%autoreleaseunchanged; otherwise bump a static integer Release once for each fingerprint-derived synthetic change.autoreleaseβ force%autoreleasehandling (use when auto-detection misreads a spec that wraps%autoreleasein a conditional).staticβ require a non-%autoreleasestatic release. The default legacy calculation supports only an integer,integer%{?dist}, orinteger%{dist}; other forms requiremanualor an overlay.manualβ you own theRelease:value. Use this only when render fails with a "non-standard Release tag" error. Amanualcomponent is not bumped by the render/commit/amend cycle, so increment its release yourself in the same change (see theazldev-update-componentskill).
[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.tomlonce 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
includesglob, for exampleincludes = ["**/*.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
Pertanyaan umum
Bisakah file komponen sangat pendek?
Ya. Menurut skill ini, entri kosong mewarisi nilai default, sehingga kebanyakan paket hulu hampir tidak memerlukan tambahan.
Di mana daftar field yang tepat?
Menurut skill ini, skema harus dibuat dengan perintah konfigurasi alat, bukan mengandalkan ingatan.
Apa itu overlay?
Itu adalah patch yang diterapkan ke spec paket saat build, sebagai pengganti forking spec.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14962
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
azldev-add-component
5.4kMembantu agent Anda menambahkan komponen perangkat lunak baru ke build distribusi Linux azldev, mulai dari memeriksa spec hulu hingga memvalidasi hasilnya.
azldev-build-component
5.4kMembantu agent Anda membangun dan men-debug paket azldev, termasuk siklus render, build, dan tes, serta perbaikan untuk pemeriksaan build yang gagal.
azldev-image
5.4kMembantu agent Anda membangun, menjalankan, dan menguji image Linux, seperti image container atau mesin virtual, dengan perintah image azldev.
azldev-mock
5.4kMembantu agent Anda menguji dan memeriksa paket hasil build di dalam lingkungan mock build, sehingga tidak pernah menyentuh komputer Anda sendiri.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.