azldev-update-component
Qué hace
Esta skill explica cuándo y cómo actualizar los archivos de bloqueo de componentes en azldev. Es para desarrolladores que terminan cambios en un paquete o añaden uno nuevo a una distribución azldev.
Cuándo usarla
- ✓Cuando añades un componente nuevo y necesitas crear su bloqueo antes de compilar.
- ✓Cuando terminas un cambio en un paquete y necesitas actualizar su bloqueo para una solicitud de cambios.
- ✓Cuando cambias el commit o la versión upstream que usa un paquete.
Link de la skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Terminé mis cambios de overlay para el paquete curl. ¿Puedes actualizar su archivo de bloqueo y volver a renderizar la especificación?”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente ejecuta el comando de actualización del componente, guarda el archivo de bloqueo y luego vuelve a renderizar, como indica el flujo de trabajo. Usa la actualización de un solo componente para el trabajo diario.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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.
Preguntas frecuentes
¿Qué es un archivo de bloqueo?
Fija el commit upstream y una huella de las entradas, para que las compilaciones sean repetibles.
¿Cuándo no hace falta actualizar el bloqueo?
La skill indica que, mientras se itera en overlays o en opciones de compilación, basta con renderizar una vez que el bloqueo existe.
¿Debo actualizar todos los componentes?
Normalmente no. La skill indica que la actualización completa es lenta y está pensada para actualizaciones masivas coordinadas.
Detalles
Descripción original del 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
Popularidad
- Estrellas en GitHub
- 5,4 mil
- Posición en el ranking
- #14968
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
azldev-add-component
5,4 milAyuda a tu agente a añadir un componente nuevo a una distribución Linux con azldev, desde revisar la especificación original hasta validar el resultado.
azldev-build-component
5,4 milAyuda a tu agente a compilar y depurar un paquete de azldev, con el ciclo de render, compilación y pruebas, y a corregir fallos en las comprobaciones.
azldev-comp-toml
5,4 milAyuda a tu agente a escribir, editar y revisar los archivos de definición de componentes que azldev usa para describir cómo se compila cada paquete.
azldev-image
5,4 milAyuda a tu agente a compilar, arrancar y probar una imagen de Linux, como una imagen de contenedor o de máquina virtual, con los comandos de imagen de azldev.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.