frontend-ui
GitHub定义Open Flow前端开发规范,涵盖组件实现、样式布局、交互及无障碍访问。指导共享UI、表单、画布和Workbench集成,确保视觉一致性与可访问性,适用于前端界面优化与相关Lab故事验证。
Trigger Scenarios
Install
npx skills add oomol-lab/open-flow --skill frontend-ui -g -y
SKILL.md
Frontmatter
{
"name": "frontend-ui",
"description": "Implement and review Open Flow frontend components, styling, layout, and interactions. Use for button spacing, visual balance, themes, forms, canvas and Workbench integration, accessibility, and related Lab stories in this repository. Excludes backend-only changes and unrelated frontend projects."
}
Open Flow Frontend Development
This skill defines frontend conventions for shared UI, forms, the canvas, Workbench, and host
integration. Paths beginning with src/ are relative to packages/open-flow/; other repository
paths are relative to the repository root. Use production code as the source for component usage.
Core workflow
- Identify the component that owns the behavior and its affected consumers. Correct shared behavior at its owner and keep feature-specific requirements local.
- Prefer existing components, tokens, and public interfaces. Preserve required state, language, theme, coordinate, clipping, stacking, and dismissal contexts when composing UI.
- Components own interaction semantics. Preserve keyboard operation, accessible names, state communication, focus restoration, expected opening and closing behavior, real link semantics, and reduced-motion behavior.
- Icon-only action buttons and links must use the shared Tooltip as well as a localized accessible
name. A native
titleis not a substitute. Hosts useHostTooltipfrom@oomol-lab/open-flow/ui; product components use the shared UI Tooltip primitives. Verify keyboard focus and hover, preserve the surrounding theme, and keep dynamic hints in sync with the current state. - When adding, replacing, or choosing icons, use the
iconify-icons skill. Lucide icons use
i-lucide-light:<name>, noti-lucide:<name>; existinglucide-reactcomponents usestrokeWidth={1.5}. - Prefer Lab for appearance and interaction checks. Maintain related Stories and add missing states. Supplement Lab with the product when host layout or a complete flow matters. Consult the Lab documentation only when changing Lab infrastructure or deployment, or when an unfamiliar Story API requires it.
- For appearance or interaction changes, verify the affected states in Lab or the product. Static checks do not establish visual correctness. Report material verification gaps.
Task-specific references
Read only the references relevant to the task; read more than one when the change crosses domains.
- For Value Node, Inputs, value editors, inspector navigation, field or node settings, and property-panel layout or interaction, start with Property panel contracts, then read only the routed detail relevant to the task.
- For shared controls, themes, host-facing UI, spacing, visual styling, shared browser UI, or localization, read Shared UI and visual design.
- For standalone forms, Schema-controlled values, validation drafts, or shared code editors, read Forms and editors.
- For canvas, Workbench, sidebar composition, node menus, canvas popovers, or undo/redo behavior, read Canvas and Workbench.
Version History
-
b0cd724
Current 2026-10-18 16:34
移除开发服务器生命周期说明;新增HostNavigationActions和HostTooltip组件及其样式。
- 61e82e0 2026-09-22 00:07


