azldev-remove-component
Was er macht
Dieser Skill erklärt, wie man eine Komponente von Hand löscht, da azldev keinen Entfernen-Befehl hat. Er ist für Entwickler gedacht, die ein Paket aus einer azldev-Distribution ausmustern.
Wann du ihn nutzt
- ✓Wenn du ein Paket aus einer azldev-Distribution entfernen willst.
- ✓Wenn ein Paket Abhängige hat, die nach dem Entfernen brechen könnten.
- ✓Wenn Veröffentlichungs- oder Paketgruppen-Einstellungen das entfernte Paket noch erwähnen.
Link zum Skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte das alte foo-Paket aus unserer azldev-Distribution entfernen. Kannst du prüfen, was davon abhängt, und die Verweise aufräumen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prüft umgekehrte Abhängigkeiten, löscht die Komponentendefinition, die Lock-Datei und die gerenderte Spezifikation und entfernt dann übrig gebliebene Verweise. Er validiert alle Änderungen, die andere Builds betreffen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Gibt es einen Befehl zum Entfernen?
Nein. Der Skill sagt, es gibt keinen azldev-Befehl zum Entfernen, das Löschen ist also eine manuelle Bearbeitung.
Wie findet man Abhängige?
Der Skill sagt, im Verzeichnisbaum nach dem Namen der Komponente und den Namen ihrer binären Unterpakete zu suchen.
Braucht eine reine Löschänderung einen Paketbau?
Der Skill sagt, eine reine Löschung braucht keinen Build, andere Änderungen, die Ausgaben beeinflussen, folgen aber der normalen Validierung.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14967
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
azldev-add-component
5.4kHilft deinem Agenten, eine neue Softwarekomponente zu einem azldev-Linux-Distributionsbuild hinzuzufügen, vom Prüfen der Upstream-Spezifikation bis zur Validierung.
azldev-build-component
5.4kHilft deinem Agenten, ein azldev-Paket zu bauen und zu debuggen, einschließlich der Schleife aus Render, Build und Test und der Behebung fehlschlagender Build-Prüfungen.
azldev-comp-toml
5.4kHilft deinem Agenten, die Komponentendefinitionsdateien von azldev zu schreiben, zu bearbeiten und zu prüfen, die beschreiben, wie jedes Paket gebaut wird.
azldev-image
5.4kHilft deinem Agenten, ein Linux-Image wie ein Container- oder virtuelles Maschinen-Image mit den azldev-Image-Befehlen zu bauen, zu starten und zu testen.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.