azldev-update-component
O que ela faz
Esta skill explica quando e como atualizar os arquivos de lock dos componentes no azldev. Ela é para desenvolvedores que terminam mudanças em um pacote ou incluem um novo pacote em uma distribuição azldev.
Quando usar
- ✓Quando você adiciona um novo componente e precisa criar o lock dele antes do build.
- ✓Quando você termina uma mudança em um pacote e precisa atualizar o lock para um pull request.
- ✓Quando você muda o commit ou a versão upstream que um pacote usa.
Link da skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-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
“Terminei as mudanças de overlay do pacote curl. Você pode atualizar o arquivo de lock e renderizar a especificação de novo?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente roda o comando de atualização do componente, faz commit do lock e depois renderiza e ajusta conforme o fluxo descrito. Ele usa a atualização de um único componente para o trabalho do dia a dia.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Update component lock files
azldev comp update (comp is an alias for component) refreshes one or more
component lock files under locks/. A lock pins the resolved upstream commit plus
an input fingerprint computed from the component's render inputs — its TOML config,
overlays, the pinned upstream commit, and the distro release version. If any of
those change, the lock is stale.
When to run update
| Situation | Run update? |
|---|---|
| Adding a new upstream component (no lock yet) | Yes — first, to create the lock before render/build can resolve it |
| Finalizing a component change for a PR | Yes — once at the end |
| Changing source resolution (commit pin, upstream distro/version, or snapshot) | Yes — also mid-workflow (see below) |
| Iterating on overlays / build config / metadata | No — once the lock exists, render alone is enough while iterating |
| Just reading or building existing components | No |
Refresh a single component with -p <name>. Use -a (all components) only for
coordinated mass refreshes (e.g. a new distro snapshot) or when investigating
lock drift across many components — it is slow. For day-to-day work use -p. Add
-O json for machine-readable lock output when debugging.
End-of-work refresh (the common case)
For most edits — overlays, build flags, metadata — run update once at the end,
then re-render after committing so the generated changelog and release reflect
your new commit:
azldev comp update -p <name>
azldev comp render -p <name>
git add <changed-component-config-and-source-paths> \
locks/<name>.lock \
specs/<first-char>/<name>/
git commit -m "fix(<name>): ..."
# Re-render and amend so the changelog / Release: track the new commit.
azldev comp render -p <name>
git add specs/<first-char>/<name>/
git commit --amend --no-edit
Why the second render-and-amend?
Changelog generation and release calculation are separate. When a spec uses
%autochangelog, rpmautospec derives it from the component's git history for
every release mode. For non-manual release modes, azldev also derives or bumps
Release: from that history. The first render happens before your commit exists,
so a fresh render after committing incorporates the new changelog entry and any
automatic release bump. Amending folds that output into a single clean commit and
keeps rendered-spec / lock CI gates (which run against committed state) green.
For a component with release.calculation = "manual", increment the release
counter yourself in the same change. Manual mode is not an exemption from the
post-commit render-stage-amend cycle: when the spec uses %autochangelog, that
render incorporates the new commit.
Changing source resolution
A source-resolution change follows the same rule, using one commit followed by a post-render amend:
Change the commit pin, upstream distro/version, or snapshot, then
azldev comp update -p <name>; sanity-checklocks/<name>.lock.azldev comp render -p <name>— the spec body now tracks the newly resolved source.%changelog/Release:still reflect the previous source; that is expected until you commit.Iterate on overlays / patches / build config as the new source requires, re-rendering after each change. Re-run
updateonly if you change a source-resolution input again.azldev comp update -p <name>, then stage and commit all component inputs changed above with the refreshed lock and rendered output:git add <changed-component-config-and-source-paths> \ locks/<name>.lock \ specs/<first-char>/<name>/ git commit -m "update(<name>): ..."azldev comp render -p <name>—%changelog/Release:now reflect the new lock.git add specs/<first-char>/<name>/, thengit commit --amend --no-editso the source change and rendered output land together.
Generated by azldev docs agent; do not hand-edit.
Perguntas frequentes
O que é um arquivo de lock?
Ele fixa o commit upstream e uma impressão digital das entradas, para que os builds sejam repetíveis.
Quando a atualização do lock não é necessária?
A skill diz que, enquanto você ajusta overlays ou flags de build, basta renderizar quando o lock já existe.
Devo atualizar todos os componentes?
Geralmente não. A skill diz que a atualização completa é lenta e serve para atualizações em massa coordenadas.
Detalhes
Descrição original do autor
Read this before finalizing a component change, changing source resolution, or touching a lock file; lock edits are easy to get wrong. Explains how to refresh azldev component lock files with 'azldev comp update', covering when to run update versus render, the update/render/commit/re-render/amend workflow, and per-component versus -a refresh. Triggers include comp update, refresh lock, bump pin, change snapshot, upstream distro, lock drift, version bump, finalize component.
repo: microsoft/azurelinux
Popularidade
- Estrelas no GitHub
- 5,4 mil
- Posição no ranking
- #14968
- 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.