using-lynx-api-docs
यह क्या करती है
यह स्किल असिस्टेंट को Lynx कोड लिखने या बदलने से पहले इंस्टॉल किए गए Lynx API दस्तावेज़ खोजने देती है। यह उन डेवलपर्स के लिए है जो Lynx रेंडरिंग प्लेटफ़ॉर्म पर ऐप बना रहे हैं।
कब इस्तेमाल करें
- ✓जब आप असिस्टेंट से Lynx पेज, टेम्पलेट या कंपोनेंट लिखने या बदलने को कहते हैं।
- ✓अगर कोई Lynx लेआउट या CSS स्टाइल वेब से अलग व्यवहार करे।
- ✓जब आप Lynx कोड की समीक्षा करवाना चाहते हैं या वेब पेज को Lynx में लाना चाहते हैं।
Skill का लिंक
https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Lynx पेज का लेआउट ठीक कीजिए, ताकि इमेज टेक्स्ट के बगल में बैठे, और सही Lynx एलिमेंट इस्तेमाल कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
असिस्टेंट काम के लिए सही Lynx दस्तावेज़ ढूँढता है और पढ़ता है, फिर प्लेटफ़ॉर्म के अपने एलिमेंट और स्टाइल नियमों से कोड लिखता है, वेब के व्यवहार को मानकर नहीं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Using Lynx API Docs
Overview
Pre-training knowledge is insufficient for Lynx. Lynx is a rendering platform (like a browser) with its own elements, non-standard CSS behavior, unique layout systems, and web-incompatible defaults. Always retrieve from the installed API docs before writing or modifying Lynx page code.
Core Rule
MUST ALWAYS read the relevant API docs BEFORE writing or editing any Lynx code.
Do not rely on web CSS knowledge. Do not assume standard HTML behavior. Do not guess element APIs. Lynx is a distinct platform with its own rules.
Why Web Knowledge Fails
Lynx is not a web browser. Web assumptions produce broken Lynx code:
- Elements:
<view>,<text>,<image>— not<div>,<span>,<img> - CSS defaults:
box-sizing: autonormally uses border-box sizing; no margin collapsing; Linear layout (not Flow) - Properties: Many CSS properties are unsupported or behave differently — always check
css/docs
Every web assumption is a potential bug.
How to Use the Docs
- Identify what you're working on (layout, CSS, element, migration, pattern)
- Look up the relevant doc file from the table below
- Read the doc BEFORE writing or editing code
- Apply the rules and constraints from the doc
- If uncertain, search the
elements/orcss/directories
Quick Reference
| Task | Read These Files First |
|---|---|
| Choose layout | layout/linear-layout.md (default), layout/flex-layout.md, layout/grid-layout.md, layout/relative-layout.md |
| CSS properties/units | css/supported-properties.md, css/values-and-units.md |
| CSS selectors | css/selectors.md, css/pseudo-classes.md |
| Use an element | elements/<element-name>.md |
| Migrate from web | lynx-vs-web/migration-guide.md, lynx-vs-web/css-differences.md |
| Theming/animation/responsive | patterns/theming.md, patterns/animation.md, patterns/responsive.md |
| General lookup | quick-reference.md, best-practices.md |
Core Rules
The compact layout decision rules and key CSS constraints are documented in quick-reference.md. Most critical:
- Text must use
<text>component - Box sizing initially uses
auto, normally with border-box sizing; set an explicit value when compatibility settings may differ - No margin collapsing
- Use
rem+vwfor screen adaptation
Red Flags — Stop and Read Docs
- Adding a
<div>or<span>→ Lynx uses<view>,<text> - Using
marginwithout checking if margin collapsing applies → It doesn't - Assuming
content-box→autonormally uses border-box sizing; checkcss/supported-properties.md#box-model - Using web CSS properties without checking
css/supported-properties.md - Guessing element attributes → Read
elements/<name>.md - Choosing
rpxfor web-portable code →rpxis Lynx-specific; userem+vwfor web compatibility - Writing plain text without
<text>wrapper → Invalid in Lynx - Using web pseudo-classes without checking
css/pseudo-classes.md - Assuming standard HTML flow layout → Lynx uses linear layout by default
अक्सर पूछे जाने वाले सवाल
सामान्य वेब जानकारी ही क्यों न इस्तेमाल करें?
Lynx का अपना रेंडरिंग प्लेटफ़ॉर्म है, जिसके एलिमेंट और लेआउट डिफ़ॉल्ट अलग हैं, इसलिए वेब की धारणाएँ अक्सर टूटा कोड बनाती हैं।
यह किन फ़ाइलों को कवर करता है?
Lynx की खास फ़ाइलें, जैसे .ttml पेज और Lynx TSX फ़ाइलें, इस मार्गदर्शन में आती हैं।
क्या दस्तावेज़ इंस्टॉल होने चाहिए?
हाँ। स्किल असिस्टेंट को कुछ करने से पहले इंस्टॉल किए गए API दस्तावेज़ खोजने को कहती है।
जानकारी
लेखक का मूल विवरण
Provides authoritative guidance for Lynx development involving pages, templates, components, CSS, layouts, elements, web migration, rendering or styling bugs, and code review. Applies to *.ttml, Lynx *.tsx, and all Lynx-specific files, and requires searching the installed API docs before acting.
repo: lynx-family/lynx
लोकप्रियता
- GitHub स्टार
- 15k
- रैंकिंग में स्थान
- #10921
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
मिलती-जुलती 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 फॉलो करवाता है।