azldev-add-component
O que ela faz
Esta skill guia a inclusão de um pacote em um build de distribuição Linux baseado em azldev. Ela é para desenvolvedores que empacotam software para uma distro construída com azldev.
Quando usar
- ✓Quando você quer adicionar um novo pacote a um build de distribuição azldev.
- ✓Quando você precisa importar um pacote upstream e decidir se as mudanças vão inline ou em um arquivo dedicado.
- ✓Quando você está validando um novo componente com as etapas de render, diff e build.
Link da skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-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
“Preciso adicionar o pacote jq à nossa distro azldev. Você pode me guiar na inspeção da especificação upstream e na validação do build?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente confirma que o componente não existe, fixa a origem dele, lê a especificação upstream e depois configura o arquivo e verifica o render e o build. Ele segue os passos do próprio fluxo de trabalho da ferramenta.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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.
Perguntas frequentes
Devo adivinhar os detalhes do upstream?
Não. A skill diz para inspecionar primeiro a especificação upstream, em vez de adivinhar a partir da memória.
Quando é preciso um arquivo dedicado?
A skill diz que um componente que precisa de overlays, configurações de build ou uma especificação local ganha sua própria pasta de configuração.
Ele instala os pacotes gerados no meu computador?
Não. A skill diz que os pacotes gerados devem ser testados em um ambiente de build mock, e não instalados na máquina.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 5,4 mil
- Posição no ranking
- #14960
- Licença
- MIT
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
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.
azldev-mock
5,4 milAjuda seu agente a testar e inspecionar pacotes gerados dentro de um ambiente de build mock, para que eles nunca toquem no seu próprio computador.
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.