azldev
Skill này làm gì
Skill này giải thích các khái niệm cốt lõi và lệnh thông dụng của azldev để build một bản phân phối từ cấu hình. Nó dành cho lập trình viên làm việc với dự án azldev và cần đúng lệnh và cài đặt.
Khi nào nên dùng
- ✓Khi bạn cần chạy lệnh azldev trong một dự án có file azldev.toml.
- ✓Khi bạn muốn hiểu thành phần, overlay, distro và khóa trong azldev.
- ✓Khi bạn cần đầu ra azldev dạng máy đọc được cho một script.
Liên kết skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi vừa clone một repo distro azldev. Bạn có thể giải thích các lệnh chính và cách liệt kê và render một thành phần không?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent chạy từ thư mục gốc của repo, dùng cờ im lặng và JSON khi cần, rồi làm theo các khái niệm thành phần, overlay và khóa. Nó kiểm tra chính xác các lệnh trước khi chạy.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
azldev build cái gì?
Nó build một bản phân phối Linux từ cấu hình TOML, nhập đặc tả từ một bản phân phối upstream và tùy chỉnh chúng bằng overlay.
Đầu ra có thể dạng máy đọc được không?
Có. Skill nhắc một cờ đầu ra JSON hoạt động trên mọi lệnh.
Tôi có nên sửa đặc tả đã render bằng tay không?
Không. Skill ghi rằng đặc tả đã render là đầu vào build và không nên sửa bằng tay.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 5.4k
- Vị trí xếp hạng
- #14969
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
azldev-add-component
5.4kGiúp agent của bạn thêm một thành phần phần mềm mới vào bản build phân phối Linux azldev, từ việc kiểm tra đặc tả upstream đến xác thực kết quả.
azldev-build-component
5.4kGiúp agent của bạn build và gỡ lỗi một gói azldev, bao gồm vòng lặp render, build và kiểm thử cùng cách sửa các kiểm tra build bị lỗi.
azldev-comp-toml
5.4kGiúp agent của bạn viết, chỉnh sửa và xem xét các file định nghĩa thành phần mà azldev dùng để mô tả cách mỗi gói được build.
azldev-image
5.4kGiúp agent của bạn build, khởi động và kiểm thử một image Linux, chẳng hạn image container hoặc máy ảo, bằng các lệnh image của azldev.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.