lynx-api-docs — скилл для Claude Code: что делает и как установить
Скилл lynx-api-docs для Claude Code и Codex подтягивает документацию движка Lynx при верстке и отладке страниц на TSX или TTML. Помогает учесть отличия от веба.
Apache-2.0 183 установок ★ 28 обновлён 2026-11-15
npx skills add lynx-community/skills --skill lynx-api-docs -a claude-codeЧто делает lynx-api-docs
Скилл маршрутизирует задачи по верстке Lynx в нужные справочники перед правкой кода. Для генерации стилей и переноса с HTML он обращается к индексу отличий lynx-vs-web/css-differences.md. Для компонентов берутся файлы из elements/, а для селекторов и единиц измерения — отдельные руководства по CSS.
Инструкции скилла запрещают агенту опираться на привычный веб. Lynx требует базовые теги <view>, <text> и <image>, по умолчанию использует линейный лейаут вместо блочной модели, а внешние отступы margin здесь не схлопываются.
При починке багов скилл ограничивает охват изменений. Агент обязан изолировать сбойный селектор и не имеет права превентивно переписывать соседние компоненты.
Какие задачи решает
- перенести веб-разметку и стили на движок Lynx
- исправить разметку интерфейса с учетом линейного лейаута по умолчанию
- проверить поддержку CSS-свойств, псевдоклассов и единиц в Lynx
- настроить сетку на Flexbox, Grid или Relative layout без багов отступов
Примеры запросов агенту
- Переверстай карточку товара из HTML/CSS в разметку Lynx TSX
- Найди причину поломки flex-лейаута на странице Lynx TTML
- Проверь селекторы и стили в файле по правилам Lynx CSS
Как установить lynx-api-docs
1Через Skills CLI (Vercel)
npx skills add lynx-community/skills --skill lynx-api-docs -a claude-code2Вручную: положить файлы
~/.claude/skills/lynx-api-docs/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/lynx-api-docs/
1Через Skills CLI (Vercel)
npx skills add lynx-community/skills --skill lynx-api-docs -a codex2Вручную: положить файлы
.agents/skills/lynx-api-docs/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add lynx-community/skills --skill lynx-api-docs -a cursor2Вручную: положить файлы
.cursor/skills/lynx-api-docs/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install lynx-community/skills skills/lynx-api-docs2Вручную: положить файлы
.github/skills/lynx-api-docs/SKILL.md1Через Skills CLI (Vercel)
npx skills add lynx-community/skills --skill lynx-api-docs -a gemini-cli2Командой платформы
gemini skills install https://github.com/lynx-community/skills --path skills/lynx-api-docsВручную: положить файлы
.devin/skills/lynx-api-docs/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add lynx-community/skills --skill lynx-api-docs -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о lynx-api-docs
Как установить lynx-api-docs в Claude Code?
Выполните команду npx skills add lynx-community/skills --skill lynx-api-docs -a claude-code в терминале.
Что делает lynx-api-docs?
Направляет агента в локальную документацию Lynx по CSS, элементам и лейаутам, предотвращая подстановку обычных тегов HTML и браузерных правил.
Чем верстка Lynx отличается от обычного веба по правилам скилла?
Вместо div и span используются <view> и <text>, макетом по умолчанию служит Linear layout, а margin между элементами не схлопывается.
Исходный текст
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