npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

ai-friendly-web-design-skill

v1.0.3

Published

Claude Code skill for AI-accessible web design — semantic HTML, ARIA, stable locators, and agent-friendly UI patterns.

Downloads

419

Readme

AI-Friendly Web Design — Claude Code Skill

A Claude Code Skill that helps you build web interfaces friendly to both AI agents and human users — covering semantic HTML, ARIA attributes, stable locators, form best practices, and more.

Original post: @karminski-牙医 · Compiled by: @ianho7


What It Does

When active in Claude Code, this skill automatically applies whenever you:

  • Build or review a UI component, form, or frontend feature
  • Ask how to make your UI "agent-friendly" or "AI-accessible"
  • Review existing code for accessibility or automation compatibility
  • Mention AI agents, Playwright, automation, a11y, aria, or semantic HTML

Claude will follow the 14-principle checklist and flag issues during code review with severity levels (🔴 High / 🟡 Medium / 🟢 Low).


Installation

Option A: npx (recommended)

# Install globally — available to all your Claude Code projects
npx ai-friendly-web-design-skill

# Install locally — only for the current project
npx ai-friendly-web-design-skill --local

# Force overwrite an existing installation
npx ai-friendly-web-design-skill --force

| Flag | Install path | |------|-------------| | (none) | ~/.claude/skills/ (global, all projects) | | --local | .claude/skills/ in current project | | --force | Overwrite if already installed |

Option B: Clone directly into your skills directory

git clone https://github.com/ianho7/ai-friendly-web-design-skill \
  ~/.claude/skills/ai-friendly-web-design

Option C: Manual

  1. Download or clone this repo
  2. Copy the skills/ai-friendly-web-design/ folder into your Claude Code skills directory:
    • macOS/Linux: ~/.claude/skills/
    • Windows: %USERPROFILE%\.claude\skills\

Verify the structure

~/.claude/skills/
└── ai-friendly-web-design/
    ├── SKILL.md
    └── references/
        └── guidelines.md

Usage

Once installed, Claude Code picks it up automatically. You can also set up slash commands in your project for explicit review and fix workflows.

Add to your project's CLAUDE.md

## AI Accessibility
All frontend development and code reviews must follow the `ai-friendly-web-design` skill.
New interactive components should include `data-testid` and appropriate `aria-*` attributes by default.

Optional: Slash commands

Create .claude/commands/review-ai-accessibility.md in your project:

Use the ai-friendly-web-design skill to review: $ARGUMENTS

For each issue, output:
- File path + line number
- Which principle is violated
- Before/after code snippet

Sort by severity: 🔴 High (breaks agent operation) / 🟡 Medium / 🟢 Low
End with a summary table.

Then run in Claude Code:

/review-ai-accessibility src/components/
/review-ai-accessibility src/components/CheckoutForm.tsx

What's Inside

| File | Purpose | |------|---------| | SKILL.md | Trigger description + condensed checklist + review checklist | | references/guidelines.md | Full rationale + code examples for all 14 principles |

The two files are designed to work together — SKILL.md is always loaded when the skill triggers; guidelines.md is loaded on demand when Claude needs the full context.


The 14 Principles (Summary)

| # | Principle | Impact | |---|-----------|--------| | 1 | Use semantic tags + ARIA attributes | Agent navigation accuracy | | 2 | Hide decorative elements (aria-hidden) | Reduce token waste | | 3 | Stable data-testid / data-ai-action locators | Automation robustness | | 4 | Native form controls over div simulations | Standard API compatibility | | 5 | No actions hidden behind hover | Discoverability | | 6 | Pagination over infinite scroll | Predictable navigation | | 7 | Explicit loading states (disabled + text) | Prevent race conditions | | 8 | Avoid iframe / Shadow DOM | Extraction penetration | | 9 | Sync state to URL | Deep linking + reproducibility | | 10 | Plain text error messages | Agent self-correction | | 11 | Listen to input/change events | Programmatic input support | | 12 | Complete critical flows in-page | Context continuity | | 13 | Dual UI + API entry points | Native agent integration | | 14 | Rate limiting over ReCAPTCHA | Agent accessibility |


License

CC BY 4.0 — feel free to use, adapt, and share with attribution.