Community编程与开发github.com

网页设计指南

审查 UI 代码是否符合网页界面指南。用于“审查我的 UI”、“检查可访问性”、“审计设计”、“审查 UX”或“根据最佳实践检查我的网站”等场景。

网页设计指南 是什么?

该技能旨在帮助 AI 代理(如 Claude Code)对 Web 界面进行自动化审查。它通过读取项目文件并对照一份捆绑的规则文件(`references/command.md`)进行检查,来确保代码符合网页设计最佳实践。核心价值在于让开发人员能够快速获得关于可访问性、设计一致性以及用户界面其他方面的反馈,而无需手动对照大量规则。该技能直接读取本地捆绑的规则快照,而非从网络动态获取,从而保证了可靠性和一致性。它要求用户指定待审查的文件或文件模式,然后输出简洁的 `file:line` 格式的发现报告。该技能兼容任何能够读取本地文件并执行脚本的 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 的新对话。

文档

Web 界面指南

审查文件是否符合 Web 界面指南。

工作原理

  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

相关技能