vanilla-lynx
FreeRuns bundled scriptsNot checkedAuthor, review, or explain Vanilla Lynx source that directly uses Element PAPI, delivered as a build-free `.lynxml` artifact or an Rspeedy project, including…
by lynx-community★ 28 GitHub starsAbout this skill
Author Vanilla Lynx with Element PAPI
Use this skill to author Vanilla Lynx directly with Element PAPI and Lynx Runtime APIs, without ReactLynx or JSX. Treat build-free .lynxml and Rspeedy as peer output formats.
Choose the Output Format
- Choose
.lynxmlwhen the user asks for a single file, build-free or directly loadable output, or explicitly says not to add a build step. - Choose Rspeedy when the user asks for Rspeedy, a project scaffold or build configuration, or an app bundle produced by a build.
- Generic words such as app, page, card, or project do not select a format by themselves. If a complete authoring request lacks a distinguishing delivery or build requirement, or gives conflicting format signals, ask one concise clarification before generating the deliverable. Do not generate both complete formats unless the user requests both.
- For a focused source-level question or snippet request, answer the requested scope without forcing an output-format decision.
Core Rules
- Rely only on Lynx-supported ECMAScript built-ins (note that
Intlis not built in), Element PAPI, and Lynx runtime globals documented by this skill (lynx,console, timers,requestAnimationFrame/cancelAnimationFrame, and background-onlySystemInfo/NativeModules/fetch). Do not use ReactLynx, JSX, virtual DOM, or undeclared browser/Node globals such aswindow,document,navigator,localStorage, orperformance(use eitherDate.now()or therequestAnimationFramecallback timestamp consistently without mixing the two;lynx.performanceis for trace/timing observation and has no.now()). - In Vanilla Lynx Fiber source, read system metadata from global
SystemInfo(orglobalThis.SystemInfo) on the background thread andlynx.SystemInfoon the main thread. Fields are read-only; check target types or API docs. See runtime sources and framework aliases when checking availability. - For a complete authoring request, deliver the adapted artifact's full contents or write the requested file; never answer only with an example asset/reference path or instructions to read it. When authoring a build-free
.lynxml, readreferences/lynxml.mdand adapt the smallest matching template underassets/examples/(for example,assets/examples/counter.lynxmlfor a counter). - Keep Element PAPI tree creation, mutation, lifecycle rendering, and UI updates in the main-thread source:
<script thread="main">for.lynxmlormain-thread.tsfor Rspeedy. Never call Element PAPI APIs or__FlushElementTree()from the background-thread source; it only sends serializable patches for the main thread to apply and flush. - Rely on the SDK flush for initial render; call
__FlushElementTree()after later UI mutations. - Add background-thread source only for heavier business logic, async work, timers, native calls, or data processing. Keep cross-thread payloads serializable.
- Use
lynx.getEngine()only for engine-defined lifecycle events (__RenderPage,__UpdatePage,__UpdateGlobalProps, and__DestroyLifetime); never use it for app-defined thread-local or cross-thread events. Lifecycle handlers may ignore their event payload when the implementation does not need it, and registering empty__UpdatePage/__UpdateGlobalPropsplaceholders prevents unhandled Native host update callbacks. Keep stable handler references for long-lived and cross-thread listeners; remove them with the same context and event name during destroy instead of registering inline callbacks. - Keep external bundle building and loading separate and background-only. External modules must be plain TypeScript or JavaScript; never use ReactLynx, JSX, or ReactLynx transforms in them. Match the rslib entry key to the first
loadScriptargument.
Reference Routing
Read only the reference files needed for the current task. Preserve their explicit constraints rather than replacing them with generic guidance.
| Task | Read |
|---|---|
Author, assemble, or review a complete .lynxml document |
references/lynxml.md |
| Author or review a complete Rspeedy project or build workflow | references/rspeedy-project.md |
| Build the main-thread Element PAPI tree or update UI | references/main-thread.md |
| Choose runtime event APIs or wire lifecycle events | references/event.md |
| Implement heavier logic in the background script | references/background.md |
| Author or review CSS using Lynx styling and layout rules | references/style.md |
| Build background-thread code into an external bundle with rslib | references/external-build.md |
| Load or call a background-thread external bundle a |
Install vanilla-lynx in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the vanilla-lynx skill do?
Author, review, or explain Vanilla Lynx source that directly uses Element PAPI, delivered as a build-free `.lynxml` artifact or an Rspeedy project, including related build and serving workflows. Excludes ReactLynx, Canvas/WebGL, standalone API/CSS lookups, device-side runtime debugging, and bundle analysis.
How do I install the vanilla-lynx skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the vanilla-lynx skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic