web-design-guidelines

web-design-guidelines is a skill for Claude Code, Codex from tranfu-labs/tranfu-skills. It costs 0 tokens per session (1,060 once invoked), scanned A, original, MIT.

A web-interface review skill that checks front-end code against more than 100 rules for accessibility, keyboard focus, forms, performance, and user experience. It focuses on the visible interface rather than server or API code.

In plain words
What is it for?
Use it to review UI pull requests, check keyboard and form behavior, inspect semantic HTML, and audit a website against interface best practices.
Why use it?
It helps find usability and accessibility problems before release or during maintenance of an older front-end project.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to review UI pull requests, check keyboard and form behavior, inspect semantic HTML, and audit a website against interface best practices.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tranfu-labs/tranfu-skills/web-design-guidelines
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tranfu-labs/tranfu-skills --skill web-design-guidelines
Clone the repo
git clone --depth 1 https://github.com/tranfu-labs/tranfu-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for web-design-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/web-design-guidelines/github.svg)](https://agentmods.dev/skills/tranfu-labs/tranfu-skills/web-design-guidelines)
Your own site
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/web-design-guidelines"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/web-design-guidelines/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for web-design-guidelines

Your own site · 80×15
<a href="https://agentmods.dev/skills/tranfu-labs/tranfu-skills/web-design-guidelines"><img src="https://agentmods.dev/badge/skills/tranfu-labs/tranfu-skills/web-design-guidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,060 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01060
Opus 5 $0.00000 $0.00530
Sonnet 5 $0.00000 $0.00212
Haiku 4.5 $0.00000 $0.00106

Measured 11d ago against content hash deda3a5afa9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

web-design-guidelines scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

external-skills/web-design-guidelines/SKILL.md · 66 lines

What it actually says

web-design-guidelines (external thin pointer)

这是一个 external 薄指针 —— 仓库里只存 frontmatter 和推荐者补充内容, 不存 skill body.

首次 tfs install web-design-guidelines 时, install 流程会从 source_url 拉上游 SKILL.md (Vercel 官方 1.2KB 极简实现, 每次审代码时实时 fetch vercel-labs/web-interface-guidelines/main/command.md 拿最新 100+ 规则).

更新内容请直接看上游 README / SKILL.md, 别在本仓库改 body.

推荐场景

适用:

  • 写完前端代码后做 PR review 前自审 (a11y / focus / forms / 语义 HTML / 键盘交互)
  • 接手老前端项目, 跑一遍找累积的合规债
  • 跟刚发的 ui-ux-pro-max 配套用 — 一个给设计输入, 一个审代码输出

不适用: 服务端 / API / 后端代码 (规则只针对 UI 层); 离线环境 (依赖网络实时拉规则).

同类 Skill 对比

由 tranfu-publish 起草, 推荐者签字.

公司库内

  • ui-ux-pro-max — 设计参考库 (风格 / 配色 / 字体 / 图表), 给"该选什么"输入; 本 skill 区别: 互补关系 — ui-ux-pro-max 在前 (设计输入), 本 skill 在后 (代码审计), 闭环用

外部世界

  • AccessLint — 专注 a11y 的 4-skill 套装 + MCP server 跑色彩对比; 本 skill 区别: 不只 a11y, 也覆盖 focus / forms / performance / UX 共 100+ 规则
  • Anthropic frontend-design — 反 "AI slop" 原则性 skill, 教 AI 像前端工程师那样思考; 本 skill 区别: 不是原则, 是 100+ 条具体规则跑出 file:line findings, 可量化

本 skill 独特价值

  • 每次实时拉规则不内嵌, 规则更新无需升级 skill
  • Vercel 官方背书, 规则源于其生产实践
  • 输出 file:line 格式, 适合 CI / review 工具集成

使用技巧

由 tranfu-publish 引导起草.

材料方案

  • 接 Anthropic Agent Skills 标准, 装上后 Claude Code 自动识别触发语
  • 跟 ui-ux-pro-max 串用: 先设计基线, 写完再跑本 skill 审合规
  • CI 集成可用 argument-hint: <file-or-pattern> 锁定 diff 文件

推荐用法

  • 第一次跑: "review my UI" + 指定文件 / glob (e.g. src/components/**/*.tsx)
  • PR 审场景: 对着 diff 文件跑, 直接出 file:line 清单
  • 触发语含: "review my UI" / "check accessibility" / "audit design" / "review UX"

已知限制

  • 依赖网络: 每次实时 fetch 规则, 离线环境用不了
  • 规则源若上游改 path 或下线, 本 skill 直接失效
  • 只审 UI 层, 服务端 / API 不在范围
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 66 lines · 0 tokens per session scan A deda3a5afa9e

Subscribe to this mod's changes

web-design-guidelines is a skill published in the GitHub repository tranfu-labs/tranfu-skills (2 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,060 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens