azldev-remove-component
できること
このスキルは、azldevにはremoveコマンドがないため、コンポーネントを手作業で削除する方法を説明します。azldevのディストリビューションからパッケージを外す開発者が対象です。
使う場面
- ✓azldevのディストリビューションからパッケージを削除したいとき。
- ✓削除するとパッケージの依存先が壊れるおそれがあるとき。
- ✓公開設定やパッケージグループの設定に、削除したパッケージがまだ記載されているとき。
スキルのリンク
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-remove-component/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“当社のazldevディストリビューションから古いfooパッケージを削除したいです。何がそれに依存しているか確認し、参照を整理してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは逆依存関係を確認し、コンポーネントの定義、ロック、レンダリング済みのspecを削除してから、残っている参照を取り除きます。他のビルドに影響する変更は検証します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Remove a component
There is no azldev command to remove a component — it is a manual edit. A
deletion-only change needs no package build, but changes to dependents, package/image
configuration, or other built inputs must follow the repository's normal validation
requirements. The steps below delete the component's definition, lock, and rendered
spec, then clean up references.
Before you start
Confirm the component exists and inspect its resolved configuration:
azldev comp list -p <name> -q -O json
Check for reverse dependencies first: if other components BuildRequires or
Requires this one, removing it breaks their builds. Search the tree for the
component name. Identify its binary subpackage names from the rendered output under
specs/<first-char>/<name>/, then search for those names too.
azldev comp query currently supports local spec sources only, not the usual upstream
spec source.
Steps
Remove the definition. Delete the component's dedicated
<name>/<name>.comp.tomldirectory, or remove its inline[components.<name>]entry from whichever included TOML defines it.Remove publish / package config references. If your project configures publish channels or package groups, drop any references to the component or to its binary subpackages. Publishing is component-scoped; per-binary exceptions are binary-RPM-scoped — search for both.
Remove the lock. There is no azldev command for this:
rm locks/<name>.lockRemove the rendered spec. Let azldev prune orphaned spec directories:
azldev comp render -a --clean-stale--clean-stale(only valid with-a) removes rendered-spec directories that no longer correspond to a configured component. It re-renders everything, so it is slow; for a targeted removal you can instead delete the component's rendered spec underspecs/by hand.Check other references. Grep for the component (and its binary names) in image definitions and any
*.kiwi/ package-list files, and remove or replace them — an image that installs a now-removed package will not build.
Verify
azldev comp list -p <name> -q -O json # should report the component is not found
Also confirm the lock and rendered spec directory are gone and that no image or package configuration still references the component.
If the removal required changes to dependents or package/image configuration, build and test the affected outputs according to the repository's normal validation policy.
Notes
- Dependents with manual release. If removing this component forces a change
in a dependent (e.g. dropping a
BuildRequires), and that dependent setsrelease.calculation = "manual", bump its release counter yourself in the same change. Components with automatic release calculation (auto,autorelease,static) are handled by the normal commit/render/amend cycle. - Remove exclusive dependencies together. If a package is only needed by the component you are dropping, remove it in the same change to keep the tree consistent.
Generated by azldev docs agent; do not hand-edit.
よくある質問
パッケージを削除するコマンドはありますか?
いいえ。スキルによると、azldevにremoveコマンドはないため、削除は手作業の編集になります。
依存先はどのように見つけますか?
スキルは、コンポーネント名とバイナリのサブパッケージ名をツリー内で検索するよう定めています。
削除だけでもパッケージのビルドは必要ですか?
スキルによると、削除のみの変更はビルド不要です。ただし、出力に影響する他の変更は通常の検証に従います。
詳細
作者による元の説明
Read this before deleting or dropping a component; there is no azldev remove command, so doing it wrong leaves dangling state. Explains the manual removal workflow for deleting component metadata, cleaning references, and validating any related output-affecting changes. Triggers include remove component, delete package, drop component, prune dependency.
repo: microsoft/azurelinux
人気
- GitHubのスター
- 5.4k
- ランキング
- #14967
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
azldev-add-component
5.4kエージェントが、azldevのLinuxディストリビューションのビルドに新しいソフトウェアコンポーネントを追加し、上流のspec確認から結果の検証まで進められるよう支援します。
azldev-build-component
5.4kエージェントが、azldevのパッケージのビルドとデバッグを行えるよう支援します。render、build、テストの繰り返しと、失敗したビルドチェックの修正を含みます。
azldev-comp-toml
5.4kエージェントが、azldevで各パッケージのビルド方法を定めるコンポーネント定義ファイルを、作成、編集、確認できるよう支援します。
azldev-image
5.4kエージェントが、azldevのイメージコマンドを使い、コンテナや仮想マシンのLinuxイメージをビルド、起動、テストできるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。