Web Design Guidelines logo

Web Design Guidelines

Community
AsyrafHussin
web-design-guidelines

UI/UX best practices and accessibility audit. Use when reviewing UI code, checking accessibility, running accessibility audits, auditing forms, or ensuring web interface best practices. Triggers on "audit accessibility", "check WCAG", "review UI", "check accessibility", "audit design", "review UX", or "check best practices".

Overview

PublisherAsyrafHussin
Repositoryagent-skills
Skill nameweb-design-guidelines
Stars
78
Forks
10
Bundled files
27
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 27 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AsyrafHussin on GitHub. Read the source before you install it.

Installation

Install the Web Design Guidelines AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AsyrafHussin/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/web-design-guidelines .claude/skills/web-design-guidelines
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Web Design Guidelines in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Web Design Guidelines on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Web Design Guidelines is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Web Design Guidelines

WCAG accessibility, semantic HTML, keyboard navigation, forms, and performance patterns for inclusive web interfaces. Contains 23 rules across 4 categories. Supports both coding reference and audit mode.

Metadata

  • Version: 2.1.0
  • Rule Count: 23 rules across 4 categories
  • License: MIT

How to Audit

When the user asks to "audit accessibility", "check WCAG compliance", or "review accessibility" — run the checklist below against their codebase.

Step 1: Determine Scope

  • If arguments provided ($ARGUMENTS): audit only those files or components
  • If no arguments: audit all UI components and pages in the codebase

Step 2: Detect Stack

Check the project for:

  • .tsx/.jsx files → React
  • .vue files → Vue
  • .blade.php files → Laravel Blade
  • .html files → Static HTML

Step 3: Run Accessibility Checklist

Work through every item below. For each, output:

  • PASS — brief confirmation of what was verified
  • FAIL — exact file:line, description of the issue, and fix recommendation
  • N/A — if the check does not apply to this project
Semantic HTML & Structure
  • Pages use semantic elements (<header>, <main>, <nav>, <footer>, <article>, <section>) — not <div> soup
  • Heading hierarchy is sequential (h1h2h3) — no skipped levels
  • One <h1> per page
  • Skip link exists to bypass navigation (<a href="#main-content">Skip to content</a>)
  • Landmark regions are labelled when duplicated (aria-label on multiple <nav> elements)
Keyboard Navigation
  • All interactive elements are reachable via Tab key
  • Focus order follows visual order (no positive tabindex values)
  • Focus indicator is visible on all focusable elements (not removed with outline: none without replacement)
  • Modal dialogs trap focus and return focus on close
  • Custom components (dropdowns, tabs, accordions) support expected keyboard patterns (Arrow keys, Escape, Enter)
Images & Media
  • All <img> elements have alt attributes — descriptive for content images, empty (alt="") for decorative
  • Complex images (charts, diagrams) have extended descriptions
  • Video content has captions or transcripts
Color & Contrast
  • Text meets WCAG AA contrast ratio (4.5:1 for normal text, 3:1 for large text)
  • Information is not conveyed by color alone (e.g., error states use icons + text, not just red)
  • UI components and focus indicators meet 3:1 contrast ratio against background
Forms
  • Every input has an associated <label> (not just placeholder text)
  • Required fields indicated with both visual cue and aria-required="true"
  • Error messages linked to inputs via aria-describedby
  • Error messages use role="alert" or aria-live="assertive" for screen reader announcement
  • Correct type attributes on inputs (email, tel, url, number)
  • autocomplete attributes present on common fields (name, email, address, credit card)
ARIA & Screen Readers
  • ARIA labels on icon-only buttons (aria-label="Close")
  • Dynamic content updates use aria-live regions
  • Loading states announced to screen readers (aria-busy="true", status messages)
  • Decorative elements hidden from screen readers (aria-hidden="true")
Motion & Animation
  • prefers-reduced-motion respected — animations disabled or reduced
  • No auto-playing video or audio without user control
  • No content that flashes more than 3 times per second

Step 4: Summary

End the audit with:

## Accessibility Audit Summary
- **PASS**: X checks
- **FAIL**: X checks
- **N/A**: X checks
- **WCAG Level**: AA / Partial AA / Below AA
- **Top Priority Fixes**: (list the 3 most impactful FAIL items)

When to Apply

Reference these guidelines when:

  • Running an accessibility audit on a codebase
  • Reviewing UI code for accessibility (WCAG compliance)
  • Implementing forms and interactions
  • Ensuring keyboard navigation works
  • Adding ARIA labels and live regions
  • Optimizing image loading and layout stability

Rule Categories by Priority

PriorityCategoryImpactPrefix
1AccessibilityCRITICALa11y-
2FormsHIGHform-
3Animation & MotionCRITICALmotion-
4Performance & UXMEDIUMperf-

Quick Reference

1. Accessibility (CRITICAL)

  • a11y-semantic-html - Use semantic HTML elements
  • a11y-heading-hierarchy - Maintain proper heading hierarchy
  • a11y-screen-reader - Optimize for screen reader compatibility
  • a11y-skip-links - Provide skip links for navigation
  • a11y-keyboard-nav - Ensure full keyboard navigation
  • a11y-focus-management - Manage keyboard focus properly
  • a11y-aria-labels - Add ARIA labels to interactive elements
  • a11y-color-contrast - Ensure sufficient color contrast (WCAG AA)
  • a11y-alt-text - Provide meaningful alt text for images
  • a11y-error-messages - Make error messages accessible
  • a11y-form-labels - Associate labels with form inputs
  • a11y-live-regions - Announce dynamic content to screen readers

2. Forms (HIGH)

  • form-autocomplete - Use autocomplete attributes
  • form-input-types - Use correct input types
  • form-error-display - Display form errors clearly
  • form-validation-ux - Design user-friendly validation
  • form-inline-validation - Implement smart inline validation
  • form-multi-step - Design effective multi-step forms
  • form-placeholder-usage - Use placeholders appropriately
  • form-submit-feedback - Provide clear submission feedback

3. Animation & Motion (CRITICAL)

  • motion-reduced - Respect prefers-reduced-motion (WCAG AAA)

4. Performance & UX (MEDIUM)

  • perf-image-loading - Optimize image loading for UX
  • perf-layout-stability - Prevent cumulative layout shift

Essential Guidelines

Semantic HTML

tsx
// ❌ Div soup
<div className="header"><div className="nav"><div onClick={handleClick}>Home</div></div></div>

// ✅ Semantic HTML
<header><nav aria-label="Main"><a href="/">Home</a></nav></header>
<main><article><h1>Title</h1><p>Content</p></article></main>

Form Accessibility

tsx
<label htmlFor="email">Email <span aria-hidden="true">*</span></label>
<input id="email" type="email" required aria-required="true" aria-describedby="email-error" autoComplete="email" />
{error && <p id="email-error" role="alert">{error}</p>}

Reduced Motion

css
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

How to Use

Read individual rule files for detailed explanations:

rules/a11y-semantic-html.md
rules/form-autocomplete.md
rules/motion-reduced.md
rules/perf-image-loading.md

References

Full Compiled Document

For the complete guide with all rules expanded: AGENTS.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Web Design Guidelines AI skill do?

UI/UX best practices and accessibility audit. Use when reviewing UI code, checking accessibility, running accessibility audits, auditing forms, or ensuring web interface best practices. Triggers on "audit accessibility", "check WCAG", "review UI", "check accessibility", "audit design", "review UX", or "check best practices".

Why use Web Design Guidelines on TypingMind?

Because you install it once and use it with any model. Web Design Guidelines is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Web Design Guidelines in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AsyrafHussin/agent-skills/tree/main/skills/web-design-guidelines. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Web Design Guidelines?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Web Design Guidelines?

As many as you like. As long as a model supports skills, you can use Web Design Guidelines with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Web Design Guidelines AI skill free?

Yes. It is published on GitHub by AsyrafHussin under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇