TraeSkill: Skill for Claude Code

.trae/Skills/02_Designer_WebGuidelines/SKILL.md

web-design-guidelines is a skill for Claude Code from boshi-xixixi/TraeSkill. It costs 112 tokens per session (4,786 once invoked), scanned A, original, MIT.

A checker for website interface code against common web-interface rules and WCAG 2.2 accessibility standards. WCAG is an international guideline for making websites usable by people with disabilities.

In plain words
What is it for?
Use it to audit selected files or pages, review accessibility compliance, check responsive and interaction patterns, and report findings with file and line references.
Why use it?
It finds problems such as missing visible keyboard focus, poor colour contrast, hidden content, and other interface or performance issues before they affect users.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/02_Designer_WebGuidelines/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code.

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/boshi-xixixi/traeskill/02_designer_webguidelines/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/02_designer_webguidelines)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/02_designer_webguidelines"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_designer_webguidelines/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/boshi-xixixi/traeskill/02_designer_webguidelines"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_designer_webguidelines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,786 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.00112 $0.04786
Opus 5.5 $0.00045 $0.01914
Sonnet 5.5 $0.00022 $0.00957
Haiku 4.5 $0.00011 $0.00479

Measured 8d ago against content hash 934b6910f602, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 8d 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.

.trae/Skills/02_Designer_WebGuidelines/SKILL.md · 639 lines

How it starts

The opening of the file, as written. The whole thing — 639 lines — stays where its author put it; the contents beside it link to each section on GitHub.

⚠️ 性能提示: 此 Skill 包含完整的 WCAG 2.2 检查清单。对于快速审查,可以只使用"快速检查清单";对于完整审计,使用"详细检查清单"。


Web Interface Guidelines & Accessibility Checker

概述

此 Skill 提供两种审查模式:

  1. 快速审查:基于 Vercel Web Interface Guidelines 的即时检查
  2. 完整审计:基于 WCAG 2.2 AA 标准的全面合规性检查

快速审查(Web Interface Guidelines)

工作流程

  1. 从源 URL 获取最新指南:

    https://raw.githubusercontent.com/vercel-labs/web-interface-guidelines/main/command.md
    
  2. 读取指定的文件(或提示用户提供文件/模式)

  3. 对照获取的规则检查

  4. 使用简洁的 file:line 格式输出结果

使用方式

当用户提供文件或模式参数时:

  1. 从上述 URL 获取指南
  2. 读取指定的文件
  3. 应用所有规则
  4. 按照指南中指定的格式输出结果

如果未指定文件,询问用户要审查哪些文件。


完整审计(WCAG 2.2 AA)

WCAG 2.2 新增成功准则

WCAG 2.2 在 2.1 基础上增加了 9 个新成功准则:

2.4.11 焦点外观(最小)(Focus Appearance (Minimum))- AA

要求:焦点指示符必须满足以下所有条件:

  • 对比度:至少 3:1(焦点与相邻颜色)
  • 区域:指示符面积至少等于 1 CSS 像素环的面积
  • 不被其他内容遮挡

检查点:

  • 所有交互元素(链接、按钮、输入框)有可见焦点状态
  • 焦点指示符对比度 ≥ 3:1
  • 焦点样式不会被其他内容遮挡
/* ✅ 合规的焦点样式 */
:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* ✅ 高对比度焦点 */
:focus {
  outline: 3px solid #000000;
  background: #ffff00;
}
2.4.12 焦点不被隐藏(Focus Not Obscured)(最小)- AA

要求:焦点指示符不能被其他内容完全遮挡

检查点:

  • 固定元素(header、nav)不会遮挡焦点
  • 模态框打开时焦点元素可见
  • 滚动时焦点元素保持在视口中
2.5.7 拖动动作(Dragging Movements)- AA

要求:所有使用拖动操作的功能都应提供单指针替代方案

检查点:

  • 滑块有 +/- 按钮替代拖动
  • 拖放列表有上/下按钮替代拖动
  • 拖动操作有清晰的视觉反馈
// ❌ 不合规:只有拖动
<SortableList items={items} />

// ✅ 合规:提供替代方案
<SortableList items={items} />
<SortableList items={items} mode="buttons" />
2.5.8 目标大小(最小)(Target Size (Minimum))- AA

要求:触摸目标至少 24x24 CSS 像素

检查点:

  • 按钮最小尺寸 24x24px
  • 移动端触摸目标 ≥ 44x44px(WCAG 2.2 AAA)
  • 目标之间有足够间距
/* ✅ 合规的触摸目标 */
button {
  min-height: 44px;
  min-width: 44px;
  padding: 12px 16px;
}

详细 WCAG 2.2 AA 检查清单

1. 可感知性(Perceivable)

1.1.1 非文本内容 - 所有文本
  • 所有图片有 alt 文本
  • 复杂图像有长描述
  • 图标按钮有 aria-label
  • 表单有可见标签
<!-- ✅ 合规 -->
<img src="chart.png" alt="2024年用户增长图表,显示同比增长25%" />

<!-- ❌ 不合规 -->
<img src="chart.png" />

Read the full file on GitHub · 639 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 639 lines · 112 tokens per session scan A 934b6910f602

Subscribe to this mod's changes

web-design-guidelines is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 112 tokens to every session and 4,786 once invoked, about $0.0004 per session on Opus 5.5. 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-11-22.

Related

web-design-guidelines compared with skills from other repositories

web-design-guidelines next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
web-design-guidelinesboshi-xixixi/TraeSkillSkill2889d agoMITA112Claude Code
debuggingLion-1209/Lion-SkillsSkill55mo agoMITA24Claude Code
error-handlingLion-1209/Lion-SkillsSkill55mo agoMITA14Claude Code
diagnosing-superpowersjnMetaCode/superpowers-zhSkill8.6k14d agoMITA111Claude Code
debugRune-kit/runeSkill962d agoMITA76Claude Code
perfRune-kit/runeSkill962d agoMITA73Claude Code
autopsyRune-kit/runeSkill962d agoMITA68Claude Code