azldev-remove-component
Skill này làm gì
Skill này giải thích cách xóa một thành phần thủ công, vì azldev không có lệnh remove. Nó dành cho lập trình viên đưa một gói ra khỏi bản phân phối azldev.
Khi nào nên dùng
- ✓Khi bạn muốn bỏ một gói khỏi bản phân phối azldev.
- ✓Khi một gói có các gói phụ thuộc có thể bị hỏng sau khi xóa.
- ✓Khi cài đặt xuất bản hoặc nhóm gói vẫn nhắc tới gói đã xóa.
Liên kết skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn gỡ gói foo cũ khỏi bản phân phối azldev của chúng tôi. Bạn có thể kiểm tra cái gì phụ thuộc vào nó và dọn các tham chiếu không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent kiểm tra các phụ thuộc ngược, xóa định nghĩa, file khóa và đặc tả đã render của thành phần, rồi gỡ các tham chiếu còn sót lại. Nó xác thực mọi thay đổi ảnh hưởng đến các build khác.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Có lệnh nào để gỡ gói không?
Không. Skill ghi rằng không có lệnh remove trong azldev, nên việc gỡ là một chỉnh sửa thủ công.
Các phụ thuộc được tìm thế nào?
Skill yêu cầu tìm trong cây mã tên thành phần và tên các gói con nhị phân của nó.
Việc xóa có cần build gói không?
Skill ghi rằng thay đổi chỉ xóa không cần build, nhưng các thay đổi khác ảnh hưởng đến đầu ra thì theo quy trình xác thực thông thường.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14967
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
azldev-add-component
5.4kGiúp agent của bạn thêm một thành phần phần mềm mới vào bản build phân phối Linux azldev, từ việc kiểm tra đặc tả upstream đến xác thực kết quả.
azldev-build-component
5.4kGiúp agent của bạn build và gỡ lỗi một gói azldev, bao gồm vòng lặp render, build và kiểm thử cùng cách sửa các kiểm tra build bị lỗi.
azldev-comp-toml
5.4kGiúp agent của bạn viết, chỉnh sửa và xem xét các file định nghĩa thành phần mà azldev dùng để mô tả cách mỗi gói được build.
azldev-image
5.4kGiúp agent của bạn build, khởi động và kiểm thử một image Linux, chẳng hạn image container hoặc máy ảo, bằng các lệnh image của azldev.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.