azldev
它能做什么
这项技能说明 azldev 的核心概念,以及根据配置构建发行版的常用命令。它适用于需要正确命令和设置的 azldev 项目开发者。
适用场景
- ✓当你需要在包含 azldev.toml 文件的项目中运行 azldev 命令时。
- ✓当你想了解 azldev 中的组件、覆盖层、发行版和锁文件时。
- ✓当你需要 azldev 输出机器可读的结果供脚本使用时。
技能链接
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我刚克隆了一个 azldev 发行版仓库。请解释主要命令,以及如何列出和渲染一个组件。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从仓库根目录运行,在需要时使用静默和 JSON 参数,并遵循组件、覆盖层和锁文件的概念。运行前它会先确认准确的命令。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Using azldev
azldev builds a Linux distribution from TOML configuration. It imports RPM specs from an upstream distro and customizes them with an overlay system — no spec forking. Components render to specs and sidecar build inputs, then build into RPMs; images assemble RPMs into bootable artifacts.
Orient yourself
- Run azldev from the repo root (where
azldev.tomllives), or pass-C <dir>. - Global, agent-friendly flags:
-q(quiet) and-O json(machine-readable output). They work on every command. - Config is a stitched TOML hierarchy:
azldev.tomlincludes the distro and project config, which include the component files (**/*.comp.toml) into one namespace.
Core concepts
- Component — a unit of packaging that renders to a spec and sidecar build inputs, then builds into one or more RPMs. Its spec source is upstream (default), a pinned upstream distro/version, or a local spec.
- Overlay — a semantic patch applied to a spec or source file at render time, so you customize upstream without forking it.
- Distro — a named build target (
*.distro.toml) with upstream URIs, release versions, and build inputs. - Rendered spec — the generated
.specafter overlays; a build input, never hand-edited. - Lock — a per-component file pinning the resolved upstream commit and an input fingerprint.
Common commands
Top-level commands in this build:
azldev completion— Generate the autocompletion script for the specified shellazldev component— Manage componentsazldev config— Manage tool configurationazldev docs— Documentation commandsazldev image— Manage Azure Linux imagesazldev package— Manage binary package configurationazldev project— Manage Azure Linux projectsazldev repo— Inspect and manage RPM repositoriesazldev version— Print the CLI version
Everyday tasks (add -q -O json when scripting):
| Task | Command |
|---|---|
| List components | azldev comp list -a |
| Inspect one component | azldev comp list -p <name> |
| Add a component | azldev comp add |
| Build a component | azldev comp build -p <name> |
| Render specs | azldev comp render -p <name> (or -a) |
| Refresh a lock | azldev comp update -p <name> |
| List / build images | azldev image list / azldev image build |
comp is an alias for component. Always confirm current syntax with
azldev <command> --help.
The hidden advanced group (adv) contains specialist integrations such as MCP and
mock helpers; it is intentionally omitted from normal help.
Where to go next
- Add a new component — read the
azldev-add-componentskill. - Edit or review a component's TOML — read the
azldev-comp-tomlskill. - Add or change overlays — read the
azldev-overlaysskill. - Annotate an overlay's intent (category, upstream status, provenance) — read the
azldev-overlay-metadataskill. - Build, iterate, and debug a component — read the
azldev-build-componentskill. - Build, boot, and register images — read the
azldev-imageskill. - Refresh a lock and finalize for a PR — read the
azldev-update-componentskill. - Remove a component — read the
azldev-remove-componentskill. - Test built RPMs in a chroot — read the
azldev-mockskill.
Golden rules
- Never edit generated output — rendered specs and the output/work/log dirs are produced by azldev. Change the source config and re-render.
- Re-run
azldev comp updatebefore opening a PR — the lock fingerprint covers the whole component config, and lock / rendered-spec CI checks run on committed state. - Every overlay needs a
descriptionexplaining why the change is needed.
Generated by azldev docs agent; do not hand-edit.
常见问题
azldev 构建什么?
它根据 TOML 配置构建 Linux 发行版,从上游发行版导入规格文件,并用覆盖层进行定制。
输出可以是机器可读的吗?
可以。技能提到一个 JSON 输出参数,适用于所有命令。
应该手动编辑渲染后的规格文件吗?
不应该。技能说明,渲染后的规格文件是构建输入,不应手动编辑。
详情
作者的原始描述
Read this before running azldev or editing azldev config, and whenever working in a repo that contains an azldev.toml file; do not guess azldev's commands or config. Explains how to use the azldev CLI to build a distro from TOML config, including the core concepts (components, overlays, distros, rendered specs, locks), running azldev (repo root or -C, plus the -q and -O json flags), the common commands, and where to go for each workflow. Triggers include azldev, comp build, comp render, comp update, build a component, add a component, distro config.
repo: microsoft/azurelinux
热度
- GitHub 星标
- 5.4k
- 排名
- #14969
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
azldev-add-component
5.4k帮你的智能体把新的软件组件添加到 azldev Linux 发行版构建中,从检查上游规格文件(spec)到验证结果。
azldev-build-component
5.4k帮你的智能体构建和调试 azldev 软件包,包括渲染、构建和测试循环,以及修复失败的构建检查。
azldev-comp-toml
5.4k帮你的智能体编写、编辑和审查 azldev 用来描述每个软件包如何构建的组件定义文件。
azldev-image
5.4k帮你的智能体使用 azldev 镜像命令构建、启动和测试 Linux 镜像,例如容器镜像或虚拟机镜像。