본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.4k · #14960

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-component/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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):

  1. 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.

  2. Create the initial lock so source resolution is pinned before inspection:

    azldev comp update -p <name>
    
  3. 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> -q
    
  4. Read 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. An includes = ["**/*.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 description explaining why it is needed.
  • Keep %check enabled. Disable it only as a last resort via build.check.skip = true with a required build.check.skip_reason (see the azldev-build-component skill).

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬