본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)15k · #10921

using-lynx-api-docs

하는 일

이 스킬은 어시스턴트가 Lynx 코드를 쓰거나 바꾸기 전에 설치된 Lynx API 문서를 찾아보게 합니다. Lynx 렌더링 플랫폼에서 앱을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Lynx 페이지, 템플릿, 컴포넌트를 쓰거나 바꿔 달라고 요청할 때.
  • ✓Lynx 레이아웃이나 CSS 스타일이 웹과 다르게 작동할 때.
  • ✓Lynx 코드를 검토하거나 웹 페이지를 Lynx로 옮기고 싶을 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/lynx-family/lynx/blob/develop/ai/skills/lynx-api-docs/skills/using-lynx-api-docs/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Lynx 페이지의 레이아웃을 고쳐서 이미지가 텍스트 옆에 오도록 해 주세요. 올바른 Lynx 요소를 써 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

어시스턴트는 작업에 맞는 Lynx 문서를 찾아 읽은 뒤, 웹 가정을 따르지 않고 플랫폼 고유의 요소와 스타일 규칙으로 코드를 씁니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

일반적인 웹 지식을 쓰면 안 되나요?

Lynx는 고유한 요소와 기본 레이아웃을 가진 자체 렌더링 플랫폼이므로, 웹 가정은 깨진 코드를 만드는 경우가 많습니다.

어떤 파일을 다루나요?

Lynx 전용 파일인 .ttml 페이지와 Lynx TSX 파일이 이 지침에 포함됩니다.

문서를 설치해야 하나요?

네. 이 스킬은 행동하기 전에 설치된 API 문서를 검색하라고 어시스턴트에게 알려 줍니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
15k
순위
#10921
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬