Langsung ke konten
Skillpedia
Website & UI (frontend)15k Β· #10921

using-lynx-api-docs

Fungsinya

Membuat asisten mencari dokumentasi API Lynx yang terpasang sebelum menulis atau mengubah kode Lynx. Cocok untuk pengembang yang membangun aplikasi di platform rendering Lynx.

Kapan dipakai

  • βœ“Saat Anda meminta asisten menulis atau mengubah halaman, template, atau komponen Lynx.
  • βœ“Saat tata letak atau gaya CSS Lynx berperilaku berbeda dari web.
  • βœ“Saat Anda meminta ia meninjau kode Lynx atau memindahkan halaman web ke Lynx.

Link skill

https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œPerbaiki tata letak halaman Lynx saya agar gambar berada di sebelah teks, dengan memakai elemen Lynx yang benar.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Asisten mencari dokumentasi Lynx yang tepat untuk tugas itu, membacanya, lalu menulis kode dengan elemen dan aturan gaya milik platform, bukan mengasumsikan perilaku web.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Mengapa tidak memakai pengetahuan web biasa saja?

Lynx adalah platform rendering tersendiri dengan elemen dan default tata letaknya sendiri, sehingga asumsi web sering menghasilkan kode yang rusak.

Berkas apa saja yang tercakup?

Berkas khusus Lynx, termasuk halaman .ttml dan berkas Lynx TSX, tercakup dalam panduan ini.

Apakah dokumentasinya harus terpasang?

Ya. Skill ini memberi tahu asisten untuk mencari dokumentasi API yang terpasang sebelum bertindak.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
15k
Peringkat
#10921
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa