Skip to content

AI Friendly Web Design Skill

A skill for coding agents that build, review, and refactor Web UI that should be easier for humans, screen readers, browser automation, Playwright tests, and AI agents to…

Install

$npx ai-friendly-web-design-skill

Install command taken from the project's README or registry entry. Always review code before running it.

AI-Friendly Web Design Skill

中文说明

A skill for coding agents that build, review, and refactor Web UI that should be easier for humans, screen readers, browser automation, Playwright tests, and AI agents to understand and operate.

Inspired by: @karminski-牙医 · Compiled by: @ianho7

What it does

This skill helps agents choose better semantic HTML, clearer state, more stable locators, and more reproducible URL patterns when working on frontend UI.

SKILL.md is the entry file. The files under references/ are supporting material that should be read on demand, not all at once unless the task genuinely needs them.

The guidance is written for coding agents in general. The installer in this repo currently targets Claude Code style skill directories because that is the packaging format used here.

When used for review, the skill reports findings with severity levels: 🔴 High / 🟡 Medium / 🟢 Low.

When to use

Use it when you are:

  • Designing a new UI flow, component, or form
  • Implementing or refactoring frontend UI
  • Reviewing existing UI for accessibility, operability, or automation issues
  • Generating Playwright or browser automation tests
  • Deciding semantic HTML, ARIA, locator, or URL state patterns

Structure

skills/
  ai-friendly-web-design/
    SKILL.md
    references/
      principles.md
      semantic-html-first.md
      locator-and-state.md
      review-output-format.md
      component-recipes.md
  • SKILL.md is the entry point.
  • references/ contains focused reference files for principles, semantics, locators, review output, and common component recipes.
  • component-recipes.md is a Round 2-lite addition for high-frequency components. It is intentionally short and is not a full component encyclopedia.
  • Scripts and assets are not included by design. The skill stays lightweight and relies on small, readable reference files instead.

Installation note

This repository currently ships an installer for Claude Code compatible skill directories under .claude/skills/.

If you use another coding agent, reuse the same SKILL.md and references/ content in that agent's preferred skill or prompt format instead of assuming the installer is universal.

Quick install:

# Global install to ~/.claude/skills/
npx ai-friendly-web-design-skill

# Local install to ./.claude/skills/ in the current project
npx ai-friendly-web-design-skill --local

# Overwrite an existing install
npx ai-friendly-web-design-skill --force

Manual install:

  • Copy skills/ai-friendly-web-design/ into your target skill directory.
  • For Claude Code, that is usually ~/.claude/skills/ globally or ./.claude/skills/ inside a project.

Release:

# Preflight only
node ./scripts/release.mjs --check

# Bump patch, publish to npm, then push commit and tag
node ./scripts/release.mjs

# Bump minor
node ./scripts/release.mjs --bump minor

# Publish an exact version
node ./scripts/release.mjs --version 1.2.0

# Bump version and preview without npm publish
node ./scripts/release.mjs --no-npm-publish

If you prefer npx, this repo also exposes:

npx ai-friendly-web-design-release --check

Usage Examples

Use this skill when you want to design, review, refactor, or test web UI that should be easy for humans, screen readers, browser automation, Playwright, and AI agents to understand and operate.

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Explore related