azldev-remove-component
Fungsinya
Skill ini menjelaskan cara menghapus komponen secara manual, karena azldev tidak punya perintah remove. Skill ini untuk pengembang yang ingin menarik paket dari distribusi azldev.
Kapan dipakai
- โSaat Anda ingin menghapus paket dari distribusi azldev.
- โSaat paket memiliki dependen yang mungkin rusak setelah dihapus.
- โSaat pengaturan publish atau grup paket masih menyebut paket yang dihapus.
Link skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-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 ingin menghapus paket foo lama dari distribusi azldev kami. Bisakah Anda mengecek apa saja yang bergantung padanya dan membersihkan referensinya?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent memeriksa dependensi terbalik, menghapus definisi, lock, dan spec yang dirender dari komponen, lalu menghapus sisa referensi. Agent memvalidasi perubahan yang memengaruhi build lain.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Remove a component
There is no azldev command to remove a component โ it is a manual edit. A
deletion-only change needs no package build, but changes to dependents, package/image
configuration, or other built inputs must follow the repository's normal validation
requirements. The steps below delete the component's definition, lock, and rendered
spec, then clean up references.
Before you start
Confirm the component exists and inspect its resolved configuration:
azldev comp list -p <name> -q -O json
Check for reverse dependencies first: if other components BuildRequires or
Requires this one, removing it breaks their builds. Search the tree for the
component name. Identify its binary subpackage names from the rendered output under
specs/<first-char>/<name>/, then search for those names too.
azldev comp query currently supports local spec sources only, not the usual upstream
spec source.
Steps
Remove the definition. Delete the component's dedicated
<name>/<name>.comp.tomldirectory, or remove its inline[components.<name>]entry from whichever included TOML defines it.Remove publish / package config references. If your project configures publish channels or package groups, drop any references to the component or to its binary subpackages. Publishing is component-scoped; per-binary exceptions are binary-RPM-scoped โ search for both.
Remove the lock. There is no azldev command for this:
rm locks/<name>.lockRemove the rendered spec. Let azldev prune orphaned spec directories:
azldev comp render -a --clean-stale--clean-stale(only valid with-a) removes rendered-spec directories that no longer correspond to a configured component. It re-renders everything, so it is slow; for a targeted removal you can instead delete the component's rendered spec underspecs/by hand.Check other references. Grep for the component (and its binary names) in image definitions and any
*.kiwi/ package-list files, and remove or replace them โ an image that installs a now-removed package will not build.
Verify
azldev comp list -p <name> -q -O json # should report the component is not found
Also confirm the lock and rendered spec directory are gone and that no image or package configuration still references the component.
If the removal required changes to dependents or package/image configuration, build and test the affected outputs according to the repository's normal validation policy.
Notes
- Dependents with manual release. If removing this component forces a change
in a dependent (e.g. dropping a
BuildRequires), and that dependent setsrelease.calculation = "manual", bump its release counter yourself in the same change. Components with automatic release calculation (auto,autorelease,static) are handled by the normal commit/render/amend cycle. - Remove exclusive dependencies together. If a package is only needed by the component you are dropping, remove it in the same change to keep the tree consistent.
Generated by azldev docs agent; do not hand-edit.
Pertanyaan umum
Apakah ada perintah untuk menghapus paket?
Tidak. Menurut skill ini, azldev tidak punya perintah remove, sehingga penghapusan dilakukan melalui suntingan manual.
Bagaimana dependen ditemukan?
Menurut skill ini, cari nama komponen dan nama subpaket biner di seluruh pohon proyek.
Apakah penghapusan memerlukan build paket?
Menurut skill ini, perubahan yang hanya berupa penghapusan tidak memerlukan build, tetapi perubahan lain yang memengaruhi hasil mengikuti validasi normal.
Detail
Deskripsi asli dari pembuat
Read this before deleting or dropping a component; there is no azldev remove command, so doing it wrong leaves dangling state. Explains the manual removal workflow for deleting component metadata, cleaning references, and validating any related output-affecting changes. Triggers include remove component, delete package, drop component, prune dependency.
repo: microsoft/azurelinux
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14967
- 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-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.
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.