azldev-update-component
하는 일
이 스킬은 azldev에서 구성 요소 잠금 파일을 언제, 어떻게 업데이트하는지 설명합니다. 패키지 변경을 마무리하거나 azldev 배포판에 새 패키지를 추가하는 개발자를 위한 것입니다.
사용하는 경우
- ✓새 구성 요소를 추가했고 빌드 전에 잠금을 만들어야 할 때.
- ✓패키지 변경을 마치고 풀 리퀘스트를 위해 잠금을 새로 고쳐야 할 때.
- ✓패키지가 쓰는 상위 커밋이나 버전을 바꾸는 경우.
스킬 링크
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“curl 패키지의 오버레이 변경을 마쳤습니다. 잠금 파일을 새로 고치고 스펙을 다시 렌더링해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 구성 요소의 업데이트 명령을 실행하고 잠금을 커밋한 뒤, 작업 흐름이 설명하는 대로 다시 렌더링하고 수정합니다. 일상 작업에는 단일 구성 요소 새로 고침을 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
잠금 파일이란 무엇인가요?
상위 커밋과 입력의 지문을 고정해서, 빌드가 반복 가능하도록 유지합니다.
잠금 업데이트가 필요 없는 경우는 언제인가요?
스킬은 오버레이나 빌드 플래그를 반복 수정하는 동안에는 잠금이 있으면 렌더링만으로 충분하다고 설명합니다.
모든 구성 요소를 새로 고쳐야 하나요?
보통은 아닙니다. 스킬은 전체 새로 고침은 느리며, 조율된 대량 업데이트를 위한 것이라고 설명합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 5.4k
- 순위
- #14968
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
azldev-add-component
5.4k에이전트가 azldev 배포판 빌드에 새 패키지를 추가하고 결과를 검증하도록 돕습니다.
azldev-build-component
5.4k에이전트가 azldev 패키지를 빌드하고, 실패한 빌드 검사를 고치도록 돕습니다.
azldev-comp-toml
5.4k에이전트가 azldev가 패키지 빌드 방식을 설명하는 구성 요소 정의 파일을 작성, 편집, 검토하도록 돕습니다.
azldev-image
5.4k에이전트가 azldev 이미지 명령을 사용해 컨테이너나 가상 머신 같은 Linux 이미지를 빌드하고, 부팅하고, 테스트하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.