accessibility-audit

安装量: 182
排名: #4708

安装

npx skills add https://github.com/webflow/webflow-skills --skill accessibility-audit

Accessibility Audit

Comprehensive WCAG 2.1 accessibility audit for Webflow pages with detailed issue detection and actionable fixes.

Important Note

ALWAYS use Webflow MCP tools for all operations:

Use Webflow MCP's webflow_guide_tool to get best practices before starting Use Webflow MCP's data_sites_tool with action list_sites to identify available sites Use Webflow MCP's data_sites_tool with action get_site to retrieve site details Use Webflow MCP's data_pages_tool with action list_pages to get all pages Use Webflow MCP's element_tool with action get_all_elements to get detailed element information (requires Designer) Use Webflow MCP's element_tool with action add_or_update_attribute to fix accessibility issues (requires Designer) Use Webflow MCP's element_snapshot_tool to get visual previews of elements DO NOT use any other tools or methods for Webflow operations All tool calls must include the required context parameter (15-25 words, third-person perspective) Designer connection required - This skill needs Designer to access element attributes and styles Instructions Phase 1: Site & Page Selection Get site information: Use Webflow MCP's data_sites_tool with action list_sites to identify target site Ask for page selection: If user provides page ID, use it directly Otherwise, use data_pages_tool with action list_pages to show available pages Let user select which page(s) to audit Confirm audit scope: Ask user what to check: Full audit (all accessibility checks) Critical issues only (WCAG Level A) Specific categories (forms, buttons, navigation, etc.) Phase 2: Element Extraction & Analysis Ensure Designer is connected: Before proceeding, verify Webflow Designer is open and connected If not connected, instruct user to open Designer and connect This is required to access element attributes and styles Switch to target page: Use de_page_tool with action switch_page to navigate to the page being audited Extract all elements: Use element_tool with action get_all_elements for detailed analysis Set include_style_properties: true to check focus styles Set include_all_breakpoint_styles: false to minimize data Parse element data: Identify interactive and content elements: Buttons (Button, LinkBlock with button role) Links (TextLink, Link, LinkBlock) Form inputs (Input, Select, Textarea) Headings (Heading elements with levels) Interactive divs/spans (check for onClick or interactive roles) Images (Image elements) - SKIP for this audit Extract attributes for each element: ARIA attributes (aria-label, aria-describedby, role, tabIndex) DOM attributes (id, domId, href, type, placeholder) Text content Style properties (outline, border for focus states) Element metadata (canHaveAttributes, tag name) Phase 3: Accessibility Checks Critical Issues (Must Fix - WCAG Level A)

Icon-only buttons without labels (WCAG 4.1.2)

Find: Button elements with no text content Check: Missing aria-label or aria-labelledby Impact: Screen readers cannot identify button purpose Fix: Add aria-label attribute with descriptive text

Form inputs without labels (WCAG 1.3.1)

Find: Input, Select, Textarea elements Check: Missing associated label or aria-label Impact: Users don't know what input is for Fix: Add aria-label or associate with

Non-semantic click handlers (WCAG 2.1.1)

Find: Div or Span elements (identified by element type) Check: Interactive behavior without proper role/keyboard support Impact: Not keyboard accessible, screen readers miss interactivity Fix: Add role="button", tabIndex="0", suggest using real Fix: Add aria-label="Close" WCAG: 4.1.2 Name, Role, Value

[A11Y] Element: Input field Issue: Form input without label Location: Contact form, element ID: {component: "def", element: "uvw"} Current: Fix: Add aria-label="Email address" or associate with

SERIOUS (X issues) ────────────────── [A11Y] Element: Link "Read more" Issue: Focus outline removed without visible alternative Location: Blog section Current: outline: none Fix: Add visible focus style (e.g., border: 2px solid blue) WCAG: 2.4.7 Focus Visible

MODERATE (X issues) ─────────────────── [A11Y] Element: Heading Issue: Heading hierarchy skipped (h1 → h3) Location: Article section Current:

Subsection

after

Title

Fix: Change to

or add intermediate h2 WCAG: 1.3.1 Info and Relationships

═══════════════════════════════════════════════════ SUMMARY ─────────────────────────────────────────────────── Total Issues: X - Critical: X issues - Serious: X issues - Moderate: X issues

Accessibility Score: XX/100

Most Common Issues: 1. [Issue type] - X occurrences 2. [Issue type] - X occurrences 3. [Issue type] - X occurrences ═══════════════════════════════════════════════════

Provide actionable insights:

Prioritized fix list (critical first) Quick wins (easy fixes with big impact) Design pattern recommendations Resources for learning more Phase 6: Fix Suggestions & Approval (Optional)

Offer to fix issues automatically: Designer is already connected, so offer auto-fixes

Show preview of fixes:

Which issues would you like to fix?

[1] ✓ Add aria-label to Submit button Element: Button in contact form Fix: Add aria-label="Submit contact form" Safe: Yes (adding attribute only)

[2] ✓ Add aria-label to email input Element: Input in contact form Fix: Add aria-label="Email address" Safe: Yes

[3] ⚠️ Fix heading hierarchy Element: h3 in article section Fix: Change heading level from h3 to h2 Safe: May affect visual styling

Type numbers to skip (e.g., "3"), "all" for all, "none" to cancel

Apply approved fixes: Use element_tool with action add_or_update_attribute

Process in batches Show progress for large fix sets Report success/failure for each

Generate post-fix report:

Issues fixed: X Issues remaining: Y New accessibility score: XX/100 (improved from YY/100) Phase 7: Export & Resources (Optional)

Offer export formats:

Markdown (readable documentation) JSON (machine-readable for tracking) CSV (spreadsheet for team review)

Provide resources:

WCAG 2.1 quick reference links Webflow accessibility best practices Recommended testing tools (browser extensions, screen readers) Important Considerations What This Skill Checks

✅ Button accessibility (labels, roles) ✅ Form input labels and associations ✅ Link semantics and keyboard access ✅ Focus visibility and keyboard navigation ✅ Heading hierarchy and structure ✅ ARIA roles and attributes ✅ Touch target sizes ✅ Interactive element semantics

What This Skill Does NOT Check

❌ Image alt text (use asset-audit skill instead) ❌ Color contrast ratios (requires visual analysis) ❌ Animation/motion preferences ❌ Screen reader testing (needs manual verification) ❌ Content readability (language level, clarity)

Limitations Cannot detect visual-only issues (color contrast, small text) Cannot test actual screen reader behavior Cannot validate content quality or clarity Relies on element attributes and structure only Examples Example 1: Full Page Audit

User prompt:

Run an accessibility audit on my homepage

Step 1: Site & Page Selection

🔍 Accessibility Audit: Page Selection

I'll help you audit your homepage for accessibility issues.

First, let me get your site information...

Available sites: 1. Company Website 2. Portfolio Site

Which site? (1/2)

User response: 1

Step 2: Page Selection

Available pages in Company Website: 1. Home (/) 2. About (/about) 3. Contact (/contact) 4. Blog (/blog)

Which page would you like to audit? (1 for Home)

User response: 1

Step 3: Audit Scope

What level of audit would you like?

  1. Full audit (all WCAG checks) - Recommended
  2. Critical issues only (Level A compliance)
  3. Specific categories (buttons, forms, navigation)

Your choice: (1/2/3)

User response: 1

Step 4: Audit Progress

🔄 Running Accessibility Audit...

Progress: ✅ Extracted page content (45 elements) ✅ Analyzing buttons and interactive elements ✅ Checking form inputs and labels ✅ Validating heading hierarchy ✅ Checking keyboard navigation 🔄 Analyzing focus states...

Analysis complete!

Step 5: Report

═══════════════════════════════════════════════════ ACCESSIBILITY AUDIT: Home ═══════════════════════════════════════════════════

CRITICAL (3 issues) ─────────────────── [A11Y] Element: Button (navigation toggle) Issue: Icon-only button missing accessible name Location: Header navigation Element ID: {component: "nav-01", element: "btn-menu"} Current: Fix: Add aria-label="Open navigation menu" WCAG: 4.1.2 Name, Role, Value

[A11Y] Element: Input (email subscription) Issue: Form input without label Location: Footer, newsletter signup Element ID: {component: "footer-01", element: "email-input"} Current: Fix: Add aria-label="Email address for newsletter" WCAG: 1.3.1 Info and Relationships

[A11Y] Element: Div (clickable card) Issue: Non-semantic interactive element Location: Services section, card 2 Element ID: {component: "services-01", element: "card-02"} Current:

Service card
Fix: Convert to

返回排行榜