azldev-remove-component
Что он делает
Этот скилл объясняет, как удалить компонент вручную, так как в azldev нет команды remove. Он нужен разработчикам, которые выводят пакет из дистрибутива azldev.
Когда использовать
- ✓Когда вы хотите убрать пакет из дистрибутива azldev.
- ✓Если у пакета есть зависимые, которые могут сломаться после удаления.
- ✓Когда в настройках публикации или групп пакетов всё ещё упоминается удалённый пакет.
Ссылка на скилл
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Я хочу удалить старый пакет foo из нашего дистрибутива azldev. Проверь, что от него зависит, и почисти ссылки на него.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Агент проверяет обратные зависимости, удаляет определение компонента, lock-файл и отрисованную спецификацию, затем убирает оставшиеся ссылки. Он проверяет любые изменения, которые влияют на другие сборки.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с 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.
Частые вопросы
Есть ли команда для удаления пакета?
Нет. Скилл говорит, что команды remove в azldev нет, поэтому удаление делается вручную.
Как найти зависимых?
Скилл велит искать в дереве имя компонента и имена его двоичных подпакетов.
Нужна ли сборка пакета при удалении?
Скилл говорит, что изменение, состоящее только из удаления, сборки не требует, а остальные изменения, влияющие на результат, проходят обычную проверку.
Подробности
Оригинальное описание автора
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
Популярность
- Звёзды на GitHub
- 5.4k
- Место в рейтинге
- #14967
- Лицензия
- MIT
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
azldev-add-component
5.4kПомогает агенту добавить новый программный компонент в сборку дистрибутива Linux azldev, от изучения исходной спецификации до проверки результата.
azldev-build-component
5.4kПомогает агенту собрать и отладить пакет azldev, включая цикл render, build и test и исправление ошибок проверок сборки.
azldev-comp-toml
5.4kПомогает агенту писать, редактировать и проверять файлы определения компонентов azldev, которые описывают сборку каждого пакета.
azldev-image
5.4kПомогает агенту собрать, загрузить и протестировать образ Linux, например образ контейнера или виртуальной машины, с помощью команд azldev.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.