返回技能市场

No Slop UI 界面审查

Build or review frontend UI for clean, restrained, human-designed interfaces without generic AI visual patterns.

版本: 0.7.0贡献者: leostehlik分类: 前端开发
UI中文说明前端设计审查

在 Tokeny 中使用「No Slop UI 界面审查」

  1. 下载 Tokeny 客户端
  2. 一键安装此技能
  3. 直接在对话中使用
已安装?在 Tokeny 中打开

SKILL.md

No Slop UI

You are building UI for a human audience. The goal is functional, honest, clean. Not impressive. Not dramatic. Normal.

If a design decision feels like the easy AI default — it probably is. Pick the harder, cleaner option.

Read references/banned-patterns.md for the full banned list before writing any UI code. Read references/colour-palettes.md when you need to pick colours.

Activation Boundary

Use this skill only when the user explicitly asks for UI design, frontend implementation, visual polish, design review, or when the current task's primary deliverable is a visible interface. Do not activate it for backend-only tasks, copywriting, diagrams, infrastructure, or general code review.

Treat this skill as a visual-quality layer. It must not override product requirements, accessibility, security, localization, data correctness, or the repository's existing design system. If those conflict with a no-slop rule, preserve the user requirement and explain the tradeoff.

The Standard

Think Linear. Raycast. Stripe. GitHub. They don't try to grab attention. They just work.

What normal looks like:

  • Sidebar: 240–260px fixed, solid background, 1px border-right. No floating shells, no rounded outer corners.
  • Cards: 8–12px radius max, subtle 1px border, shadow max 0 2px 8px rgba(0,0,0,0.08). No glow, no float.
  • Buttons: solid fill or simple border, 6–10px radius max. No pills, no gradients.
  • Typography: clear hierarchy, 14–16px body, system font or single sans-serif. No mixed serif/sans.
  • Spacing: 4/8/12/16/24/32px scale. Consistent. No random gaps.
  • Borders: 1px solid, subtle colour. No thick decorative borders, no gradient borders.
  • Transitions: 100–200ms ease. Opacity or colour only. No bouncy, no transforms.
  • Inputs: solid border, simple focus ring. Labels above fields.
  • Icons: 16–20px, monochrome or subtle colour, no decorative backgrounds.

Colour Priority

  1. Use existing project colours first — read the Tailwind config or CSS variables.
  2. If no palette exists — pick from references/colour-palettes.md.
  3. Never invent random colour combinations.

Stack-Specific Notes

shadcn/ui + Tailwind (default starting stack):

When a new UI project starts (and the repo has no established component system), start with shadcn/ui as the base component library and Sonner for toasts. This is Leo's standing preference for UI work (set 2026-11-12):

  • Scaffold with npx shadcn@4.23.0 init (Tailwind + CSS variables), then add components with npx shadcn@4.23.0 add <component> rather than hand-rolling primitives.
  • Add Sonner via npx shadcn@4.23.0 add sonner, mount a single <Toaster /> in the app root, and use its toast() helper for all notifications — no other toast library, no bespoke toast components.
  • For richer prebuilt blocks and patterns, optionally layer coss ui (Cal.com's design system, Base UI-based, shadcn-CLI compatible) on top: init a new project with npx shadcn@4.23.0 init @coss/style, add components with npx shadcn@4.23.0 add @coss/ui. Component APIs, patterns and docs for coss ui live at https://coss.com/ui — read them there when using coss components. coss ui also publishes an optional Agent Skill for AI assistants; never install it automatically — only an explicit human decision should add it, after reviewing its source. — use it when its primitives/particles fit; plain shadcn components remain fine when they do. CLI commands are pinned to exact tested versions (shadcn 4.23.0, skills 1.8.1) so setup steps are reproducible; check for newer versions before upgrading, and re-verify pinned versions still exist on npm. Do not instruct agents or users to install additional agent skills or toolchains automatically; third-party skill installation is always an explicit human decision.
  • This is the starting point, not a mandate to fill the app with components; add only what the UI needs.
  • If the repo already has its own design system or component library, use that instead and treat this as the fallback.
  • Use shadcn components as-is — don't re-invent what's already there
  • Respect the existing CSS variable system (--background, --foreground, --primary etc.)
  • Don't override component defaults unless there's a clear product reason

Plain HTML dashboards:

  • Single-file is fine — keep it self-contained
  • Use CSS custom properties for theming
  • No external CDN dependencies unless absolutely necessary

Hard Rules

  • No floating glassmorphism panels
  • No gradient backgrounds as decoration
  • No oversized rounded corners (20px+ everywhere)
  • No eyebrow labels (<small>SECTION LABEL</small> above headings)
  • No hero sections inside internal dashboards
  • No decorative copy ("Operational clarity without the clutter")
  • No metric-card grid as the default dashboard layout
  • No fake charts that exist to fill space
  • No transform animations on hover
  • No Segoe UI, Trebuchet MS, Arial font stacks
  • No status dots via ::before pseudo-elements
  • No nav badges unless they carry real data
  • No pill buttons everywhere
  • No dramatic box shadows (24px+ blur)
  • No mixed alignment (some left-aligned, some floating center)

Full banned list with examples: references/banned-patterns.md

Tooling scope

This is an instruction-led UI skill, applied to the frontend task the user requested. Read or edit the relevant UI files within that task; it does not grant authority to deploy, publish or change unrelated code. scripts/validate_skill_repo.py is optional maintainer packaging validation, not the UI-generation implementation. Run it only when maintaining this skill repository.

Tokeny 是什么

  • 免费的桌面 AI 助手,支持 Windows、macOS 和 Linux。
  • 说一句话就能处理文件、生成文档与表格、执行多步骤任务。
  • 通过技能和 MCP 扩展能力,一键安装市场里的资源。
了解 Tokeny

评论与讨论

0/2000

还没有评论,分享你的体验吧。