Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

design设计

Agent Skill

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

总安装

612

周安装

25

GitHub Stars

4,237

下载量

196
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tw93/claude-health --skill design

简介

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。

  • 适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。
  • 使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。
  • 适用于需要提升界面设计质量和一致性的产品开发场景。
  • 支持主流 AI 编程工具集成使用。

SKILL.md

Design: Build It With a Point of View

Prefix your first line with 🥷 inline, not as its own paragraph.

If it could have been generated by a default prompt, it is not good enough.

Screenshot Iteration Mode

Activate when the user sends a screenshot or image alongside a complaint ("这里很丑", "这个不对", "fix this", "looks wrong"). The existing product is the direction. Skip the five-question direction lock.

Flow:

  1. Read the screenshot. State the problem in one sentence: what specifically looks wrong (spacing, contrast, alignment, typeface, color).
  2. Wait for the user to confirm the diagnosis before touching code.
  3. If the diagnosis is a known UX problem (split-view sync, infinite scroll, virtualised list, sticky header), spend one round surveying how 2-3 mature products in the same category solve it before writing code. Cite what each does. Skip only if the fix is purely cosmetic (color, spacing, copy).
  4. Find the responsible code: grep for the component name or class, read the actual file. Do not rely on memory or assumptions about file location.
  5. Apply the minimal fix. One component, one issue.
  6. Ask the user to verify in the browser. Do not hand off without this step.

Boundary: if the fix requires changing 3 or more components, or if it reveals a direction problem rather than a specific bug, pause and run the full direction lock before continuing.

Lock the Direction First

Before writing any code, ask the user directly, using the environment's native question or approval mechanism if it has one:

  1. Who uses this, and in what context? Analyst dashboard differs from landing page or onboarding flow. See "App shell exception" below if the answer is a sidebar + main workspace layout.
  2. What is the aesthetic direction? Name it precisely: dense editorial, raw terminal, ink-on-paper, brutalist grid, warm analog. "Clean and modern" is not a direction. If the user names a reference site or product ("feels like Linear / Claude.ai / Vercel"), do not accept it as a direction -- extract 3 concrete properties from it: button radius philosophy, surface depth treatment (shadow vs background step vs border), and accent color family. Name those instead. Shortcut when the reference is a well-known brand (Linear, Stripe, Claude, Vercel, Apple, Tesla, Notion, Figma, Airbnb, Spotify, and ~56 others catalogued in awesome-design-md -- see the brand preset section in references/design-reference.md): ask the user whether to pull the curated preset via npx getdesign@latest add <brand>. If they approve, run it, read the generated DESIGN.md at project root, then do the 3-property decomposition against that file rather than from memory. The preset is a starting point, not a direction -- the user still names the aesthetic precisely, and this skill's reflex-font blocklist and absolute bans still win on any conflict.
  3. What is the one thing this leaves in memory? A typeface, color system, unexpected motion, asymmetric layout. Pick one and make it obvious.
  4. What are the hard constraints? Framework, bundle size, contrast minimums, keyboard accessibility.
  5. What is the signature micro-interaction? Scale on press, staggered reveal, or contextual icon animation. Pick one and know exactly how it's implemented.

Do not proceed until all five are answered.

Source repo as reference

When the user provides a repository URL or pastes source code of an existing product to recreate or extend: the file tree is a menu, not the meal. Do not reconstruct the UI from memory or training data. Instead, read the actual source:

  • Theme and token files: theme.ts, colors.ts, tokens.css, _variables.scss, or equivalent
  • Global stylesheets and layout scaffolds
  • The specific components the user mentioned

Lift exact values: hex codes, spacing scale entries, font stacks, border radii. A rough approximation is not pixel fidelity.

Only attach the target component folder or package. Exclude .git, node_modules, dist, and lock files. Dragging in an entire monorepo pollutes the context with irrelevant code and degrades output quality.

App shell exception (sidebar + main workspace)

When the answer to question 1 is an app shell (Slack, Linear, Notion class):

  • Decorative backgrounds default to off
  • Surface hierarchy uses background-color steps and shadow only
  • All interactive elements get active:scale-95
  • Button radius is consistent within each component type (pick one: pill, square, or one fixed value -- do not mix)
  • Commit to a named radius scale before the first component (see Border radius system in references/design-reference.md)

State the chosen direction in one sentence, then load references/design-reference.md and check the tech stack conflicts table. Name the single CSS strategy before writing the first component.

Summarize the direction as three lines before writing any code:

  • Visual thesis: mood, material, and energy in one sentence (e.g. "warm brutalist editorial with high-contrast ink type and rough paper texture")
  • Content plan: hero -> support -> detail -> final CTA, one line each. For app/dashboard surfaces: skip the marketing structure, default to utility mode (orient, show status, enable action), no hero unless explicitly requested.
  • Interaction thesis: 2-3 specific motion ideas that change how the page feels (e.g. "hero text slides in on load, section headers pin while content scrolls beneath, CTA pulses on hover")

For production or multi-page UIs, expand the thesis into the 9-section DESIGN.md scaffold in references/design-reference.md (theme, palette, typography, components, layout, depth, do/don't, responsive, prompt guide). For a single component, the three lines are sufficient.

Non-Negotiable Constraints

references/design-reference.md is already loaded during direction lock. It owns the full rules: typography, OKLCH color, motion timings, layout defaults, CSS-pattern bans, accessibility baseline, and complexity matching. Apply them. Do not restate them here.

Mid-Build Checkpoint

After every third component or one complete page section (whichever comes first), stop and check:

  1. Re-read the visual thesis (mood, material, energy) stated during direction lock.
  2. Ask: does what is on screen right now match that thesis, or has it drifted toward a generic default?
  3. If drifted: identify the specific element that broke first (typeface, color choice, card treatment, spacing) and fix it before continuing.

Do not wait until handoff to run the AI Slop Test. Catching drift early costs one component; catching it at handoff costs the entire build.

When Asked For Options

Give at least 3 variations, spread across genuinely different dimensions:

  • Dimensions to vary: visual density, typographic personality, color temperature, layout structure, motion character, amount of decoration, level of abstraction
  • Mix approaches: one option that follows existing conventions closely, one that remixes the brand DNA in a new way, one that is deliberately unexpected
  • Progress from basic to bold: the first option is safe and understandable; later options push further
  • Three options that differ only by accent color are not three variations. Vary the layout, the typeface, the motion, the surface treatment.

Gotchas

What happenedRule
Used Inter as the display fontIt communicates nothing. Pick something with a personality.
Three cards, identical shadows, identical padding -- a templateIf swapping content doesn't require layout changes, redo it.
Claimed it looked right without opening a browserCode correct in your head can look broken in the browser. Open it.
Chose glassmorphism, ignored the mobile constraintbackdrop-filter is expensive on low-power devices. Name the tradeoff.
Colors that "go with everything" go with nothingCommit to a dominant color plus one sharp accent.
State transitions jittered because element sizes changed per stateAll states must occupy the same layout footprint; use min-height or fixed dimensions.
Brand disappeared when the nav was hiddenBrand test: if the first viewport could belong to another brand after removing the nav, the branding is too weak.
Copy-heavy hero that nobody readsIf deleting 30% of the copy improves the page, keep deleting. Each section gets one job: explain, prove, deepen, or convert.
Dashboard built like a marketing pageApp/dashboard surfaces need utility copy and a working surface first. No hero section by default.
Every project ended up with the same lookVary light/dark, serif/sans, dense/spacious. If it could have been the last project, it is not designed for this one.
Heavy border: 1px solid on every container, flat buttons, no depthThis is 2015 UI kit default. Replace with shadow-step depth, active:scale-95 on buttons, translucent borders (border/30).
Light-mode app: white panel on white background, visually indistinguishableAdjacent nested surfaces must differ visually. Either background step (sidebar vs main ≥4% lightness difference) or shadow minimum 0 1px 3px rgba(0,0,0,0.10).
Added an extra section because it "felt incomplete"Ask first. The user knows their audience; you do not. If you think more content would help, surface the suggestion as a question, do not ship it unilaterally.
Tried to generate a logo, app icon, or brand illustrationIcons, naming, and brand identity require human taste and judgment. Use a labeled placeholder and ask the user to supply the real asset.
Moved tab bar / sidebar to a new edge, neighbours overlapped or resized awkwardlyRepositioning a chrome element changes the bounding box of every neighbour. After the move, re-measure the safe area against window controls (traffic lights on macOS), title, and any floating overlays. Verify at narrowest supported width.

Handoff

Run these litmus checks before writing the handoff summary:

  • Is the brand or product unmistakable in the first screen?
  • Is there one strong visual anchor (real imagery, not a decorative gradient)?
  • Can the page be understood by scanning headlines only?
  • Does each section have one job?
  • Are cards actually necessary, or just default styling?
  • Does motion improve hierarchy or atmosphere, or is it ornamental?
  • Would the design still feel premium if all decorative shadows were removed?
  • AI Slop Test: scan the first screen for default patterns that scream "AI made this." Examples (not exhaustive): reflex font (Inter, DM Sans, Outfit...), purple-to-blue gradient, centered hero with two CTAs side by side, three identical cards, top nav logo-left-links-center-action-right, decorative gradient with no real imagery. If any appear unintentionally, the direction is not committed enough. Fix typography, color, or layout until none remain.

If any check fails, fix it first. Then revisit the common traps list from references/design-reference.md (already loaded during direction lock; do not re-read the file). Then ask the user to open the result in a browser and confirm it looks right at full width. Also check at 375px width: resize the browser or use DevTools device emulation. If the layout breaks, content overflows, or text is unreadable at mobile width, fix it before handing off. Do not hand off until both checks pass.

End with:

  • Aesthetic direction, named and justified in 2-3 sentences
  • Non-obvious choices explained: typeface, color decisions, layout logic
  • Instructions for replacing placeholder content with real content

After handoff, stop. Do not iterate unless the user requests changes.

Print Typography Mode

Activate when: resume, white paper, one-pager, PDF, print, spacing, typography, or styled HTML document

Lock three constraints first:

  1. Target page count (e.g., "one page strict" vs "flexible length")
  2. Typography direction: dense editorial (1.1–1.3), reading-focused (1.5+), or hybrid
  3. Whitespace hierarchy: which gaps should differ most?

Then measure and suggest:

  • Line-height tuning with page-savings math (e.g., "1.8 → 1.45 saves 3 lines per page")
  • Padding/margin scale audits (enforce 4px–12px–16px bands, no random 7px)
  • Em-dash → en-dash substitution (optical weight reduction)
  • Font rendering diagnostics (synthetic bold detection, fallback chains)

Output: specific CSS changes with before/after line counts.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.28%
按下载量换算73

Claude

27.16%
按下载量换算53

Cursor

18.24%
按下载量换算36

Gemini CLI

8.56%
按下载量换算17

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

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

安装前确认

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

来源信息

继续浏览同类 Skills