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.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
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: 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
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
Komentar
- β¦
Skill lain dari repositori ini
Skill serupa
angular-developer
280kMembantu agent Anda membuat kode Angular dan memberi saran struktur proyek. Berguna saat memulai proyek baru, membuat komponen, atau meningkatkan performa.
frontend-a11y
280kMembantu agent Anda membuat antarmuka web dapat diakses semua orang. Memastikan website dan aplikasi berfungsi baik dengan screen reader dan navigasi keyboard.
frontend-patterns
280kMembuat agent Anda menerapkan pola modern dalam frontend. Mengoptimalkan performa, mengelola state, dan mengikuti praktik terbaik React dan Next.js.