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

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 पढ़कर निर्देशों का पालन करेगा।

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

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

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: auto normally 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

  1. Identify what you're working on (layout, CSS, element, migration, pattern)
  2. Look up the relevant doc file from the table below
  3. Read the doc BEFORE writing or editing code
  4. Apply the rules and constraints from the doc
  5. If uncertain, search the elements/ or css/ 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 + vw for screen adaptation

Red Flags — Stop and Read Docs

  • Adding a <div> or <span> → Lynx uses <view>, <text>
  • Using margin without checking if margin collapsing applies → It doesn't
  • Assuming content-box → auto normally uses border-box sizing; check css/supported-properties.md#box-model
  • Using web CSS properties without checking css/supported-properties.md
  • Guessing element attributes → Read elements/<name>.md
  • Choosing rpx for web-portable code → rpx is Lynx-specific; use rem + vw for 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

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

0

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

कमेंट

  • …

इस repository की और skills

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