anthropics/skills180kfrontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
前端开发
The house rules for ANY design or UI work - the verification protocol (run the gate, never claim a number), the absolute no-emoji rule, token by intent, one shared theme, the eight states, one thing leads, and output completeness. Load this FIRST whenever building, reviewing, or theming a screen, component, or token set. Installed as a plugin, this skill carries what CLAUDE.md carries in the repo.
把这段话发给 Claude Code、Codex 或 Cursor。智能体会先检查安全性,你确认后才安装。
读取 https://funcoding.ai/skills/plugin87/ux-ui-agent-skills/design-doctrine/install.md ,按里面的步骤帮我安装这个 Skill。
Step 0 — is the kit here? This skill reads files from the kit. Check once:
ls ${CLAUDE_SKILL_DIR}/../../../tokens >/dev/null 2>&1 && echo KIT_OK || echo KIT_MISSINGOnKIT_MISSINGonly the skill folders were installed, which is whatnpx skills adddoes. Say so plainly, point the user atnpx ux-ui-agent-skills initor the plugin install, and stop. Do not guess the contents of a file you could not open.
A plugin's root CLAUDE.md is not loaded as project context, so the always-on
brief travels here instead. Read this before the first line of any design work,
then load the rule file for the territory you are actually in.
node ${CLAUDE_SKILL_DIR}/../../../scripts/verify_states.mjs <file> [--dark]
measures default, hover and focus - a button that passes at rest can fail on hover.node ${CLAUDE_SKILL_DIR}/../../../scripts/accuracy_report.mjs.
Report the real N/N line. It is all-or-nothing.node ${CLAUDE_SKILL_DIR}/../../../scripts/verify_responsive.mjs <file|dir> -
no horizontal overflow at 280/320/414px./critique, look at the work yourself, and start from the taste
preflight below rather than from default components.SKIPPED and exits 0, reporting nothing. Run single render gates behind
DS_REQUIRE_BROWSER=1 so that becomes REQUIRED, FAILING, and fix it with
npx playwright install chrome rather than by removing the flag.Base styles ARE the phone layout. Wider screens are layered on with min-width.
max-width is not banned - it is right for a genuine narrow refinement, or for a
range between two breakpoints - but a desktop-first stylesheet, where the base
assumes a wide screen and mobile is patched in afterwards, is a bug.
Measured by ${CLAUDE_SKILL_DIR}/../../../scripts/verify_mobile_first.mjs, which
removes every @media and @container rule and renders what is left at 320px. A
mobile-first page passes because its base already is the phone layout. A
desktop-first page cannot fit.
Never ship a native <select>. It draws its own chevron, pressed against the
control's edge with no breathing room, and appearance: none plus a custom
chevron fights the platform instead of matching the system. Use the Listbox or
Combobox pattern in
${CLAUDE_SKILL_DIR}/../../../components/forms-advanced.md: a button trigger
that announces the current value, the chevron placed with inner padding from
tokens, and full keyboard parity (typeahead, arrows, Home/End, Escape,
aria-expanded that really toggles something visible). Losing native select
means accessibility stops being free, so the replacement has to pass every state,
keyboard and axe gate before it counts. Measured by
${CLAUDE_SKILL_DIR}/../../../scripts/lint_native_select.py.
Never a colored border on one side only of a card, alert, toast or callout -
border-left, border-right, border-top, border-bottom, or the logical
border-inline-* and border-block-* forms. The tinted 3-4px bar is a
generated-UI cliche in every direction, not only on the left: it is decoration
standing in for hierarchy the layout never established. Use a full hairline
border on all sides, or surface and elevation separation, and carry status with a
real icon plus text, never colour alone. Measured on the render by the one-sided
accent-border tell in
${CLAUDE_SKILL_DIR}/../../../scripts/slop_tells.mjs.
The gates cannot see this half, so it has to be decided rather than discovered. Write the block into your reply, then build to it. Generating first is where generated-looking work comes from.
Domain: fintech | editorial | dev-tool | healthcare | consumer | ...
Audience & tone: expert vs first-time, calm vs energetic, premium vs utilitarian
Mood: the one adjective the result must earn - "expensive", "precise", "warm"
Motion depth: none | subtle feedback | expressive choreography
Layout family: the section sequence you will use, named, varied per section
Reference anchor: an archetype or named system to aim at
Break each of these deliberately; they are defects, not starting points.
#000 on #fff. Off-black on warm-white, from the theme.Depth, and the full Variance Mandate:
${CLAUDE_SKILL_DIR}/../../../taste/design-taste.md. For a whole page or app,
use design-screen, which runs this preflight as step 1 of the pipeline.
ABSOLUTE: zero emoji in any output - UI, code, JSON, copy, comments, commit messages. Not as an icon, a bullet, a status dot, or "polish". Emoji are the number-one tell of machine-generated work. Use a lucide icon (inline SVG,
currentColor) or plain words. Enforced by${CLAUDE_SKILL_DIR}/../../../scripts/check_no_emoji.py.
action.destructive in every
place they appear - the trigger and the confirm dialog both. A blue Delete is a
bug. Measured by ${CLAUDE_SKILL_DIR}/../../../scripts/lint_intent.mjs.${CLAUDE_SKILL_DIR}/../../../tokens/*.json through one CSS-variable layer imported once at the app root.
No per-page palette, no hardcoded hex, px, or timing.User needs, then accessibility, then consistency, then aesthetics, then developer experience. Never sacrifice a higher tier for a lower one. Beautiful but inaccessible is broken; consistent but confusing is the wrong pattern.
| Read it when | File |
|---|---|
| Tokens, palettes, theming, dark mode, any colour decision | .claude/rules/tokens-and-color.md |
| Type scale, line length, the 4px spacing rhythm | .claude/rules/typography-and-spacing.md |
| Building any screen or component, composition, empty states | .claude/rules/components.md |
| Auditing, or finishing any interactive element | .claude/rules/accessibility.md |
| Generating code for React, Next.js, SwiftUI, or any adapter | .claude/rules/frameworks.md |
| Design review, prototyping, research, handoff | .claude/rules/review-and-research.md |
| Aesthetic direction, motion, voice and tone, governance, QA | .claude/rules/brand-and-operations.md |
Then pick the runnable skill for the job: design-tokens, design-component,
design-code, design-review, a11y-audit, apply-aesthetic, brandkit,
image-to-code, redesign, and the rest. Interrogate the brief first with
/grill-me; prove the result with /gate; judge it with /critique.
anthropics/skills180kGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.
前端开发
anthropics/skills180kSuite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
前端开发
addyosmani/agent-skills103kGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.
前端开发
addyosmani/agent-skills103kBuilds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.
前端开发
addyosmani/agent-skills103kOptimizes application performance across frontend, backend, queries, and databases. Use when performance requirements exist, when you suspect performance regressions, when Core Web Vitals or load times need improvement, when N+1 query patterns need fixing, or when profiling reveals bottlenecks.
前端开发
nexu-io/open-design100kOpenDesign's feature business case for the plugin marketplace: the user pain, options, tradeoffs, and the measure of success. Built as a decision-grade product management deck for PM, eng, design, leadership.
前端开发