Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

add-ui添加用户界面

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

544

周安装

22

GitHub Stars

14

下载量

171
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:add-ui(添加用户界面)
来源仓库:https://github.com/aladicf/better-web-ui
仓库路径:skills/add-ui
安装命令:
npx skills add https://github.com/aladicf/better-web-ui --skill add-ui
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aladicf/better-web-ui --skill add-ui

简介

add-ui 用于辅助界面设计、视觉规范和交互体验优化,提升前端组件层级合理性。

  • 适用于产品页面结构梳理、UI 方案生成和视觉一致性检查等设计相关任务。
  • 需结合品牌规范、设计系统和用户场景使用,避免堆砌装饰性元素。
  • 涉及真实页面改动时,应通过截图或浏览器预览验证文本溢出和对齐效果。
  • 依赖 frontend-design 上下文加载,无设计基础时应先执行 setup 流程。

SKILL.md

MANDATORY PREPARATION

Users start this workflow with /add-ui. add-ui is the canonical skill name in this repository. Some hosts may expose a friendly /add alias, but docs, wrappers, and source files should continue to refer to the skill as add-ui.

Once this skill is active, load $frontend-design — it contains the design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding. If no design context exists yet, you MUST load $setup first.

When the request is for a brand-new landing page, marketing page, or several distinct directions and the aesthetic is still open, use the approved style-selection rules in frontend-design's design directions. Choose directions that fit the product idea and brand context instead of inventing vague vibe labels.

When working inside an existing project with an established visual system, preserve that system first and make the options feel distinct without quietly rebranding the product.

Also gather the smallest set of implementation details needed to generate usable code:

  • framework / runtime (React, Next.js, Vue, plain HTML, etc.)
  • styling system (Tailwind, CSS modules, styled-components, vanilla CSS, etc.)
  • target insertion point (new route, existing page, shared component folder, design system area)
  • whether this is a brand-new artifact or a redesign of an existing one
  • whether the user wants a section, page, flow, shell, or standalone component
  • quality bar (quick draft, production-ready, flagship)

If the request is a redesign of an existing artifact, also identify:

  • which parts must remain recognizable (content blocks, section order, interaction model, familiar affordances, brand cues)
  • which parts are flexible (style, colors, copywriting, typography, media treatment, density, detail language)
  • whether the user wants mostly safe evolution, a broad explore-and-compare pass, or one or two stretch directions

Use this precedence order when deciding implementation defaults:

  1. detect and match the existing project's styling and component libraries first
  2. if this is a brand-new project and the user explicitly names a styling or component library, use that
  3. if this is a brand-new project and the user does not specify, use the framework defaults defined in frontend-design

When React-based fallback defaults are relevant, also consult component library integration to decide whether the requested artifact should be led by primitives, reusable patterns, or block accelerators.

Ask only the missing questions. If you can infer the technical stack from the codebase, do so.

Consult these references as needed:

Use these deterministic helper assets when they improve consistency across hosts and agents:


Generate multiple meaningfully different UI directions for a requested artifact, help the user compare them, then guide selection and integration.

This includes both adding new UI and redesigning existing UI.

When the request is to redesign an existing page, section, flow, shell, or component, default to preserving the artifact's recognizable bones unless the user explicitly asks for structural reinvention. In practice that usually means:

  • keep the core information architecture, content blocks, and sequence intact when they already support the job to be done
  • keep familiar interactions and affordances unless they are clearly broken or the user asks for a larger UX shift
  • evolve the visual system through typography, color, copy framing, media treatment, detail language, spacing rhythm, and emphasis strategy
  • make it obvious across the options what stayed constant and what changed

If one variant intentionally pushes further on structure, label it clearly as the stretch option instead of quietly bulldozing the existing page.

This skill is for requests like:

  • marketing and monetization surfaces: hero, features, pricing, testimonials, FAQ, CTA, logo cloud, gallery, blog, about, contact, plan pickers, upgrade modals, paywalls
  • navigation and shell: navbar, footer, dashboard shell, onboarding feed, settings, card nav
  • auth and account: login, register, forgot password, reset password, verify email, two-factor auth
  • commerce: product overview, product category, product list, filters, cart, checkout, reviews, order summary, gift card
  • data UI: charts, widgets, data tables, forms, compare views, bento grids, timelines, dashboards

The list is illustrative, not exhaustive.

Core Operating Rules

  1. Generate real alternatives, not recolors

- Variations must differ in layout, hierarchy, density, tone, interaction model, and content framing. - Changing only palette, border radius, or icon set does not count as a new direction.

  1. Start from the requested job to be done

- A pricing section is not just cards. - A login screen is not just inputs. - A dashboard shell is not just chrome. - Anchor every variant in the user's primary task and the product's tone. - For broad new-project marketing requests, choose approved design directions that fit the company / product idea and explain the fit.

  1. Prefer source-based previews over ephemeral DOM tricks

- If the host supports previews, generate real components/pages/routes the user can inspect and choose from. - Do not rely on browser-extension-style DOM injection as the primary workflow. It is fragile and does not create maintainable source code.

  1. Stay opinionated

- better-web-ui optimizes for distinctive, high-taste output. - Do not collapse into the safest possible generic SaaS layout. - Use the frontend-design anti-pattern guidance aggressively.

  1. Be integration-aware

- Match the project's existing code conventions and folder structure. - If a shared UI system already exists, plug into it instead of creating random one-off primitives. - If repeated structure emerges across variants, extract sensible shared pieces.

  1. Honor preserve-the-essence requests

- If the user says to keep the essence, keep the recognizable structure, key parts, and narrative flow unless they explicitly invite a deeper overhaul. - Distinct directions can still be genuinely different through type, color, copy, density, proof treatment, surface styling, media direction, and action emphasis. - Do not mistake “give me options” for permission to discard the existing architecture.

Workflow

1. Classify the request

Use the artifact taxonomy to determine whether the user is asking for a section, page, flow, shell, or data/content component.

Also determine whether this is:

  • a net-new artifact
  • a redesign of an existing artifact with structure mostly preserved
  • a redesign that allows moderate restructuring
  • a redesign that invites a full rethink

Then identify:

  • primary user goal
  • core content blocks
  • critical states (loading, empty, error, success, validation, responsive layout)
  • placement context (new page, inside existing page, inside dashboard, inside marketing site)
  • which structural elements are fixed versus flexible
  • which current qualities should remain recognizable versus which should change

2. Define 5 distinct directions

Generate 5 candidate directions. Fewer than 3 reduces exploration; more than 5 becomes noise.

Use the variation quality bar to ensure the five directions are meaningfully different rather than cosmetic recolors.

When the request says to preserve the existing structure or essence, treat the current artifact as the baseline skeleton. The directions should primarily vary through visual system and messaging decisions rather than by deleting or reordering the page without permission.

For that kind of redesign, distinct options can differ through combinations of:

  • typography and font pairing
  • palette and contrast strategy
  • copywriting tone and headline framing
  • proof placement and emphasis
  • density and spacing rhythm
  • imagery or illustration treatment
  • surface styling, borders, depth, and detail language
  • action hierarchy and CTA presentation

Each direction must have:

  • Name: short, memorable, concept-led
  • Approved direction: the primary structural direction and any supporting treatment when relevant
  • Design thesis: one sentence explaining the idea
  • Why it works: how it supports the user's goals
  • Key traits: hierarchy, layout, density, personality, media treatment, action strategy
  • Best fit: when this direction should be chosen over the others
  • Style cost: the main implementation, performance, or state-management cost to watch

For redesigns of existing artifacts, also state:

  • Preserved bones: what remains intentionally recognizable from the current artifact
  • Primary changes: what is being pushed hardest in this direction

3. Build real candidate artifacts

For each direction, generate a real artifact package.

Prefer:

  • real component files
  • real route/page files
  • real preview shells that switch between variants
  • real data mocks or placeholders when needed to make the UI legible

When redesigning an existing artifact, fork from the real current implementation when practical instead of rebuilding the whole thing from scratch. Preserve the requested structure first, then layer the design changes on top.

Use the preview and apply patterns to decide how to structure previews, fallback comparison formats, and final integration.

4. Make the variants truly comparable

For every variation, include the same practical checkpoints:

  • responsive behavior
  • accessibility expectations
  • key interaction states
  • content placeholders or example copy
  • implementation notes
  • any required supporting components

For redesigns, also include:

  • a short note about what remained structurally consistent
  • a short note about what changed visually or editorially

Do not let one option be a sketch while another is production-grade. Compare like with like.

5. Recommend, then let the user choose

After generating the options:

  1. summarize the tradeoffs in a compact table
  2. recommend one option if the user's goals clearly favor it
  3. let the user choose explicitly when multiple directions are viable

Your recommendation should explain why the chosen direction best matches:

  • audience
  • product tone
  • information density
  • conversion or usability goals
  • maintainability in the current codebase

6. Apply the chosen direction cleanly

Once a direction is selected:

  • integrate it into the requested target location
  • preserve project conventions and imports
  • extract repeated primitives if they are genuinely reusable
  • remove obviously dead temporary scaffolding unless the user wants to keep the alternatives around
  • keep preview artifacts only when they remain useful for future iteration

When a reusable pattern emerges, apply the spirit of extract — but do not build a bloated design system for one request.

Use the request mapping heuristics for artifact-specific priorities such as hero sections, pricing, paywalls, auth, dashboards, commerce flows, and content surfaces.

Output Contract

Whenever possible, present results in this order:

  1. What I generated — requested artifact + number of directions
  2. Variation summary table — 1/2/3/4/5 with thesis and best-fit use case, using the comparison table template when helpful
  3. Recommended choice — if appropriate
  4. Preview/apply notes — how to inspect or switch among variants
  5. Implementation output — created/updated files

Use the variant naming scheme to keep labels, file names, and selection mapping deterministic. Use the preview page checklist when building a preview surface. Use the apply / cleanup checklist after the user selects a direction.

Never Do This

  • generate 5 near-identical variants with cosmetic differences only
  • inject temporary browser DOM as the main implementation strategy
  • ignore the existing codebase structure and styling system
  • bulldoze an existing artifact's structure after the user asked to preserve its essence or recognizable parts
  • default to generic startup aesthetics just because the prompt is broad
  • default to retro, cyber, synthwave, terminal, or generic futuristic-neon directions in this library
  • make every option loud, card-heavy, gradient-heavy, or animation-heavy
  • skip loading/error/empty/responsive-layout states when they materially affect the artifact
  • apply a chosen variant without making it clear what changed

Remember: this skill is not a slot machine for interchangeable UI. It is a structured exploration workflow that helps the user choose among genuinely different, production-credible directions and end up with maintainable source code.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.86%
按下载量换算61

Claude

32.94%
按下载量换算56

Cursor

18.11%
按下载量换算31

Gemini CLI

10.13%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills