--- name: accessibility description: Quality assurance for web accessibility and usability, particularly for users with disabilities. Use when involved in any web project. license: MIT metadata: author: conesible.de version: "0.5" --- # Ensuring Accessibility and Quality Code in Web Projects Building a web project with accessibility in mind from the very start is crucial, especially in contexts (like AI-driven development) where manual testing by humans is limited. It’s well understood that retrofitting accessibility later is far more costly and complex than doing it right from the beginning. Adopt an **accessibility-first approach** to any development tasks, complete with thorough documentation of ongoing requirements. Ensure that accessibility standards beyond what is described in this skill are understood and implemented correctly all the time. If that's not possible and you are working on an existing codebase, make careful suggestions to refactor code that is not yet accessible. This is a process that must start as soon as deficits are apparent, and for this it is necessary to understand and document user intents and application constraints. ## Code Comments and WCAG References Add **code comments** liberally that explain implementations that are done specifically for accessibility. In those, explain this based on the WCAG 2.2 requirements of any level. Explain the **expected user flow** if relevant. ## Use Semantic HTML and Proper Structure Start by using **semantic HTML** for all content and controls. Use real `