360 Secure SkillHub
360 安全技能中心

No Slop UI

面向前端 UI 设计、实现与视觉审查,提供布局、颜色、排版、间距和组件规范,并列出禁用模式与参考技术栈;强调克制、清晰和可维护的界面,同时要求不覆盖产品、可访问性、安全或现有设计系统。

分类:开发
leostehlik
leostehlik
热度 65.46
最近更新 2026-11-22 23:27:19

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add leostehlik/no-slop-ui
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
no-slop-ui
description
Build or review frontend UI for clean, restrained, human-designed interfaces without generic AI visual patterns.
metadata
{"version":"0.8.0"}

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. Read references/stack-recipes.md when choosing a stack for a new interface or rebuilding an AI-looking one.

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

Proven restrained stack

For a new content-led product site or data-heavy operational interface, consider the tested composition in references/stack-recipes.md:

  • Astro for the static shell and routing
  • React islands only where interaction needs them
  • Tailwind CSS v4 for tokens and responsive layout
  • Base UI or coss ui for accessible interactive primitives
  • Inter for interface copy, Geist Mono for data and code
  • Lucide for restrained functional icons

This is a recipe, not a dependency quota. DoubleMint uses the same visual system with mostly plain JavaScript because the screen did not need a React component tree. WrenLore uses React islands because richer interactions justified them. Pick the least machinery that preserves the product behaviour.

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.