azldev-add-component
Was er macht
Dieser Skill führt durch das Hinzufügen eines Pakets zu einem azldev-basierten Linux-Distributionsbuild. Er ist für Entwickler gedacht, die Software für eine mit azldev gebaute Distribution paketieren.
Wann du ihn nutzt
- ✓Wenn du ein neues Paket zu einem azldev-Distributionsbuild hinzufügen willst.
- ✓Wenn du ein Upstream-Paket importieren musst und entscheiden willst, ob seine Änderungen inline oder in einer eigenen Datei stehen.
- ✓Wenn du eine neue Komponente mit Render-, Diff- und Build-Schritten validierst.
Link zum Skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-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 muss das jq-Paket zu unserer azldev-Distribution hinzufügen. Kannst du mich durch das Prüfen der Upstream-Spezifikation und die Validierung des Builds führen?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent prüft, dass die Komponente noch nicht existiert, fixiert ihre Quelle, liest die Upstream-Spezifikation und richtet dann Konfiguration sowie Render- und Build-Prüfung ein. Er folgt den Schritten des Werkzeug-eigenen Workflows.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Add a component
Before you start
Confirm the component does not already exist:
azldev comp list -p <name> -q -O json
Inspect the upstream spec first
The reliable way to see what you are importing (direct web fetches of upstream dist-git often fail bot detection):
Add a bare entry so azldev can resolve the component: run
azldev comp add <name>(it appends[components.<name>]to the root config file), or hand-add[components.<name>]to an included config file if you want it to live elsewhere. A bare root entry is perfect for initial testing, but real distros will usually segment the configuration into included files. Once the initial pass is done, ensure the component is in the right place and remove the root entry.Create the initial lock so source resolution is pinned before inspection:
azldev comp update -p <name>Pull the sources without overlays into a scratch dir under the work dir:
azldev comp prep-sources -p <name> --skip-overlays --force -o base/build/work/scratch/<name> -qRead the spec and plan any overlays.
Inline vs dedicated file
Inline — a bare upstream import with no changes stays in a shared config file:
[components.jq]Dedicated — anything that needs overlays, build config, or a local spec gets its own
<name>/<name>.comp.toml. Rule of thumb: more than[components.<name>]earns a dedicated file. Anincludes = ["**/*.comp.toml"]glob picks it up automatically.
azldev comp add <name> [<name>...] adds bare [components.<name>] entries that inherit
the distro defaults; it writes to the root config file and does not scaffold spec or
source files. If your distro keeps components in included or dedicated files, move the
entry there afterward.
Customize
For spec source types and overlays, read the azldev-comp-toml and azldev-overlays skills. Key
points when adding a component:
- Prefer overlays over forking the spec — overlays get upstream updates for free. Forking a spec is a last resort and a long-term maintenance commitment. Get explicit user sign-off first, document every change, and keep the delta minimal.
- Every overlay needs a
descriptionexplaining why it is needed. - Keep
%checkenabled. Disable it only as a last resort viabuild.check.skip = truewith a requiredbuild.check.skip_reason(see theazldev-build-componentskill).
Validate
The initial lock pins the upstream revision you inspected. Refresh it after the component inputs settle, then validate:
azldev comp update -p <name> # resolve the upstream commit and write the lock
azldev comp render -p <name> # apply overlays and write the rendered spec
azldev comp diff-sources -p <name> # see exactly what the overlays change
azldev comp build -p <name> # build the RPMs
Inspect the rendered spec under specs/. A new component always needs a
smoke test — see the azldev-build-component and azldev-mock skills.
After all component inputs are final, run azldev comp update -p <name> again and
re-render. Stage the component definition and sources, locks/<name>.lock, and
the rendered output before committing. Then re-render, stage
specs/<first-char>/<name>/, and amend the commit so %changelog and
Release: reflect it. See the azldev-update-component skill for the complete
finalization workflow.
Generated by azldev docs agent; do not hand-edit.
Häufige Fragen
Soll ich die Upstream-Details erraten?
Nein. Der Skill sagt, zuerst die Upstream-Spezifikation zu prüfen, statt aus dem Gedächtnis zu raten.
Wann braucht es eine eigene Datei?
Der Skill sagt, eine Komponente, die Overlays, Build-Einstellungen oder eine lokale Spezifikation braucht, bekommt einen eigenen Konfigurationsordner.
Installiert er gebaute Pakete auf meinem Computer?
Nein. Der Skill sagt, gebaute Pakete sollen in einer Mock-Build-Umgebung getestet werden, nicht auf dem Host.
Details
Originalbeschreibung des Autors
Read this before adding or importing a component; follow the workflow instead of guessing. Explains how to add a new component to an azldev distro, covering inspecting the upstream spec, the inline-versus-dedicated-file decision, and validating with render, diff-sources, and build. Triggers include add component, new package, import package, create comp.toml, new component.
repo: microsoft/azurelinux
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14960
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
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.
azldev-mock
5.4kHilft deinem Agenten, gebaute Pakete in einer Mock-Build-Umgebung zu testen und zu prüfen, damit sie deinen eigenen Computer nie berühren.
Ä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.