azldev-build-component
What it does
This skill explains how to build an azldev component and work through build failures. It is for developers who package software with azldev and need to fix a failing build.
When to use it
- βWhen an azldev component build fails and you need to find the cause.
- βWhen you want to rebuild a package against a local repository of its dependencies.
- βWhen a failing test check should be turned off for a specific component.
Skill link
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-build-component/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βMy azldev component build fails in the check phase. Can you help me find the cause and iterate on the build?β
5 new skills a week. 1 minute to read.
How it works
The agent follows a render, build and test loop, inspecting the rendered spec and diffs. It uses the tool's build options to chain dependencies and keep build environments for debugging.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Build and debug a component
Never install built RPMs on your host β they target the distro, not your dev
machine. Test them in a chroot with the azldev-mock skill. Building and testing are separate
steps: azldev comp build produces RPMs; it does not test them.
Build
azldev comp build -p <name> # one component
azldev comp build -p <a> -p <b> --local-repo-with-publish <dir> # chain deps via a local repo
azldev comp build -p <name> --local-repo <dir> # rebuild against a populated repo
Build foundational packages before their dependents. RPMs land in the project's
configured output directory (out by default). -q quiets output but hides build
progress β use it only for inner-loop builds you expect to succeed.
The inner loop
investigate β modify β render β build β test β inspect
| Step | Command |
|---|---|
| Investigate | read the rendered spec under specs/, or azldev comp diff-sources -p <name> |
| Modify | edit the component's .comp.toml (see the azldev-overlays and azldev-comp-toml skills) |
| Verify | azldev comp render -p <name> (fast β skips source tarballs) |
| Build | azldev comp build -p <name> |
| Test | azldev adv mock shell --add-package <rpm> (see the azldev-mock skill) |
| Inspect | azldev comp build -p <name> --preserve-buildenv always, then a mock shell |
Prefer comp render for quick overlay verification; use comp diff-sources to see the
exact overlay effect (it fetches sources once, applies overlays to a copy, and diffs the
two trees). Builds can be slow β set generous timeouts.
Finalize with azldev comp update -p <name> before opening a PR (see the
azldev-update-component skill).
Debugging build failures
- Render error mentioning a non-standard
Releasetag β a release-calculation issue; see theazldev-comp-tomlskill. - Preview error mentioning
rpmdev-bumpspec,rpmdev-packager,rpm,rpmspec,python3, or the Python RPM module β this applies only when you explicitly use the temporary--rpmdev-bumpspecpreview. Provision the named prerequisite for that opt-in path. Without the flag, azldev keeps the legacy static Release calculation. - Overlay did not apply as expected β
azldev comp diff-sources -p <name>shows what the overlays actually change. - Inspect the build environment β
azldev comp build -p <name> --preserve-buildenv on-failure(valueson-failure,always,never), then enter a mock shell. - Failing
%checkβ fix the tests first (root cause, upstream patches, targeted fixes). Only as a last resort, disable withbuild.check.skip = trueand a requiredbuild.check.skip_reasonexplaining what fails, why it cannot be fixed, and whether it is temporary. A transient--no-checkbuild flag exists for one-off local builds.
Per-component build tweaks (build.defines, build.without) live in the .comp.toml β
see the azldev-comp-toml skill.
Generated by azldev docs agent; do not hand-edit.
FAQ
Should built RPMs be installed on my computer?
No. The skill says to test packages in a mock build root, since they target the distro and not your machine.
Does building also test the package?
No. The skill says building and testing are separate steps.
Can I skip a failing test check?
The skill mentions disabling a failing check for a component through a setting, which should be used carefully.
Details
Original description by the author
Read this before building a component or diagnosing a build failure; do not guess build flags or the inner loop. Explains how to build, iterate on, and debug an azldev component, covering comp build flags (local-repo, preserve-buildenv), the render/build/test inner loop, diff-sources, and disabling a failing %check via check.skip. Triggers include build component, build failed, build error, inner loop, preserve buildenv, local repo, disable check.
repo: microsoft/azurelinux
Popularity
- GitHub stars
- 5.4k
- Ranking position
- #14961
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
azldev-add-component
5.4kHelps your agent add a new software component to an azldev Linux distribution build, from inspecting the upstream spec to validating the result.
azldev-comp-toml
5.4kHelps your agent write, edit and review the component definition files that azldev uses to describe how each package is built.
azldev-image
5.4kHelps your agent build, boot and test a Linux image, such as a container or virtual machine image, using the azldev image commands.
azldev-mock
5.4kHelps your agent test and inspect built packages inside a mock build environment, so they never touch your own computer.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.