Logo Ai Friendly Web Design

Ai Friendly Web Design

Cộng đồng
ianho7
ai-friendly-web-design

Build, review, and refactor web interfaces that are easy for humans, screen readers, browser automation, Playwright tests, and AI agents to understand and operate. Use for UI components, forms, frontend features, semantic HTML, ARIA, stable locators, URL state, accessibility reviews, and agent-friendly web design.

Tổng quan

Nhà phát hànhianho7
Kho mãai-friendly-web-design-skill
Tên kỹ năngai-friendly-web-design
Sao
77
Bản fork
3
Tệp đi kèm
5
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 5 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được ianho7 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ai Friendly Web Design trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/ianho7/ai-friendly-web-design-skill/tree/main/skills/ai-friendly-web-design
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ianho7/ai-friendly-web-design-skill.git /tmp/ai-friendly-web-design-skill
mkdir -p .claude/skills
cp -r /tmp/ai-friendly-web-design-skill/skills/ai-friendly-web-design .claude/skills/ai-friendly-web-design
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ai Friendly Web Design trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ai Friendly Web Design ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ai Friendly Web Design với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

AI-Friendly Web Design

Purpose

Use this skill to make web interfaces easier to discover, operate, test, and review across human users, assistive technology, browser automation, and AI agents.

When To Use

Use this skill when the task involves any of the following:

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

Task Modes

Choose one primary mode before acting.

1. Design New UI

  • List the core user tasks before proposing components.
  • Define the UI contract in user-facing terms: actions, fields, states, and outcomes.
  • Cover loading, error, empty, and success states explicitly.
  • Decide which state should be reproducible through the URL.
  • Mark which critical controls need stable locators.

2. Implement UI

  • Prefer native HTML elements before custom widgets.
  • Add ARIA only when native semantics are not enough.
  • Ensure every critical control has an accessible name.
  • Keep critical state readable as visible or programmatically associated text.
  • Add stable locator hooks only for critical actions, fields, and status.

3. Review Existing UI

  • Output findings as High, Medium, and Low severity.
  • Prefer the display format 🔴 High, 🟡 Medium, and 🟢 Low when the output surface supports emoji.
  • Explain how each issue affects accessibility, automation, or agent operability.
  • Prioritize blockers on critical user flows.
  • Give concrete fixes instead of abstract advice.
  • If a suggested fix would change hover, click, close, focus, expand, or layout behavior, present it as a behavior-change proposal requiring confirmation rather than a direct recommendation.
  • Avoid unrelated redesign or architecture churn.

4. Refactor Existing UI

  • Prefer the smallest patch that fixes operability.
  • Preserve the current visual design unless the user asked for redesign.
  • Preserve existing interaction paths and visible layout by default, including hover, click, outside-click-close, blank-area-close, Esc-close, expand/collapse, and focus return, unless the user explicitly approves a behavior change.
  • Preserve the existing design system and component boundaries where practical.
  • Fix the parts that break semantics, state clarity, or stable interaction.
  • Do not use this work as an excuse to rewrite the stack.

5. Generate Tests

  • Prefer user-facing locators such as role, label, and text.
  • Avoid CSS selectors unless there is no stable user-facing alternative.
  • Cover critical flows plus loading, error, and success states.
  • Use stable custom locators only when the UI needs them.
  • Write tests around observable behavior, not implementation details.

Non-Negotiables

  • Use semantic HTML before ARIA.
  • Prefer native browser controls before custom widgets.
  • Critical actions must not be hover-only.
  • Critical flows must not depend on popup-only, drag-only, or canvas-only interaction.
  • Every critical control needs an accessible name.
  • Loading, error, empty, and success states must be readable text.
  • Critical actions and fields need stable ways to locate them.
  • Search, filter, sort, pagination, and selected tab state should usually be reflected in the URL.
  • Do not add CAPTCHA, agent manifests, or automation-specific APIs unless the user asks or the project already needs them.

Reference Routing

Read only the files needed for the current task.

  • For core goals, severity, and review judgment: references/principles.md
  • For semantic HTML, native control choices, and interaction anti-patterns: references/semantic-html-first.md
  • For stable locators and URL state: references/locator-and-state.md
  • For review deliverables and AI-readable content notes: references/review-output-format.md
  • For quick implementation or review guidance on common components: references/component-recipes.md

Output Rules

  • State the chosen task mode before substantial action when the mode is not obvious from context.
  • Keep recommendations tied to critical user tasks and observable UI behavior.
  • When reviewing, use the review format in references/review-output-format.md.
  • When reviewing, use severity labels 🔴 High, 🟡 Medium, and 🟢 Low when possible. If emoji rendering is unavailable, use High, Medium, and Low exactly.
  • When implementing or refactoring, explain any non-native control choice and why native HTML was not sufficient.
  • When adding custom locators, keep naming stable and domain-oriented.

Boundaries

  • Do not turn this skill into a full WCAG summary.
  • Do not recommend experimental agent manifests as a default path.
  • Do not add locator hooks to every element.
  • Do not prefer ARIA-heavy custom UI over native HTML without a clear reason.
  • Do not assume visual polish alone makes a UI operable.

Agent manifests such as .well-known/ai.json are experimental and not required. Mention them only when the user is explicitly designing machine-readable app metadata or the project already uses such a convention.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ai Friendly Web Design làm được gì?

Build, review, and refactor web interfaces that are easy for humans, screen readers, browser automation, Playwright tests, and AI agents to understand and operate. Use for UI components, forms, frontend features, semantic HTML, ARIA, stable locators, URL state, accessibility reviews, and agent-friendly web design.

Vì sao nên dùng Ai Friendly Web Design trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ai Friendly Web Design là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ai Friendly Web Design trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/ianho7/ai-friendly-web-design-skill/tree/main/skills/ai-friendly-web-design. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ai Friendly Web Design?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ai Friendly Web Design với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ai Friendly Web Design với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ai Friendly Web Design có miễn phí không?

Kỹ năng này được ianho7 phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇