What problem does it solve?
Writing documentation for SEED Lynx components requires keeping parity with the corresponding React docs while accounting for Lynx runtime differences, deployment paths (Registry vs package), and Engine/XElement compatibility. This Skill standardizes that process so docs and examples stay consistent and accurate.
Core Features & Use Cases
- React-to-Lynx parity mapping: Classifies each React doc scenario as identically supported, needing Lynx-style conversion, or unsupported, preserving section order, example titles, and user-visible results.
- Deployment path resolution: Determines whether a component is consumed via Registry (
@/components/ui/<name>) or directly from @seed-design/lynx-react, and applies the correct import path in docs and examples.
- Compatibility frontmatter: Computes
compatibility.lynx.engine minimum versions and x-elements lists from official Lynx compatibility data.
- Use Case: When adding docs for a new Lynx component like Switch, use this Skill to mirror the React doc structure, write
docs/examples/lynx/switch/*.tsx entries, and hand off runtime verification to the verification skill.
Quick Start
Use the seed-write-lynx-component-docs skill to write the Lynx documentation and runnable examples for the Switch component based on its React docs.