AGENT SKILL

frontend-composition

Implement polished self-contained HTML interfaces with semantic structure, maintainable CSS, realistic content, and purposeful visual hierarchy.

License 许可
Apache-2.0
所属仓库
juspay/xyne-spaces
最近更新
2026-11-15
Stars
★ 827
Forks
573

01 前言 Front Matter

name
frontend-composition
description
Implement polished self-contained HTML interfaces with semantic structure, maintainable CSS, realistic content, and purposeful visual hierarchy.

03 SKILL.md 正文

Frontend composition

Deliver one complete HTML document with its CSS and JavaScript embedded. Use semantic landmarks and native controls before custom div-based widgets.

  • Establish hierarchy through size, spacing, alignment, contrast, and density.
  • Use CSS Grid for two-dimensional page structure and Flexbox for component alignment. Avoid absolute positioning for normal flow.
  • Keep line lengths readable and controls comfortably clickable.
  • Use icons only when their meaning is recognizable; label ambiguous actions.
  • Provide realistic states and interactions. Every visible control should work or be clearly presented as static content.
  • Prefer progressive enhancement: the document should retain useful structure if JavaScript fails.

For a node-scoped revision, locate the stable selector supplied by Design Studio. Preserve unrelated regions. For component scope, update all instances of the same component through a shared selector or rendering function.

04 同仓库更多 Skills