Community程式設計與開發github.com

網頁設計規範

審查 UI 程式碼是否符合網頁介面規範。當使用者要求「審查我的 UI」、「檢查無障礙性」、「稽核設計」、「審查 UX」或「根據最佳實踐檢查我的網站」時使用。

網頁設計規範 是什麼?

此技能旨在協助開發者或 AI 代理審查網頁 UI 程式碼,確保其遵循一套預先定義的網頁介面規範(Web Interface Guidelines)。使用者可以要求審查特定檔案或整個專案的 UI,技能會讀取捆綁在技能資源中的規則文件(references/command.md),並逐條對照所有規則進行檢查。輸出格式為簡潔的 `file:line` 格式,便於快速定位問題。該技能支援 Claude Code、Cursor 等 AI 代理平台,透過本機檔案提供規則,無需網路請求,確保審查的可靠性和一致性。同時,技能提供了詳細的更新指南,讓維護者可以輕鬆地將規則更新到上游版本的最新提交。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/vercel-labs/agent-skills/tree/main/skills/web-design-guidelines

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

網頁介面規範

審查檔案是否符合網頁介面規範。

運作方式

  1. 讀取捆綁的規範文件 references/command.md
  2. 讀取指定的檔案(或提示使用者提供檔案/模式)
  3. 對照規範中的所有規則進行檢查
  4. 以簡潔的 file:line 格式輸出發現

規範來源

規則已與此技能捆綁在 references/command.md 檔案中。每次審查前請先讀取該檔案。請勿從網路獲取規則。

此快照鎖定在特定的上游提交:

來源:https://github.com/vercel-labs/web-interface-guidelines/blob/434b7f91364665f2f733b310ec54809bf8f37937/command.md

SHA-256:d246b026f4f29b5823a9cc857f9edf3d2507002e055e32040cadeaf3b38e0234

該檔案包含所有規則及輸出格式說明。 其中 $ARGUMENTS 應替換為使用者要求審查的檔案或模式。

更新規範

若要將快照更新為較新的上游版本:

  1. 取得最新的提交 SHA:gh api repos/vercel-labs/web-interface-guidelines/commits/main --jq .sha
  2. 下載它:curl -fsSL https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/<SHA>/command.md -o references/command.md
  3. 審閱變更,然後更新上述的來源 URL 和 SHA-256(shasum -a 256 references/command.md)
  4. 重新產生 skills/web-design-guidelines.zip,使其與更新後的資料夾一致

使用方式

當使用者提供檔案或模式引數時:

  1. 讀取 references/command.md
  2. 讀取指定的檔案
  3. 套用規範中的所有規則
  4. 使用規範中指定的格式輸出發現

如果未指定檔案,請詢問使用者要審查哪些檔案。

Individual skills in this repo

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

deploy-to-vercel

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

vercel-cli-with-tokens

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g.

vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with

vercel-labs/vercel-composition-patterns

React composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reusable APIs. Triggers on tasks involving compound components, render props, context providers, or component architecture. Includes React 19 API changes.

vercel-labs/vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-labs/vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.

vercel-labs/vercel-react-view-transitions

Guide for implementing smooth, native-feeling animations using React's View Transition API (`<ViewTransition>` component, `addTransitionType`, and CSS view transition pseudo-elements). Use this skill whenever the user wants to add page transitions, animate route changes, create shared element animations, animate enter/exit of components, animate list reorder, implement directional (forward/back) navigation animations, or integrate view transitions in Next.js. Also use when the user mentions view transitions, `startViewTransition`, `ViewTransition`, transition types, or asks about animating between UI states in React without third-party animation libraries.

vercel-optimize

Use for Vercel cost and performance optimization on deployed projects, especially Next.js, SvelteKit, Nuxt, and limited Astro apps. Collect Vercel metrics, usage, project config, and code scan results first; investigate only metric-backed candidates; produce ranked recommendations grounded in verified files and version-aware Vercel/framework docs. Trigger for Vercel bill reduction, slow or expensive routes, caching opportunities, Function Invocations, Build Minutes, Fast Data Transfer, Core Web Vitals, Bot Management, Fluid compute, or cost breakdown requests.

vercel-react-best-practices

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

vercel-react-native-skills

React Native and Expo best practices for building performant mobile apps. Use

writing-guidelines

Review docs/prose for Writing Guidelines compliance. Use when asked to

相關技能