Pular para o conteúdo
Skillpedia
Sites e telas (frontend)15 mil · #10921

using-lynx-api-docs

O que ela faz

Faz o assistente consultar a documentação da API do Lynx instalada antes de escrever ou alterar código Lynx. É para desenvolvedores que criam apps na plataforma de renderização Lynx.

Quando usar

  • ✓Quando você pede ao assistente para escrever ou alterar uma página, um template ou um componente Lynx.
  • ✓Quando um layout ou um estilo CSS do Lynx se comporta de forma diferente da web.
  • ✓Quando você pede para revisar código Lynx ou para migrar uma página web para o Lynx.

Link da skill

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

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Corrija o layout da minha página Lynx para que a imagem fique ao lado do texto, usando os elementos corretos do Lynx.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O assistente encontra a documentação correta do Lynx para a tarefa, a lê e então escreve o código com os elementos e as regras de estilo da própria plataforma, em vez de presumir o comportamento da web.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do 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
Perguntas frequentes

Por que não usar apenas o conhecimento de web?

O Lynx é uma plataforma de renderização própria, com elementos e padrões de layout próprios, então suposições da web muitas vezes geram código quebrado.

Quais arquivos são cobertos?

Arquivos específicos do Lynx, incluindo páginas .ttml e arquivos TSX do Lynx, são cobertos por esta orientação.

Preciso ter a documentação instalada?

Sim. A skill diz ao assistente para pesquisar a documentação de API instalada antes de agir.

Detalhes

Descrição original do autor

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

Popularidade

Estrelas no GitHub
15 mil
Posição no ranking
#10921
Licença
Apache-2.0
Atualizada em
02/11/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas