azldev-add-component
यह क्या करती है
यह स्किल azldev-आधारित Linux डिस्ट्रीब्यूशन बिल्ड में पैकेज जोड़ने के चरणों से गुज़ारती है। यह उन डेवलपर्स के लिए है जो azldev से बने डिस्ट्रो के लिए सॉफ़्टवेयर पैकेज करते हैं।
कब इस्तेमाल करें
- ✓जब आप azldev डिस्ट्रीब्यूशन बिल्ड में नया पैकेज जोड़ना चाहते हैं।
- ✓जब आपको upstream पैकेज इम्पोर्ट करना है और तय करना है कि उसके बदलाव इनलाइन जाएँ या अलग फ़ाइल में।
- ✓जब आप render, diff और build चरणों से नया घटक जाँच रहे हों।
Skill का लिंक
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-add-component/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे अपने azldev डिस्ट्रो में jq पैकेज जोड़ना है। क्या आप upstream spec देखने और बिल्ड जाँचने के चरण बता सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पक्का करता है कि घटक पहले से नहीं है, उसका स्रोत पिन करता है, upstream spec पढ़ता है, फिर कॉन्फ़िग सेट करके render और build जाँचता है। वह टूल की अपनी वर्कफ़्लो के चरणों का पालन करता है।
तकनीकी सामग्री (मूल 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.
अक्सर पूछे जाने वाले सवाल
क्या मुझे upstream विवरण अनुमान से लगाने चाहिए?
नहीं। स्किल कहती है कि याद के आधार पर अनुमान लगाने के बजाय पहले upstream spec देखें।
अलग फ़ाइल कब चाहिए?
स्किल कहती है कि जिस घटक को overlays, बिल्ड सेटिंग्स या स्थानीय spec चाहिए, उसका अपना कॉन्फ़िग फ़ोल्डर होता है।
क्या बने पैकेज मेरे कंप्यूटर पर इंस्टॉल होते हैं?
नहीं। स्किल कहती है कि बने पैकेज 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
azldev-build-component
5.4kयह आपके एजेंट को azldev पैकेज बनाने और उसकी बिल्ड गड़बड़ियाँ ठीक करने में मदद करती है, जिसमें render, build और test का चक्र शामिल है।
azldev-comp-toml
5.4kयह आपके एजेंट को azldev घटक फ़ाइलें लिखने, बदलने और समीक्षा करने में मदद करती है, जो बताती हैं कि हर पैकेज कैसे बनता है।
azldev-image
5.4kयह आपके एजेंट को azldev image कमांड से Linux image, जैसे container या virtual machine image, बनाने, boot करने और परखने में मदद करती है।
azldev-mock
5.4kयह आपके एजेंट को mock बिल्ड एनवायरनमेंट में बने पैकेज परखने और जाँचने देती है, ताकि वे कभी आपके अपने कंप्यूटर को न छुएँ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।