azldev-add-component
하는 일
이 스킬은 azldev 기반 Linux 배포판 빌드에 패키지를 추가하는 과정을 단계별로 안내합니다. azldev로 만든 배포판용 소프트웨어를 패키징하는 개발자를 위한 것입니다.
사용하는 경우
- ✓azldev 배포판 빌드에 새 패키지를 추가하고 싶을 때.
- ✓상위 패키지를 가져올 때 변경 사항을 인라인으로 넣을지 별도 파일로 둘지 정해야 할 때.
- ✓render, diff, build 단계로 새 구성 요소를 검증할 때.
스킬 링크
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-component/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“azldev 배포판에 jq 패키지를 추가해야 합니다. 상위 스펙을 확인하고 빌드를 검증하는 방법을 단계별로 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 구성 요소가 없는지 확인하고, 소스를 고정한 뒤, 상위 스펙을 읽습니다. 그다음 설정을 준비하고 render와 빌드를 점검하며, 도구 자체의 작업 흐름을 따릅니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
상위 패키지 정보를 추측해도 되나요?
아닙니다. 스킬은 기억에 의존해 추측하지 말고 상위 스펙을 먼저 확인하라고 설명합니다.
별도 파일은 언제 필요한가요?
오버레이, 빌드 설정, 로컬 스펙이 필요한 구성 요소는 자체 설정 폴더를 가져야 한다고 스킬은 설명합니다.
빌드된 패키지를 제 컴퓨터에 설치하나요?
아닙니다. 스킬은 빌드된 패키지를 호스트에 설치하지 않고 mock 빌드 환경에서 테스트하라고 설명합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 5.4k
- 순위
- #14960
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
azldev-build-component
5.4k에이전트가 azldev 패키지를 빌드하고, 실패한 빌드 검사를 고치도록 돕습니다.
azldev-comp-toml
5.4k에이전트가 azldev가 패키지 빌드 방식을 설명하는 구성 요소 정의 파일을 작성, 편집, 검토하도록 돕습니다.
azldev-image
5.4k에이전트가 azldev 이미지 명령을 사용해 컨테이너나 가상 머신 같은 Linux 이미지를 빌드하고, 부팅하고, 테스트하도록 돕습니다.
azldev-mock
5.4k에이전트가 빌드된 패키지를 mock 빌드 환경 안에서 테스트하고 점검하도록 돕습니다. 패키지가 내 컴퓨터에 닿지 않게 합니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.