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

azldev-comp-toml

하는 일

이 스킬은 azldev 구성 요소 파일의 형식을 설명합니다. 이 파일은 패키지 스펙의 출처와 사용자 지정 방식을 정합니다. azldev 배포판의 패키지 정의를 관리하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓구성 요소 정의 파일을 새로 만들거나 편집해야 할 때.
  • ✓구성 요소 파일에 실수나 불필요한 설정이 있는지 검토할 때.
  • ✓패키지의 빌드 설정이나 릴리스 계산 방식을 바꾸고 싶은 경우.

스킬 링크

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

AI에게 요청하는 예시

“제 jq 구성 요소 파일을 검토해 주시고, 기본값과 같아서 지워도 되는 설정이 무엇인지 알려 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 구성 요소 파일의 구조와 스키마를 읽고, 스펙 출처, 빌드 설정, 오버레이를 확인합니다. 도구의 형식에 맞는 변경을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Component definition files (*.comp.toml)

A component definition tells azldev where a package's spec comes from and how to customize it for your distro. Every component lives under [components.<name>].

Get the authoritative, always-current field list from the schema:

azldev config generate-schema

Structure

A bare entry inherits everything from your distro's defaults — most upstream packages need nothing more:

[components.curl]

Add sub-tables only for what you change. The fields you will reach for most:

Field Purpose
spec where the spec comes from (see below)
overlays / overlay-files targeted spec/source edits (see the azldev-overlays skill)
build.defines / build.with / build.without RPM macro and bcond build tweaks
release.calculation how the Release tag is managed
render.skip-file-filter rendering edge-case escape hatch

Spec source

The spec field selects where the spec is fetched from. When omitted, the component inherits the distro default (normally an upstream import).

# Upstream import (the usual case) — inherits the distro's upstream version
[components.curl]

# Upstream, but pinned to a specific upstream distro/version
[components.curl]
spec = { type = "upstream", upstream-distro = { name = "fedora", version = "rawhide" } }

# Upstream package whose name differs from the component name
[components.mydistro-rpm-config]
spec = { type = "upstream", upstream-name = "redhat-rpm-config" }

# Local spec that lives in your repo (not imported from an upstream distro)
[components.mydistro-release]
spec = { type = "local", path = "mydistro-release.spec" }

Build configuration

[components.mypackage.build]
defines = { rhel = "11" }      # override RPM macros
with = ["feature_x"]            # enable %bcond_with conditionals
without = ["plugin_rhsm"]       # disable %bcond_with conditionals

Release calculation

release.calculation controls the Release: tag. There are four modes:

  • auto (default) — leave %autorelease unchanged; otherwise bump a static integer Release once for each fingerprint-derived synthetic change.
  • autorelease — force %autorelease handling (use when auto-detection misreads a spec that wraps %autorelease in a conditional).
  • static — require a non-%autorelease static release. The default legacy calculation supports only an integer, integer%{?dist}, or integer%{dist}; other forms require manual or an overlay.
  • manual — you own the Release: value. Use this only when render fails with a "non-standard Release tag" error. A manual component is not bumped by the render/commit/amend cycle, so increment its release yourself in the same change (see the azldev-update-component skill).
[components.mypackage.release]
calculation = "manual"

The temporary --rpmdev-bumpspec flag on comp build, comp render, and comp prepare-sources opts into transactional host handling while Azure Linux migrates. Only that path requires rpmdev-bumpspec, rpmdev-packager, rpm, rpmspec, and Python with its RPM module. It preserves the fixed team identity/comment/datestamp and strict source-EVR transaction checks; locks and synthetic history still determine the number and order of bumps. Without the flag, no bumpspec runtime discovery occurs and the legacy static calculation is used. %autorelease behavior is unchanged on either path.

Render configuration

render.skip-file-filter = true keeps all source and patch files during render. azldev normally prunes files not referenced by the rendered spec; set this only for the rare spec whose Source/Patch filenames use macros the filter cannot expand.

File organization

  • Inline — put simple, customization-free components directly in a shared config file (e.g. [components.jq]).
  • Dedicated — give a component its own <name>/<name>.comp.toml once it needs overlays, build config, or a local spec. Rule of thumb: anything more than [components.<name>] earns a dedicated file.
  • A parent config picks up dedicated files through an includes glob, for example includes = ["**/*.comp.toml"].

Review checklist

Start with azldev comp list -p <name> -q -O json, then use azldev comp query -p <name> -q -O json when the review needs parsed spec details. For a change review, focus on the diff while checking enough surrounding context to ensure

자주 묻는 질문

구성 요소 파일은 아주 짧을 수 있나요?

네. 스킬은 빈 항목이 기본값을 상속하므로, 대부분의 상위 패키지는 거의 추가 설정이 필요 없다고 설명합니다.

정확한 필드 목록은 어디서 확인하나요?

기억에 의존하지 말고 도구의 설정 명령으로 스키마를 생성하라고 스킬은 설명합니다.

오버레이란 무엇인가요?

스펙을 포크하지 않고, 빌드 시점에 패키지 스펙에 적용되는 패치입니다.

상세 정보

작성자의 원본 설명

Read this before authoring, editing, or reviewing a *.comp.toml file; do not work from memory. Explains the azldev component definition format and review workflow, covering component structure, spec sources, build config, release calculation, render options, file organization, overlay hygiene, stale files, disabled tests, and testing verification. Triggers include comp.toml, component config, review component, component hygiene, spec source, upstream-distro, build defines, release calculation, includes.

repo: microsoft/azurelinux

인기도

GitHub 스타
5.4k
순위
#14962
라이선스
MIT
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬