frontend-design
它能做什么
这项技能指导 Agent-Native 应用中用户界面的设计。它涵盖选择视觉方向、保持首屏聚焦并避免杂乱。适合修改任何面向用户界面的设计师和开发者。
适用场景
- ✓当你要创建或修改用户会看到的界面的时候。
- ✓当某个界面变得杂乱,需要更清晰的结构的时候。
- ✓当根据反馈调整控件、文案或信息密度的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/frontend-design/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请重新设计设置页面,让它更易用,同时保留我们现有的颜色和按钮。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体判断谁会使用该界面、他们接下来需要什么,保持首屏聚焦,并沿用现有的组件、颜色和间距。它还会检查设计是否无障碍并能适应不同屏幕。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Frontend Design
Design around the user's task and the app's existing visual language. A distinctive interface comes from a clear product point of view, not extra decoration. Keep implementation accessible and responsive.
Choose a direction
Before a substantial new surface or redesign, decide who is using it, what they came to do, and what they should see or do next. Pick a visual direction that fits the product's brand and domain. For routine changes, inspect and follow the existing components, type, color tokens, and spacing.
If a screen has two unrelated primary jobs, split the workflows or states. Do not solve an unclear structure by adding more cards, tabs, controls, or explanatory copy.
Keep the starting view focused
The first view should show where the user is, the current work or state, and the input or decision needed now. Make one action clear. Defer rare, advanced, diagnostic, destructive, and historical controls to a relevant menu or disclosure.
Every visible element should orient the user, show useful content or state, collect required input, or enable the next action. If it has no job, remove it or disclose it. Density should come from useful data, not extra chrome.
Do not add a page title that repeats the selected navigation item, a subtitle or eyebrow under a title, a count strip over visible content, an About section in settings, or helper copy that repeats a label unless the user asks for it. A card, panel, tab, or settings group gets a title or a description, not both. Use tooltips or progressive disclosure for explanations that are not needed to make the current decision. User-authored descriptions are content: render them when present and render nothing when empty.
For sequential setup, show one decision at a time with clear progress and sensible defaults. Use the smallest surface that fits the task: an inline row or dialog for a small edit, a focused flow for multi-step work.
Use the app's design system
Preserve the existing brand and theme. Prefer semantic color tokens and the app's type system over raw palette colors or a newly invented visual system. Choose an accent and type treatment for a reason; avoid generic gradients, glass effects, decorative blobs, and hero sections without a product purpose.
Use the app's local UI adapter for standard controls. In an Agent-Native app,
check the configured design system and toolkit provider before changing how
shared controls look. Read shadcn-ui when implementing or composing a
standard control; keep product-specific layout and visual decisions here.
Use real or generated imagery when it helps the user understand the subject. Do not add decorative assets solely to fill empty space.
Coordinate the UI with the agent
Keep repeatable, direct manipulation in the domain UI and use the agent for work that benefits from judgment, exploration, or conversation. If the app has a contextual agent sidebar, reuse it for in-context help and keep the user on the current work surface. Do not add a second freeform prompt box. A control that promises agent help should hand off the relevant context; label local, deterministic behavior plainly.
Interaction Responsiveness
Show feedback as soon as the user acts, aiming for 100 ms. When work cannot finish immediately, acknowledge it before a network round-trip and show a focused pending state within 400 ms. Use optimistic updates when safe, then confirm or roll back on failure. Keep long work visibly progressing and offer a way to stop when the operation supports cancellation.
Make interactions clear and accessible
Support keyboard use, visible focus, accessible names, readable contrast, and
clear validation and recovery. Dialog and menu controls should use the app's
existing accessible primitives rather than hand-built click-outside behavior.
Never use browser alert, confirm, or prompt dialogs.
Use motion to clarify a state change. Prefer short transitions on opacity or transform, respect reduced-motion preferences, and avoid delaying content with decorative entrances or long animations.
Fit the content to narrow screens as well as desktop. Text and controls should not overflow their containers; fixed-format editors, boards, and toolbars should keep stable dimensions.
Review the result
Check that the main job and next action are obvious. Look at the default, loading, empty, error, and success states that apply, and check a narrow viewport. Remove anything that competes w
常见问题
它会添加新的颜色和样式吗?
日常修改会沿用现有设计。只有在大幅新增界面或重新设计时,才会选择新的视觉方向。
好的首屏应该是什么样的?
技能说明,首屏应当显示用户所在的位置、当前工作以及接下来需要的操作。
为了解决杂乱,我该增加标签页或卡片吗?
不要。技能说明,不应通过增加更多卡片、标签页或说明文字来解决结构不清的问题。
详情
作者的原始描述
Product-specific interface design for an Agent-Native app. Use when creating or changing any user-facing UI, including screenshot feedback, copy or density cleanup, settings, controls, or a visual redesign.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13161
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …