मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)7.6k · #13168

native-navigation

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

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

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

  • ✓जब आप ऐसा बटन या कार्ड जोड़ रहे हैं जो ऐप का दूसरा पेज खोले।
  • ✓जब कोई नेविगेशन कंट्रोल Cmd-click या middle-click पर प्रतिक्रिया न दे।
  • ✓जब आपको आंतरिक और बाहरी लिंक के बीच चुनना है।

Skill का लिंक

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

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

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

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

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

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

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

“प्रोजेक्ट कार्ड बदलिए ताकि वे प्रोजेक्ट पेज खोलें और फिर भी Cmd-click से काम करें।”

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

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

डेवलपर ऐप के भीतर के पेजों के लिए router लिंक, बाहरी या नए टैब वाले पेजों के लिए सादा लिंक इस्तेमाल करता है, और जहां ज़रूरी हो वहां बटन को लिंक में लपेटता है।

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

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

Native Navigation

Rule

Pure navigation must render a real React Router <Link> for same-SPA routes, a native <a href> for external/public or explicit new-tab destinations, or a shadcn Button asChild wrapper around one. Do not use a button whose only job is to call navigate(), window.open(), or window.location.

Why

Browser modifier-click, middle-click, keyboard activation, accessibility, and normal client-side routing come from real links. Imperative JavaScript navigation hides the destination and blocks those browser semantics.

How

import { Link } from "react-router";

<Link to={`/items/${item.id}`}>...</Link>

<Button asChild>
  <Link to="/settings">Settings</Link>
</Button>

<a href={previewUrl} target="_blank" rel="noopener noreferrer">
  Preview
</a>
  • Use Link for same-SPA internal routes.
  • Use <a> when the URL is external, crosses an app/public boundary, is an auth or sign-in destination, or intentionally opens in a new tab.
  • Preserve query strings and hashes in to or href.
  • For cards with nested actions, link only the non-interactive card region or use a transparent Link overlay; never nest links or buttons.
  • If selection mode changes click behavior, prevent default only for an unmodified primary click and preserve modified clicks.

Keep imperative navigation for post-mutation redirects, OAuth and popup flows, downloads, media/blob URLs, playback, keyboard shortcuts, and stateful tabs.

Review

Search for onClick={() => navigate, window.open, window.location, onAuxClick, and buttons whose only purpose is routing. For each candidate, confirm whether it is pure navigation or a stateful workflow before changing it.

Verify the rendered DOM exposes an href, then test normal click, Cmd/Ctrl-click, middle-click, keyboard Enter, and nested controls where applicable. Run oxfmt and focused app tests or typechecks for the touched package.

Related Skills

  • client-side-routing
  • frontend-design
  • shadcn-ui
अक्सर पूछे जाने वाले सवाल

नेविगेट करने के लिए बटन क्यों न इस्तेमाल करें?

बटन गंतव्य छिपाते हैं और Cmd-click तथा middle-click जैसे ब्राउज़र व्यवहार रोकते हैं।

कोड से नेविगेशन कब सही है?

स्किल इसे अपडेट के बाद के redirect और sign-in या popup प्रवाह के लिए रखने को कहती है।

अंदर बटन वाले कार्ड का क्या?

स्किल कहती है कि कार्ड का केवल गैर-इंटरैक्टिव हिस्सा लिंक करें, और लिंक या बटन को कभी एक-दूसरे के भीतर न रखें।

जानकारी

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

Use when adding or reviewing UI navigation so internal routes preserve normal SPA behavior plus Cmd/Ctrl-click and middle-click new-tab semantics.

repo: BuilderIO/agent-native

लोकप्रियता

GitHub स्टार
7.6k
रैंकिंग में स्थान
#13168
लाइसेंस
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