lynx-openui
БесплатноБез исполняемых скриптовНе проверенGenerate valid OpenUI Lang v0.5 functional-notation programs for the Lynx OpenUI renderer. Use when Codex must turn a natural-language UI request into raw…
от lynx-community★ 28 звёзд на GitHubОб этом скилле
Generate Lynx OpenUI Programs
Generate valid OpenUI Lang v0.5 consumed by
<OpenUiRenderer response={...}>. Produce declarative DSL, not application
code.
Read The References
- Always read components.md before generating a program. Treat caller-supplied component signatures as authoritative extensions or replacements.
- Read runtime.md when the request involves state, tools, live data, mutations, actions, repeated query data, or edits.
- Read examples.md for a non-trivial layout or tool workflow. Adapt patterns; do not copy irrelevant content.
Workflow
- Identify the requested UI, exact active component catalog, configured root
component, available tool schemas, host-supplied prefetched Query keys,
media URLs, and whether the host supports full programs or
mergeStatementspatches. - Choose the data mode:
- Use static values for self-contained content and when no tool exists.
- Use
Queryonly for an actual read tool supplied by the caller or host. - Use
Mutationonly for an actual write tool and trigger it from an explicitAction.
- Select only components and positional arguments allowed by the active
catalog. Treat an explicitly reduced catalog as the complete vocabulary:
built-ins omitted from it are unavailable. Use the host's explicit root
override when present; otherwise use the Library's default
Stackroot. - Write a streaming-friendly graph. For a complete program, put the root first, followed by state, queries or mutations, structural components, and leaf content. For an edit-mode patch, return only changed statements.
- Validate syntax, references, reachability, component names, argument order, tool names, and action targets before returning the program.
Output Contract
- Return only OpenUI Lang. Do not return Markdown, code fences, prose, JSON, XML, HTML, JavaScript, TypeScript, JSX, or CSS.
- Put one assignment statement on each line.
- For a complete program, make the first non-empty line assign
rootto a call of the host's explicit root override, for exampleroot = Shell(...). Otherwise use the Library's defaultroot = Stack(...). - Return a complete program by default. When the caller explicitly says the
host uses edit mode or
mergeStatements, return only changed statements and includerootonly when the root graph changes. - If a request needs an unavailable component or capability, render a concise explanation with supported OpenUI components instead of inventing syntax.
Syntax Rules
- Use
identifier = Expressionfor ordinary declarations and$identifier = defaultValuefor mutable state. - Pass component arguments positionally. Never use named arguments such as
gap: "m". - Omit optional arguments only from the end. When setting a later argument, provide valid values for every earlier position.
- Use double-quoted strings and escape embedded quotes and backslashes.
- Use references or inline components. Prefer references for the root and major sections so streaming reveals the structure progressively.
- Ensure every referenced identifier is defined. Ensure every declaration
other than
rootis reachable fromroot, an expression reachable fromroot, or an action reachable fromroot. - Use only documented operators, built-ins, components, and action steps.
Correct positional layout using the default Stack root:
root = Stack([header, content], "column", false, "l", "stretch", "start")
Incorrect positional layout:
root = Stack([header, content], "column", "l", "stretch")
The incorrect form passes a string into wrap and shifts every later prop.
Data And Interaction Rules
- Do not invent tool names. If no tool schema is supplied, use static data or an explanatory supported UI.
- Give every
Querya representative default result matching the real tool shape so the UI renders in the first synchronous render after the response stabilizes and before the request resolves. - When the host supplies prefetched Query results, preserve the corresponding Query assignment names. They are statement IDs and prefetch keys, not tool names. See runtime.md.
- Keep
QueryandMutationdeclarations on ordinary identifiers, never$identifiers. - Use
@Eachfor query-backed repeated UI. Keep its loop-dependent component inline inside@Each. - Trigger write operations only from an explicit submit or confirmation action
on an active-catalog component. With the default catalog, use
Button. Do not attach a mutation to an input's change action. - When an input must update a
$variable, use the same-keynamepattern in runtime.md. Do not invent an event-value variable. - Execute multi-step actions in deliberate order. Remember that a failed mutation stops the remaining steps.
- Use `@ToAss
Установить lynx-openui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lynx-openui?
Generate valid OpenUI Lang v0.5 functional-notation programs for the Lynx OpenUI renderer. Use when Codex must turn a natural-language UI request into raw OpenUI DSL for OpenUiRenderer, including static mobile UI, $state, Query/Mutation tool flows, Action plans, streaming-friendly output, or catalog-constrained revisions. Do not use for JSX, HTML, CSS, A2UI JSON, or implementing new ReactLynx components.
Как установить скилл lynx-openui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lynx-openui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic