Agent Skills › oomol-lab/open-flow › frontend-ui

frontend-ui

GitHub

定义Open Flow前端开发规范,涵盖组件实现、样式布局、交互及无障碍访问。指导共享UI、表单、画布和Workbench集成,确保视觉一致性与可访问性,适用于前端界面优化与相关Lab故事验证。

.agents/skills/frontend-ui/SKILL.md oomol-lab/open-flow

Trigger Scenarios

前端组件开发与实现 UI样式与布局调整 前端代码审查 无障碍访问性检查

Install

npx skills add oomol-lab/open-flow --skill frontend-ui -g -y
More Options

Non-standard path

npx skills add https://github.com/oomol-lab/open-flow/tree/main/.agents/skills/frontend-ui -g -y

Use without installing

npx skills use oomol-lab/open-flow@frontend-ui

指定 Agent (Claude Code)

npx skills add oomol-lab/open-flow --skill frontend-ui -a claude-code -g -y

安装 repo 全部 skill

npx skills add oomol-lab/open-flow --all -g -y

预览 repo 内 skill

npx skills add oomol-lab/open-flow --list

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 title is not a substitute. Hosts use HostTooltip from @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>, not i-lucide:<name>; existing lucide-react components use strokeWidth={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

Same Skill Collection

.agents/skills/iconify-icons/SKILL.md
packages/open-flow/skills/open-flow/SKILL.md

Metadata

Files
0
Version
b0cd724
Hash
4219eefa
Indexed
2026-09-22 00:07

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-19 15:16
浙ICP备14020137号-1