azldev-overlays
하는 일
이 스킬은 렌더링 시점에 적용되는 오버레이로 상위 패키지 스펙을 바꾸는 방법을 설명합니다. azldev 배포판에서 패키지를 사용자 지정하고 문제를 해결하는 개발자를 위한 것입니다.
사용하는 경우
- ✓상위 스펙의 한 줄이나 한 섹션만 바꿔야 할 때.
- ✓오버레이가 실패하거나 렌더링된 스펙이 맞아 보이지 않을 때.
- ✓스펙 전체를 복사하지 않고 로컬 패치를 추가하고 싶은 경우.
스킬 링크
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-overlays/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“패키지의 상위 스펙에서 설정 하나를 포크하지 않고 바꾸고 싶습니다. 오버레이 작성을 도와주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 구성 파일에 오버레이를 추가하고, 스펙을 렌더링한 뒤 결과를 확인합니다. diff 출력을 사용해 오버레이 실패 지점을 찾고 고칩니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Working with overlays
Overlays are semantic patches applied to a component's RPM spec and loose source files at render time. They let you make targeted changes to an upstream spec without forking it. Prefer an overlay over hand-editing a rendered spec: overlays are re-applied on every render, so a manual edit to a rendered spec is overwritten.
The inner loop
Overlays live in the component's TOML config — inline [[components.<name>.overlays]]
entries, or per-file overlay documents referenced by the component's overlay-files
glob. They apply in order and are non-atomic: if one fails part-way, the
overlays before it stay applied.
Add or edit the overlay in the component config.
Re-render and inspect the result:
azldev comp render -p <name>Read the rendered spec (under
specs/) to confirm the change landed where you intended, and iterate until it is correct.Finalize the lock and changelog with the normal end-of-work refresh (see the
azldev-update-componentskill): update the lock, commit, then re-render and amend.
Config errors reference the offending overlay by its description, so give every
overlay a short, specific description.
Diagnose common failures
Start with azldev comp diff-sources -p <name> to see the exact overlay effect.
Use separate pre/post prep-sources directories only when you need persistent trees
for deeper inspection.
| Symptom | Likely cause and fix |
|---|---|
spec-add-tag: tag already exists |
Upstream already has the tag. Use spec-set-tag, or spec-update-tag when its prior existence is an invariant. |
spec-search-replace: no match |
Inspect the current upstream line, check TOML regex quoting, and narrow the expression to the actual section/package. |
| Section or file not found | Inspect the upstream spec/source names; upstream may have renamed or removed the target. |
| Overlay applies but output/build is wrong | Inspect diff-sources for an over-broad match, malformed replacement, or a dependency/file change the overlay omitted. |
Choosing an overlay type
Match the change to the narrowest overlay type. Required fields are enforced when the config loads, so a missing field fails fast rather than at apply time.
Spec overlays (structured .spec edits)
| Type | Use for | Required |
|---|---|---|
spec-add-tag |
add a tag; fails if it already exists | tag, value |
spec-insert-tag |
add a tag next to its family (e.g. after the last Source*) |
tag, value |
spec-set-tag |
set a tag, replacing it if present or adding it if not | tag, value |
spec-update-tag |
change an existing tag; fails if it is missing | tag, value |
spec-remove-tag |
delete tag instances; without value, deletes every instance |
tag |
spec-prepend-lines |
insert lines at the top of a section (or the whole file) | lines |
spec-append-lines |
insert lines at the end of a section (or the whole file) | lines |
spec-search-replace |
regex replace within a section (or the whole spec) | regex |
spec-remove-section |
delete a whole section | section |
spec-remove-subpackage |
delete every section of a sub-package | package |
patch-add |
add a .patch file and register it in the spec |
source |
patch-remove |
remove a patch and its spec references | file |
File overlays (loose non-spec files; never .spec)
| Type | Use for | Required |
|---|---|---|
file-prepend-lines |
prepend lines to a file | file, lines |
file-search-replace |
regex replace in a file | file, regex |
file-add |
copy in a new file; fails if it already exists | file, source |
file-remove |
delete a file | file |
file-rename |
rename a file in place | file, replacement |
Rules that trip people up
spec-remove-tagwithoutvalueremoves every instance of the named tag. To remove one dependency, set bothtagand the exactvalueto match:[[components.mypackage.overlays]] description = "Remove an unavailable build dependency" type = "spec-remove-tag" tag = "BuildRequires" value = "unwanted-package"sectionis optional only forspec-prepend-lines,spec-append-lines, andspec-search-replace(omit it to target the whole spec). It is required forspec-remove-section.packageneedssectionon the whole-file-capable overlays — a sub-package is a sub-qualifi
자주 묻는 질문
렌더링된 스펙을 직접 고치면 안 되나요?
오버레이는 렌더링할 때마다 다시 적용되므로, 렌더링된 스펙을 직접 고치면 덮어쓰여진다고 스킬은 설명합니다.
오버레이는 순서대로 적용되나요?
네. 스킬에 따르면 순서대로 적용되며, 중간에 실패하면 앞서 적용된 오버레이는 남습니다.
각 오버레이에 설명을 붙이는 이유는 무엇인가요?
설정 오류가 오버레이를 설명으로 가리키므로, 짧고 구체적인 설명이 문제를 찾는 데 도움이 됩니다.
상세 정보
작성자의 원본 설명
Read this before adding, changing, or diagnosing any overlay; never edit a spec or rendered file from memory. Explains how to modify a component's RPM spec or loose source files with azldev overlays (semantic patches applied at render time) instead of forking the spec, covering overlay types, the render-and-inspect loop, common failures, pitfalls, and metadata. Triggers include overlay, overlay failed, no match, spec-add-tag, spec-remove-tag, patch-add, fix spec, backport, disable test, prune subpackage, edit spec.
repo: microsoft/azurelinux
인기도
- GitHub 스타
- 5.4k
- 순위
- #14966
- 라이선스
- 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.