using-lynx-api-docs
Was er macht
Lässt den Assistenten die installierte Lynx-API-Dokumentation nachschlagen, bevor er Lynx-Code schreibt oder ändert. Er ist für Entwickler gedacht, die Apps auf der Lynx-Rendering-Plattform bauen.
Wann du ihn nutzt
- ✓Wenn du den Assistenten bittest, eine Lynx-Seite, Vorlage oder Komponente zu schreiben oder zu ändern.
- ✓Wenn sich ein Lynx-Layout oder ein CSS-Stil anders verhält als im Web.
- ✓Wenn du ihn bittest, Lynx-Code zu prüfen oder eine Webseite zu Lynx zu übertragen.
Link zum Skill
https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Repariere das Layout meiner Lynx-Seite, sodass das Bild neben dem Text steht, und nutze dafür die richtigen Lynx-Elemente.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Assistent findet die passende Lynx-Dokumentation für die Aufgabe, liest sie und schreibt dann Code mit den eigenen Elementen und Stilregeln der Plattform, statt Web-Verhalten anzunehmen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Warum nicht einfach Web-Wissen nutzen?
Lynx ist eine eigene Rendering-Plattform mit eigenen Elementen und Layout-Standards. Web-Annahmen führen oft zu kaputtem Code.
Welche Dateien deckt er ab?
Lynx-spezifische Dateien, darunter .ttml-Seiten und Lynx-TSX-Dateien, werden von dieser Anleitung abgedeckt.
Müssen die Dokumente installiert sein?
Ja. Der Skill weist den Assistenten an, vor dem Handeln in der installierten API-Dokumentation zu suchen.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 15k
- Platz im Ranking
- #10921
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
Ähnliche Skills
angular-developer
280kHilft deinem Agenten bei Angular-Code und gibt Tipps zur Projektstruktur. Nützlich für neue Projekte, einzelne Code-Teile sowie Performance und Barrierefreiheit.
frontend-a11y
280kHilft deinem Agenten, Weboberflächen für alle zugänglich zu machen. Sorgt dafür, dass Websites und Apps gut mit Screenreadern und Tastaturnavigation funktionieren.
frontend-patterns
280kLässt deinen Agenten moderne Muster in der Frontend-Entwicklung anwenden. Optimiert Performance, verwaltet State und folgt Best Practices für React und Next.js.