Communitygithub.com

前端设计

引导构建独特、有意的视觉设计,打造全新UI或重塑现有界面。涵盖美学方向、排版设计,以及如何做出不显模板化的选择。

前端设计 是什么?

该技能旨在引导AI代理在构建前端设计时,摆脱常见的模板化美学,做出有观点、有依据的设计决策。它提供了一个系统化的方法论,包括:从项目主题本身汲取灵感,而非套用通用风格;建立一套包含色彩、排版、布局和独特点的紧凑设计规则系统;以及进行“构思-审查-构建-再审查”的双轮工作流程,以确保每个选择都是为该特定项目定制。技能强调“克制”与“大胆”的平衡,鼓励在某一处承担真正的美学风险,同时让其余部分保持严谨。此外,它还提供了详细的撰写指南,指导如何设计界面文案以增强可用性,而非仅仅作为装饰。该技能适用于任何AI驱动的设计工具,如Claude Code、Cursor等,帮助其生成更具个性、更少AI痕迹的设计作品。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LiChangZheng10086/doyin_ai_video/tree/HEAD/.agents/skills/frontend-design

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

前端设计 是做什么的?

以小型工作室的设计负责人视角来处理此任务。该工作室以能为每个客户打造独一无二的视觉形象而闻名。这位客户已经拒绝了那些感觉模板化的提案,并愿意为与众不同的视觉观点付费:对色调、排版和布局做出深思熟虑、有主见的选择,这些选择需针对当前项目,并敢于承担一个你可以充分论证的真正美学风险。

植根于主题

如果设计简报没有明确产品或其主题,请在开始设计前自己确定:命名一个具体的主题、其受众以及页面的唯一任务,并陈述你的选择。如果你的记忆中存有用户的偏好、他们正在构建的上下文信息,或你之前做过的设计,请将它们作为提示。主题本身的世界——其材料、工具、工艺品和惯用表达——正是独特设计的源泉。始终围绕设计简报中的真实内容和主题进行构建。

设计原则

对于网页设计,主视觉区是一个论点。以主题世界中最具代表性的事物开场,采用对其有意义的任何形式:标题、图片、动画、在线演示、互动时刻。审慎选择:一个大数字配一个小标签、支撑性统计数据和渐变强调色是模板化的答案,只有在它确实是最佳选择时才使用。

排版承载着页面的个性。有目的地搭配展示字体和正文文字,不要使用你在其他项目中随意选择的同一字体家族,并设定清晰的字体层级,包括有意的字重、字宽和间距。让字体处理本身成为设计中令人难忘的部分,而不是中性的内容载体。

结构即信息。结构性元素、编号、眉题、分隔线、标签,都应编码有关内容的真实信息,而非装饰。许多通用设计使用编号标记(01 / 02 / 03),但这仅当内容确实是一个序列时才合适——比如一个真实的过程或带有时间顺序的时间线,其中顺序承载了读者需要的信息。在采用编号标记等选择前,要质疑它们是否真的合理。

审慎地运用动效。思考动画能否以及如何服务于主题:页面加载序列、滚动触发显示、悬停微交互、环境氛围。一个有编排的动效通常比零散的效果更能打动人;根据设计方向来选择。然而,有时少即是多,多余的动画会让人觉得设计是AI生成的。

使复杂度与愿景相匹配。华丽的方向需要精心的执行;简约的方向需要间距、排版和细节上的精确。优雅在于出色地执行所选的愿景。

仔细考虑文案内容。设计简报通常不包含真实内容,你需要自己编写文案。文案本身也可能使设计显得模板化。关于文案撰写,请参考下文。

流程:构思、探索、规划、评审、构建、再评审

作为校准:当前AI生成的设计主要集中在三种风格上:(1) 暖奶油色背景(接近#F4F1EA),搭配高对比度衬线展示字体和陶土色强调色;(2) 近黑色背景,搭配单一亮酸绿色或朱红色强调色;(3) 大报风格布局,细线规则、零边框半径和密集的报纸式栏目。这三种风格对某些项目来说都是合理的,但它们是默认选项而非有意选择,并且它们与主题无关。如果设计简报确定了视觉方向,请严格遵循——简报中的用语永远有效,即使它要求使用上述风格之一。如果简报在某个维度上没有指定,不要将自由度浪费在这些默认选项上。就像受雇的人类设计师一样,通常在发挥自己所擅长和将每个项目视为实验和学习机会之间,需要谨慎权衡。

分两轮进行。首先,根据用户的设计简报构思一个简短的设计方案:创建一个紧凑的标记系统,包括色彩、排版、布局和独特点。色彩:用4-6个命名的十六进制值描述调色板。排版:至少2个角色的字体(一个有限使用的、有特色的展示字体;一个互补的正文字体;以及一个用于注释或数据的实用字体,如果需要)。布局:用一句话的文字描述和ASCII线框图来构思和比较布局概念。独特点:页面将因之而被记住的一个独特元素,以恰当的方式体现项目本质。

然后在构建前对照简报评审该方案:如果方案中的任何部分读起来像是你为任何类似页面生成的通用默认方案(通过类似提示执行以查看是否得出相似结果),而不是为此特定项目做出的选择,请修改该部分,说明你更改了什么以及原因。只有在确认你的设计方案的相对独特性后,才开始编写代码,并严格遵循修改后的方案,从中衍生出每个色彩和排版决策。

编写代码时,请注意CSS选择器特异性的结构。很容易生成相互抵消的CSS类(尤其是像.section这样的基于类的选择器和像.cta这样的基于元素的选择器)。这在节与节之间的padding/margin上经常发生。

尽量在思考中完成这些规划和迭代,只有在你有较高信心能取悦用户时,才向他们展示想法。

克制与自我批评

将大胆之处集中于一处。让独特点成为唯一令人难忘的事物,使其周围的一切保持安静和纪律,并删减任何不为项目服务的装饰。不承担风险本身可能就是一种风险!在构建时确保达到质量底线:响应式支持到移动端、可见的键盘焦点、尊重用户减少动效的设置。在构建过程中批判自己的作品,如果你的环境支持,请截取屏幕截图——一图胜千言。考虑香奈儿的建议:出门前,照照镜子,拿掉一件配饰。人类创作者有记忆,并总是试图尝试新事物,因此如果你有空间快速记下你尝试过的内容,这将有助于你未来的迭代。

关于设计中的文案更多内容

设计中出现的文字只有一个原因:使其更易于理解,从而更易于使用。它们是设计材料,而非装饰。对待文案要像对待间距和色彩一样用心。在撰写任何内容之前,思考设计需要表达什么,以及如何最好地表达以帮助用户导航体验。

从最终用户的视角来写作。根据用户能控制和识别的内容来命名事物,切勿根据系统构建方式来命名。一个人管理的是“通知”,而不是“Webhook配置”。用简单直白的语言描述某物的功能,而不是推销它。具体总是优于聪明。

默认使用主动语态。一个控件应该准确说明它被使用时的效果:“保存更改”,而不是“提交”。一个操作在整个流程中应保持相同的名称,因此标记为“发布”的按钮会产生一个提示“已发布”。界面的词汇表就是用户导航产品的路标。凝聚力和一致性是用户熟悉产品的途径。

将失败和空状态视为引导时机,而非情绪化表达。解释出了什么问题以及如何修复,使用界面的语气而非人的语气。错误不会道歉,也绝不会对所发生的事情含糊其辞。空屏幕是一个行动的邀请。

保持语气对话式且精准:使用简单的动词、句子大小写、无填充词,语调与品牌和目标受众相匹配。让每个元素只做一件事。标签用于标识,示例用于演示,没有什么东西默默承担双重职责。

Individual skills in this repo

This repo contains 12 individual skills — each has its own dedicated page.

LiChangZheng10086/doyin_ai_video

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

LiChangZheng10086/doyin_ai_video

Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens). SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIR...

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', '.dotx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx or .dotx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.

LiChangZheng10086/doyin_ai_video

Grill me about specs for the workflows I want to build, within this workspace.

LiChangZheng10086/doyin_ai_video

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

LiChangZheng10086/doyin_ai_video

智能 PPT 生成器。支持 7 种视觉风格(乐高/波普/黏土/黑白/商务/学术/科技),具备根据内容自动推荐风格、生成大纲、绘制配图并组装成片的全自动能力。

LiChangZheng10086/doyin_ai_video

Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.

LiChangZheng10086/doyin_ai_video

Diagnose and fix React codebase health issues. Use when reviewing React code, fixing performance problems, auditing security, or improving code quality.

LiChangZheng10086/doyin_ai_video

Sentry error monitoring and performance tracing patterns for Next.js applications.

LiChangZheng10086/doyin_ai_video

Simplify and refine recently modified code for clarity and consistency. Use after writing code to improve readability without changing functionality.

LiChangZheng10086/doyin_ai_video

✅ "你知道今天所有大模型能读懂你的话,全靠一个叫Transformer的架构吗?"

LiChangZheng10086/doyin_ai_video

Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.

相关技能