Skip to main content
skill CX Codex

lynx-api-docs — Claude Code skill: what it does, how to install

lynx-api-docs — a skill for Claude Code and Codex that routes Lynx engine docs during TSX or TTML development. Prevents AI from assuming browser defaults.

Apache-2.0 183 installs ★ 28 updated 2026-11-15

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add lynx-community/skills --skill lynx-api-docs -a claude-code
Open on GitHub

What lynx-api-docs does

The skill instructs the agent to read authoritative Lynx documentation before generating or changing code. Layout, sizing, and styling tasks route through lynx-vs-web/css-differences.md. For specific tags and selectors, it pulls documents from elements/ and css/.

Lynx differs significantly from standard browser runtime. The engine uses <view>, <text>, and <image> instead of HTML tags, applies Linear layout by default, and keeps margins uncollapsed.

Repair rules force minimal edits. The agent diagnoses the defect on the smallest selector first and keeps unrelated markup, asset paths, and element properties untouched.

What it helps with

  • migrate Web HTML and CSS components to Lynx TSX or TTML
  • debug layout bugs caused by non-collapsing margins or linear flow
  • verify supported CSS properties, pseudo-classes, and units in Lynx
  • configure Lynx grid, flex, or relative layouts following engine specs

Example prompts for the agent

  • Convert this React component into Lynx TSX markup
  • Debug layout stacking differences on this Lynx TTML template
  • Check why box-sizing behaves differently in this Lynx stylesheet

How to install lynx-api-docs

1Skills CLI (Vercel)

npx skills add lynx-community/skills --skill lynx-api-docs -a claude-code

2Manually: put the files in place

~/.claude/skills/lynx-api-docs/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/lynx-api-docs/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about lynx-api-docs

How to install lynx-api-docs in Claude Code?

Run npx skills add lynx-community/skills --skill lynx-api-docs -a claude-code in your terminal.

What does lynx-api-docs do?

It guides the agent through Lynx engine references for CSS, layout structures, and tags, preventing standard HTML assumptions.

What critical defaults does lynx-api-docs enforce?

It requires <view> and <text> elements, uses Linear layout as the default, and accounts for uncollapsed margins.

Source text

SKILL.md · Apache-2.0
---
name: lynx-api-docs
description: Authoritative Lynx engine references for generating, reviewing, migrating, or debugging Lynx TSX/TTML pages, CSS, layouts, selectors, and elements. Use for Lynx-specific styling and Web-to-Lynx differences; always retrieve the relevant installed docs before changing code.

---

# Using Lynx API Docs

**MUST read the relevant API docs before writing or editing Lynx code.** Lynx elements and CSS differ from the Web; do not fill gaps with HTML or browser assumptions.

**For repair tasks, diagnose and route each symptom before reading element documentation.** For layout, sizing, wrapping, or stacking symptoms, read the CSS differences index first. Do not infer element-prop defects from visual differences alone.

## Route the Task

| Task | Read first |
| --- | --- |
| **Generate or edit Lynx CSS; migrate Web HTML/CSS; debug a Lynx/Web style difference** | **`lynx-vs-web/css-differences.md`**, then only the linked topic files needed for the diagnosed task |
| Check a CSS property, value, unit, or function | `css/supported-properties.md` and `css/values-and-units.md`; also check the CSS differences index when Web compatibility matters |
| Write or debug selectors | `css/selectors.md` and `css/pseudo-classes.md` |
| Choose or debug a layout | `layout/linear-layout.md` (default), `layout/flex-layout.md`, `layout/grid-layout.md`, or `layout/relative-layout.md` |
| Use or debug an element | `elements/<element-name>.md` |
| Apply theming, responsive design, or animation | `patterns/theming.md`, `patterns/responsive.md`, or `patterns/animation.md` |
| Look for a complete example or performance guidance | `examples/`, `quick-reference.md`, or `best-practices.md` as needed |

For CSS work, the differences index is the generation entry point, not only a migration reference. Follow its exact topic links instead of loading the entire documentation bundle.

## Generation-Critical Defaults

- Use `<view>`, `<text>`, and `<image>`, not HTML elements; wrap text in `<text>`.
- Lynx defaults to Linear layout, not Web block flow.
- `box-sizing` initially uses `auto`, normally with border-box sizing; set an explicit value when compatibility settings may differ.
- Margins do not collapse.

These defaults are shortcuts, not a substitute for the task-specific references above.

## Repair Scope and Output

For debugging and visual-repair tasks:

- Diagnose before expanding retrieval. Read only topics tied to the observed defect; do not survey unrelated element, animation, or visual-effect documentation.
- Start from the observed defect and the smallest affected element or selector. Change only what is required for that defect; do not repair speculative differences or normalize unrelated code.
- Preserve unrelated styles, component props and behavior, content, assets, fonts, and routing. Do not apply a relevant rule, such as `box-sizing`, to other elements unless they share the diagnosed defect.
- Before answering, compare the result with the original and remove every edit not required by the diagnosis.
- Follow the user's output contract exactly. When complete files only are requested, return those files without retrieval notes, status updates, explanations, or other prose.

© lynx-community · Apache-2.0 · lynx-community/skills

Similar skills

All skills for Frontend and UI →

From the same set14

The whole set →
lynx-trace-record lynx-trace-record teaches AI agents to record Lynx performance traces via the trace_record CLI. Captures startup rendering, memory snapshots, and JS engine profiles. CX Codex +1 388installs lynx-ui A skill for building with lynx-ui: it picks the component, checks the public API in the repo's reference files and keeps the agent from inventing props. CX Codex +1 326installs lynx-debug-info-remapping lynx-debug-info-remapping maps Lynx function_id:pc_index error locations back to source lines with debug-info.json. Use it when a main-thread stack points into bytecode. CX Codex +1 325installs habitat-usage habitat-usage — a skill for Claude Code, Codex, Cursor and other platforms that configures Habitat to sync multi-repo dependencies and external assets via .habitat/DEPS and hab sync. CX Codex +1 253installs lynx-check-css-support lynx-check-css-support is a Claude Code skill that checks CSS property and value support across Lynx backends using bundled data. CX Codex +1 201installs vanilla-lynx vanilla-lynx is a Claude Code skill that writes, reviews, and explains Vanilla Lynx code using Element PAPI. It targets build-free .lynxml files or Rspeedy application projects. CX Codex +1 201installs lynx-a2ui lynx-a2ui — a skill for Claude Code that converts natural-language interface requests into A2UI v1.0 protocol messages. Outputs declarative JSON arrays directly for an A2UI renderer. CX Codex +1 170installs lynx-openui Writes OpenUI Lang v0.5 programs for the Lynx OpenUI renderer: static mobile screens, $state, Query/Mutation flows, streaming-friendly output. CX Codex +1 160installs

Project sponsors

Companies that keep this analytics open