Communitygithub.com

前端設計方向

設定 ECC 專屬的前端設計方向,用於產品級 UI 工作。當建置或改善網站、儀表板、應用程式、元件、登陸頁面、視覺工具,或任何需要更強產品特定設計判斷力的網頁 UI 時使用。

前端設計方向 是什麼?

此技能針對非純功能性 UI 開發場景提供具體的設計方向指引,特別是在需要讓介面更具目的性、精緻度與產品領域適配性時。技能來源為社群 PR #1659 的設計指引精華,經 ECC 團隊重新整理與調整。它適用於各種前端專案,包括網站、儀表板、應用程式、元件、登陸頁面等,支援透過明確的設計方向選擇(目的、受眾、調性、記憶點、限制條件)來引導實作,最終產出符合產品語境的 UI。與官方 Anthropic 的 `frontend-design` 技能不同,此技能為 ECC 專屬的設計方向保留版,目標是提供更在地化、更具操作性的本地引導。它涵蓋從設計方向選擇到實作指導、反模式提醒與審查清單,協助開發者避免常見的通用設計陷阱。

相容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/frontend-design-direction

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

前端設計方向 是做什麼的?

請在開發工作不只是讓 UI 能運作,而是要讓它感覺有目的性、精緻且與產品領域相稱時,使用此技能。

來源:自社群 PR #1659(作者 linus707)搶救整理。

注意:ECC 刻意不重新打包標準的 Anthropic frontend-design 技能。若需要官方上游技能,請從 anthropics/skills 安裝。此技能是 ECC 專屬的設計方向保留版,擷取自 #1659 中有用的本地指引。

使用時機

  • 使用者要求建置網頁、應用程式、儀表板、成品、元件或 UI。
  • 使用者要求讓介面更精緻、更有特色、更美觀,或降低通用感。
  • 實作需要考量視覺層級、字體排版、色彩、動態效果、版面與互動選擇。
  • 當前 UI 功能正常,但感覺扁平、通用、模板化或與目標受眾不符。

設計方向

在編寫程式碼之前,請選擇一個明確的方向:

  1. 目的:這個介面要完成什麼任務?
  2. 受眾:誰會重複執行這個工作流程?他們首先需要掃描什麼?
  3. 調性:實用、編輯、活潑、工業風、精緻、技術感、極繁、極簡、密集、平靜,或其他明確的方向。
  4. 記憶點:一個讓結果感到有心的設計構想。
  5. 限制條件:框架、無障礙、效能、響應式、以及現有的設計系統。

讓方向與領域相匹配。SaaS 營運工具通常應該保持密集、安靜且易於掃描。作品集、發表頁面、遊戲或編輯類作品則可以更具表現力。不要將登陸頁面的編排方式強加在需要頻繁日常使用的工具上。

實作指導

  • 除非使用者明確要求行銷文案,否則第一個畫面應建置實際可用的體驗。
  • 在引入新的視覺系統之前,優先使用現有事業元件、設計令牌、圖示庫與路由模式。
  • 當介面依賴圖片、產品、地點、人物、遊戲畫面、圖表或可檢查的媒體時,請使用真實或生成的視覺素材。
  • 優先使用符合情境的字體排版與間距,而非通用的超大尺寸主視覺文字。
  • 保持調色盤多維度:避免 UI 由單一色系主導。
  • 使用 CSS 變數或現有設計令牌,使方向在各狀態下保持一致。
  • 明確設計響應式限制條件:網格、長寬比、最小/最大尺寸、固定工具欄與固定格式的控制項,不應因標籤或懸停狀態的出現而位移。
  • 節制但刻意地使用動態效果。優先選擇能釐清狀態的高訊號過渡效果,而非裝飾性動畫。
  • 在手機與桌面端驗證文字適配性。長標籤應能清楚換行或調整大小,而非溢出。

反模式

  • 不要預設使用常見的生成模式:紫色漸層、裝飾性色塊、超大卡片、模糊的主視覺文案或類似素材的罐頭媒體。
  • 不要在卡片內再放入 UI 卡片。
  • 不要在所有地方使用單一的裝飾風格。
  • 不要將主要產品、工具、物件或工作流程隱藏在通用的行銷段落之後。
  • 若非能明顯提升效益,不要為了設計效果新增依賴套件。
  • 不要在 UI 內部描述 UI 的功能,控件本身應能說明一切。

審查清單

  • 第一個視窗應立即傳達產品、工作流程或物件。
  • 視覺層級應支援掃描與重複使用。
  • 字體排版應適應容器,不與相鄰內容重疊。
  • 色彩選擇應有對比度,不應使整個調色盤變得單調。
  • 在有熟悉工具動作的地方使用圖示。
  • 響應式版面應具有穩定的尺寸:看板、網格、工具欄、控制項、圖塊與計數器。
  • 素材應正確渲染,並承載主題內容,而非作為填補空白之用。
  • 動態效果應優化導航方向,而非掩蓋遲鈍感。
  • 除非有明確理由偏離,否則結果應符合儲存庫現有前端慣例。

Individual skills in this repo

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

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

相關技能