azldev-remove-component
O que ela faz
Esta skill explica como excluir um componente manualmente, já que o azldev não tem um comando de remoção. Ela é para desenvolvedores que retiram um pacote de uma distribuição azldev.
Quando usar
- ✓Quando você quer tirar um pacote de uma distribuição azldev.
- ✓Quando um pacote tem dependentes que podem quebrar depois da remoção.
- ✓Quando as configurações de publicação ou de grupos de pacotes ainda mencionam o pacote removido.
Link da skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Quero remover o pacote antigo foo da nossa distribuição azldev. Você pode verificar o que depende dele e limpar as referências?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente verifica as dependências reversas, apaga a definição, o lock e a especificação renderizada do componente e depois remove as referências que sobraram. Ele valida as mudanças que afetam outros builds.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Existe um comando para remover um pacote?
Não. A skill diz que não há um comando remove no azldev, então a remoção é uma edição manual.
Como os dependentes são encontrados?
A skill diz para pesquisar na árvore o nome do componente e os nomes dos seus subpacotes binários.
A exclusão precisa de build do pacote?
A skill diz que uma mudança que só exclui não precisa de build, mas outras mudanças que afetam as saídas seguem a validação normal.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 5,4 mil
- Posição no ranking
- #14967
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
azldev-add-component
5,4 milAjuda seu agente a adicionar um novo componente de software a um build de distribuição Linux com azldev, desde a inspeção da especificação upstream até a validação do resultado.
azldev-build-component
5,4 milAjuda seu agente a fazer o build e depurar um pacote azldev, incluindo o ciclo de render, build e teste e as correções de verificações de build que falham.
azldev-comp-toml
5,4 milAjuda seu agente a escrever, editar e revisar os arquivos de definição de componentes que o azldev usa para descrever como cada pacote é construído.
azldev-image
5,4 milAjuda seu agente a construir, iniciar e testar uma imagem Linux, como uma imagem de contêiner ou de máquina virtual, usando os comandos de imagem do azldev.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.