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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
Linkfor 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
toorhref. - 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-routingfrontend-designshadcn-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
कमेंट
- …
इस repository की और skills
design-exploration
7.6kयह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।
visual-edit
7.6kयह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।
turn-into-app
7.6kयह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।
visual-plan
7.6kयह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।