मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग7.6k · #13151

customizing-agent-native

यह क्या करती है

यह स्किल बताती है कि ऐप में Agent-Native फ़ीचर कस्टमाइज़ करते समय किस क्रम में चलें। यह ब्रांड सेटिंग्स और समर्थित कंपोनेंट विकल्पों से शुरू होती है, और तभी फ़ीचर को ऐप में कॉपी करती है। यह उन डेवलपर्स के लिए है जिन्हें अपना रूप या व्यवहार चाहिए।

कब इस्तेमाल करें

  • ✓जब आप किसी साझा फ़ीचर का रूप अपने ब्रांड के अनुसार बदलना चाहते हैं।
  • ✓जब आपको किसी साझा कंपोनेंट को अपनी कंपनी के design system से बदलना है।
  • ✓जब किसी साझा फ़ीचर को आपके ऐप में अलग व्यवहार करना है और उसकी सेटिंग्स काफ़ी नहीं हैं।

Skill का लिंक

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/customizing-agent-native/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/customizing-agent-native/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप एजेंट चैट पैनल का रूप हमारे ब्रांड रंगों और बटनों जैसा बदल सकते हैं, बिना अपडेट तोड़े?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले ब्रांड tokens सेट करता है और कंपनी के कंपोनेंट रजिस्टर करता है, फिर फ़ीचर के समर्थित विकल्प इस्तेमाल करता है। केवल तभी, जब ये काफ़ी न हों, वह सबसे छोटा फ़ीचर ऐप में कॉपी करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Customizing Agent-Native

Rule

Start with the app's registered design system and local UI adapters, then use the public feature's props, semantic components, controller, product slots, and callbacks. If those seams are not enough, use the eject CLI to transfer the smallest supported feature into the app and make that copy app-owned. Never edit node_modules, deep-import a private source file at runtime, or patch an @agent-native/* package.

Use this order:

  1. Set brand tokens with the build-time theme configuration when tokens are enough.
  2. Register company components in app/design-system.ts with defineDesignSystem, then pass that definition to ToolkitProvider.
  3. Configure a public feature through its semantic components, headless controller, and product-level render slots.
  4. Compose app primitives behind the app's local UI adapter layer.
  5. Eject the smallest feature into app-owned source.
  6. Propose a new Toolkit seam when the same override is useful in two apps.

Ejection is for intentional product customization, not for hiding an upgrade failure or replacing Core runtime behavior.

Use A Company Design System

Keep the explicit, typed registration seam in app/design-system.ts:

import { defineDesignSystem } from "@agent-native/toolkit/design-system";
import {
  AcmeActionButtonAdapter,
  AcmeDialogAdapter,
} from "./design-system/acme-adapter";

export const designSystem = defineDesignSystem({
  name: "Acme",
  components: {
    ActionButton: AcmeActionButtonAdapter,
    Dialog: AcmeDialogAdapter,
  },
});

Adapters translate the semantic Toolkit contract into company component props. They are ordinary React components and may use MUI-style providers, React Aria, CSS modules, CSS-in-JS, or another styling runtime. className and style are optional interoperability hooks, not Tailwind or CVA requirements.

The contract has nine leaf components (ActionButton, IconButton, TextField, TextArea, Spinner, Skeleton, Status, Surface, Avatar) and eight behavior components (Tooltip, Menu, Popover, Dialog, Picker, Checkbox, Switch, Tabs). Picker covers select and combobox behavior, not date picking. Behavior adapters own their portal, focus, keyboard, dismissal, and stacking implementation while honoring the semantic props and portalContainer interop contract.

App product code imports standard controls from its local adapter path, usually @/components/ui/*. Do not import @agent-native/toolkit/ui/* directly from pages, routes, or domain components. That bypasses the app seam and makes a future design-system replacement incomplete. Toolkit feature packages remain valid imports; configure their presentation through the registered semantic components, controller, and product slots.

Run the published conformance kit against a complete adapter in its own CI:

import { assertDesignSystemConformance } from "@agent-native/toolkit/conformance";
import { DESIGN_SYSTEM_CONTRACT_VERSION } from "@agent-native/toolkit/design-system";

await assertDesignSystemConformance({
  adapterName: "Acme",
  components,
  contractVersion: DESIGN_SYSTEM_CONTRACT_VERSION,
});

Customize A Shared Feature

Prefer feature-level headless controllers over rebuilding individual widgets. One controller must power both the Toolkit default view and every custom render path so behavior, actions, analytics, accessibility state, and error handling cannot drift. Use a product-level render slot to replace the view while keeping that controller. Eject only when the controller and slots cannot express the required product behavior.

Eject A Feature

Discover and inspect the ejection units published by installed first-party packages before changing source:

agent-native eject --list
agent-native eject inspect <unit>
agent-native eject <unit> --app <app>
agent-native eject <unit> --app <app> --apply

The command is dry-run by default. It prints the file closure, consumer import rewrites, protected package contracts, and verification commands before writing. --apply copies the package-version-matched source into the app and rewrites only imports covered by the unit manifest.

If a framework feature has no ejection unit, follow its documented configuration, adapter, or extension seam; do not invent a manual package-copy recipe. For an unknown third-party package, use the emitted add-style blueprint as a starting point. Protected runtime behavior is neve

अक्सर पूछे जाने वाले सवाल

क्या मैं package फ़ाइलें सीधे बदल सकता हूं?

नहीं। स्किल कहती है कि node_modules फ़ोल्डर कभी न बदलें और packages को patch न करें।

यहां eject करने का क्या मतलब है?

इसका मतलब है सबसे छोटा समर्थित फ़ीचर अपने ऐप में कॉपी करना, ताकि आप उस कॉपी के मालिक बनकर उसे बदल सकें।

क्या अपग्रेड के बाद मेरे बदलाव बचेंगे?

समर्थित सेटिंग्स से किए बदलाव package कोड से अलग रखे जाते हैं, जिससे अपग्रेड आसान होता है।

जानकारी

लेखक का मूल विवरण

How to configure, compose, or eject Agent-Native features into app-owned code. Use when overriding shared components or integrations, customizing a template, adding UI to chat or headless apps, or inspecting package source.

repo: BuilderIO/agent-native

लोकप्रियता

GitHub स्टार
7.6k
रैंकिंग में स्थान
#13151
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

design-exploration

7.6k

यह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

visual-edit

7.6k

यह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।

डिज़ाइनइंटरफ़ेस (UI/UX)

turn-into-app

7.6k

यह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।

कोडिंगसामान्य कोडिंग

visual-plan

7.6k

यह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills