Token导航 LogoToken导航

Agent Skill · 前端设计

add-ui(添加用户界面)

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

add-ui 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 6,173。

总安装 544周安装 22GitHub Stars 14下载 171核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

add-ui 用于辅助界面设计、视觉规范和交互体验优化,提升前端组件层级合理性。适用于产品页面结构梳理、UI 方案生成和视觉一致性检查等设计相关任务。需结合品牌规范、设计系统和用户场景使用,避免堆砌装饰性元素。涉及真实页面改动时,应通过截图或浏览器预览验证文本溢出和对齐效果。

依赖 frontend-design 上下文加载,无设计基础时应先执行 setup 流程。

来源仓库内路径:skills/add-ui

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aladicf/better-web-ui --skill add-ui;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

add-ui 怎么安装?

在终端执行 npx skills add https://github.com/aladicf/better-web-ui --skill add-ui。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

add-ui 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

add-ui 需要什么权限?

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

add-ui 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

add-ui 用的人多吗?

公开数据是累计安装 544 次,近一周安装 22 次,下载 171 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

add-ui 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
add-ui

添加用户界面 · 本页

54414操作浏览器未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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.

平台分布

Codex

35.86%
按下载量换算61

Claude

32.94%
按下载量换算56

Cursor

18.11%
按下载量换算31

Gemini CLI

10.13%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills