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
FAQ
ai-friendly-web-design-skill is a Claude Code plugin with 1 hand-picked skill for development work, indexed on Flowy. Install it with the command on its page. It includes ai-friendly-web-design. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
$ npx -y skills add ianho7/ai-friendly-web-design-skill --agent claude-code
Repo: ianho7/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
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.
Use it when you are:
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.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:
skills/ai-friendly-web-design/ into your target skill directory.~/.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
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.
Use the ai-friendly-web-design skill to review src/components/LoginForm.tsx.
Focus on semantic HTML, labels, readable error states, and stable locators.
Do not modify code yet. Return High and Medium issues only.
Use the ai-friendly-web-design skill to improve this form component.
Make sure every field has a label, errors are readable, required states are clear, and the submit action is easy for Playwright and AI agents to locate.
Keep the visual design unchanged.
Use the ai-friendly-web-design skill to design a searchable order table.
Include search, filters, sorting, pagination, loading state, empty state, error state, URL state, and stable locators for critical actions.
Start with an AI-operable UI plan before writing code.
Use the ai-friendly-web-design skill to review src/components/forms/.
Focus on form labels, errors, required states, disabled states, submit behavior, and stable locators.
Do not rewrite components. Suggest minimal fixes.
Use the ai-friendly-web-design skill to refactor src/components/ConfirmDialog.tsx.
Make it easier for keyboard users, screen readers, Playwright, and AI agents to operate.
Preserve the existing visual design and avoid broad rewrites.
Use the ai-friendly-web-design skill to generate Playwright tests for the checkout flow.
Prefer getByRole, getByLabel, and getByText.
Avoid CSS selectors.
Suggest stable locators only when user-facing locators are not enough.
Use the ai-friendly-web-design skill to perform a lightweight review of src/.
Return only the top High and Medium issues.
Focus on blocked user tasks, inaccessible forms, hover-only actions, unreadable errors, missing URL state, and brittle selectors.
Do not modify code.
Keep the skill small and operational:
install.js
package.json
README.md
README.zh-CN.md
scripts/
release.mjs
release.ps1
skills/
ai-friendly-web-design/
references/
component-recipes.md
locator-and-state.md
principles.md
review-output-format.md
semantic-html-first.md
SKILL.md© 2026 Flowy · Free and open source
Built for Claude Code · Not affiliated with Anthropic