refactor

Fixes accessibility issues across codebases through WCAG 2.1 compliant refactoring.

3|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/langgenius/due-date-hq-jwl --skill refactor-langgenius
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: refactor
Source: https://github.com/langgenius/due-date-hq-jwl/tree/main/.claude/skills/refactor
Command: npx skills add https://github.com/langgenius/due-date-hq-jwl --skill refactor-langgenius

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Web applications often ship with accessibility barriers like missing alt text, poor keyboard navigation, and invalid ARIA usage. Manually auditing and fixing these issues across many files is slow and error-prone. This Skill automatically identifies and fixes accessibility issues to meet WCAG 2.1 standards while preserving existing functionality and code style. ## Core Features & Use Cases - Scoped remediation: Fix issues in a single file, a directory, or the entire codebase depending on the path you provide. - Simple to complex fixes: From adding alt text, ARIA labels, and semantic HTML to implementing focus traps, keyboard handlers, and accessible modal, dropdown, and tab patterns. - Structured reporting: Every change is documented with before/after code examples, the WCAG guidelines addressed, and a testing checklist. - Use Case: Point it at your React components directory and it will convert clickable divs into proper buttons, add focus management to modals, fix heading hierarchy, and produce a summary report of remaining issues needing manual review. ## Quick Start Ask the assistant to fix accessibility issues in the src/components directory and report the WCAG guidelines addressed.

Frequently Asked Questions about refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix accessibility issues across multiple files at once?

Provide a directory path and the skill scans all files within it for accessibility issues, then applies fixes methodically. If no path is given, it fixes issues across the entire codebase and reports the scope in its summary.

What accessibility fixes can be automated in React components?

Common automated fixes include converting clickable divs to buttons, adding ARIA labels and roles, implementing keyboard event handlers, managing focus with refs and useEffect, and adding focus traps to modals. Complex component refactors are confirmed with you before major changes.

Does this work with Vue and plain HTML or only React?

It supports React, Vue, and plain HTML/CSS. For Vue it uses v-bind for dynamic ARIA attributes and proper event modifiers; for HTML it applies semantic HTML5 elements, visible focus indicators, and landmark regions.

Can automated refactoring fix color contrast violations?

Yes, it uses the accesslint:contrast-checker skill to analyze color pairs and get compliant alternatives, then updates color values in CSS, styled-components, or theme files while trying to preserve the original hue and design intent.

Will accessibility refactoring break my existing functionality?

The skill follows conservative safety guidelines: it preserves existing patterns, tests incrementally, and asks before major architectural changes, new dependencies, or modifications to widely shared components. Each change includes testing notes for verification.