azldev-add-component
Что он делает
Этот скилл описывает, как добавить пакет в сборку дистрибутива Linux на основе azldev. Он нужен разработчикам, которые упаковывают программы для дистрибутива, собранного с помощью azldev.
Когда использовать
- ✓Когда вы хотите добавить новый пакет в сборку дистрибутива azldev.
- ✓Когда нужно импортировать исходный пакет и решить, войдут ли его изменения прямо в конфигурацию или в отдельный файл.
- ✓Когда вы проверяете новый компонент с помощью шагов render, diff и build.
Ссылка на скилл
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-component/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Помоги добавить пакет jq в наш дистрибутив azldev. Проведи меня через изучение исходной спецификации и проверку сборки.”
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):
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.Create the initial lock so source resolution is pinned before inspection:
azldev comp update -p <name>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> -qRead 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. Anincludes = ["**/*.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
descriptionexplaining why it is needed. - Keep
%checkenabled. Disable it only as a last resort viabuild.check.skip = truewith a requiredbuild.check.skip_reason(see theazldev-build-componentskill).
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
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
azldev-build-component
5.4kПомогает агенту собрать и отладить пакет azldev, включая цикл render, build и test и исправление ошибок проверок сборки.
azldev-comp-toml
5.4kПомогает агенту писать, редактировать и проверять файлы определения компонентов azldev, которые описывают сборку каждого пакета.
azldev-image
5.4kПомогает агенту собрать, загрузить и протестировать образ Linux, например образ контейнера или виртуальной машины, с помощью команд azldev.
azldev-mock
5.4kПомогает агенту тестировать и проверять собранные пакеты в среде сборки mock, чтобы они никогда не затрагивали ваш компьютер.
Похожие скиллы
openclaw-update
394kПомогает агенту обновить уже работающий OpenClaw Gateway, выбрав способ обновления по тому, как он был установлен, и сохранив вашу сессию.
diagnose-gateway
394kПомогает агенту выяснить, почему ваш OpenClaw Gateway не работает, проверяя настройки, каналы и порты, но ничего не меняя.
crabbox-apps
394kПомогает агенту открыть и запустить приложение на временной облачной машине, а затем показать его вид на боковой панели чата.