azldev-add-component
Fungsinya
Skill ini memandu penambahan paket ke build distribusi Linux berbasis azldev. Skill ini untuk pengembang yang mengemas perangkat lunak untuk distro yang dibangun dengan azldev.
Kapan dipakai
- โSaat Anda ingin menambahkan paket baru ke build distribusi azldev.
- โSaat Anda perlu mengimpor paket hulu dan memutuskan apakah perubahannya ditulis langsung atau di file khusus.
- โKetika Anda memvalidasi komponen baru dengan langkah render, diff, dan build.
Link skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-component/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
โSaya perlu menambahkan paket jq ke distro azldev kami. Bisakah Anda memandu saya memeriksa spec hulu dan memvalidasi build-nya?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memastikan komponen belum ada, mengunci sumbernya, membaca spec hulu, lalu menyiapkan konfigurasi dan memeriksa render serta build. Agent mengikuti langkah-langkah dalam alur kerja alat tersebut.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Add a component
Before you start
Confirm the component does not already exist:
azldev comp list -p <name> -q -O json
Inspect the upstream spec first
The reliable way to see what you are importing (direct web fetches of upstream dist-git often fail bot detection):
Add a bare entry so azldev can resolve the component: run
azldev comp add <name>(it appends[components.<name>]to the root config file), or hand-add[components.<name>]to an included config file if you want it to live elsewhere. A bare root entry is perfect for initial testing, but real distros will usually segment the configuration into included files. Once the initial pass is done, ensure the component is in the right place and remove the root entry.Create the initial lock so source resolution is pinned before inspection:
azldev comp update -p <name>Pull the sources without overlays into a scratch dir under the work dir:
azldev comp prep-sources -p <name> --skip-overlays --force -o base/build/work/scratch/<name> -qRead the spec and plan any overlays.
Inline vs dedicated file
Inline โ a bare upstream import with no changes stays in a shared config file:
[components.jq]Dedicated โ anything that needs overlays, build config, or a local spec gets its own
<name>/<name>.comp.toml. Rule of thumb: more than[components.<name>]earns a dedicated file. Anincludes = ["**/*.comp.toml"]glob picks it up automatically.
azldev comp add <name> [<name>...] adds bare [components.<name>] entries that inherit
the distro defaults; it writes to the root config file and does not scaffold spec or
source files. If your distro keeps components in included or dedicated files, move the
entry there afterward.
Customize
For spec source types and overlays, read the azldev-comp-toml and azldev-overlays skills. Key
points when adding a component:
- Prefer overlays over forking the spec โ overlays get upstream updates for free. Forking a spec is a last resort and a long-term maintenance commitment. Get explicit user sign-off first, document every change, and keep the delta minimal.
- Every overlay needs a
descriptionexplaining why it is needed. - Keep
%checkenabled. Disable it only as a last resort viabuild.check.skip = truewith a requiredbuild.check.skip_reason(see theazldev-build-componentskill).
Validate
The initial lock pins the upstream revision you inspected. Refresh it after the component inputs settle, then validate:
azldev comp update -p <name> # resolve the upstream commit and write the lock
azldev comp render -p <name> # apply overlays and write the rendered spec
azldev comp diff-sources -p <name> # see exactly what the overlays change
azldev comp build -p <name> # build the RPMs
Inspect the rendered spec under specs/. A new component always needs a
smoke test โ see the azldev-build-component and azldev-mock skills.
After all component inputs are final, run azldev comp update -p <name> again and
re-render. Stage the component definition and sources, locks/<name>.lock, and
the rendered output before committing. Then re-render, stage
specs/<first-char>/<name>/, and amend the commit so %changelog and
Release: reflect it. See the azldev-update-component skill for the complete
finalization workflow.
Generated by azldev docs agent; do not hand-edit.
Pertanyaan umum
Haruskah saya menebak detail hulu?
Tidak. Menurut skill ini, spec hulu harus diperiksa terlebih dahulu, bukan ditebak dari ingatan.
Kapan file khusus diperlukan?
Menurut skill ini, komponen yang memerlukan overlay, pengaturan build, atau spec lokal mendapat folder konfigurasi sendiri.
Apakah paket hasil build dipasang di komputer saya?
Tidak. Menurut skill ini, paket hasil build harus diuji di lingkungan mock build, bukan dipasang di host.
Detail
Deskripsi asli dari pembuat
Read this before adding or importing a component; follow the workflow instead of guessing. Explains how to add a new component to an azldev distro, covering inspecting the upstream spec, the inline-versus-dedicated-file decision, and validating with render, diff-sources, and build. Triggers include add component, new package, import package, create comp.toml, new component.
repo: microsoft/azurelinux
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14960
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
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-comp-toml
5.4kMembantu agent Anda menulis, mengedit, dan meninjau file definisi komponen yang dipakai azldev untuk menjelaskan cara setiap paket dibangun.
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.