areas/software/frontend/skills/a11y-audit/SKILL.md
# Skill: Accessibility Audit & Remediation ## When to load When building interactive components, reviewing a PR for accessibility, or fixing a11y lint errors. ## Most Common Violations & Fixes ### 1. Icon-only button without label ```tsx // ❌ <button onClick={onClose}><CloseIcon /></button> // ✅ <button onClick={onClose} aria-label="Close dialog"> <CloseIcon aria-hidden="true" /> </button> ``` ### 2. Input without label ```tsx // ❌ <input type="email" placeholder="Email address" /> // ✅
npx skillsauth add sawrus/agent-guides areas/software/frontend/skills/a11y-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When building interactive components, reviewing a PR for accessibility, or fixing a11y lint errors.
// ❌
<button onClick={onClose}><CloseIcon /></button>
// ✅
<button onClick={onClose} aria-label="Close dialog">
<CloseIcon aria-hidden="true" />
</button>
// ❌
<input type="email" placeholder="Email address" />
// ✅
<label htmlFor="email">Email address</label>
<input id="email" type="email" placeholder="[email protected]" />
const Modal = ({ isOpen, onClose, children }: ModalProps) => {
const firstFocusableRef = useRef<HTMLButtonElement>(null);
useEffect(() => {
if (isOpen) firstFocusableRef.current?.focus();
}, [isOpen]);
return isOpen ? (
<div role="dialog" aria-modal="true" aria-labelledby="dialog-title">
{children}
<button ref={firstFocusableRef} onClick={onClose}>Close</button>
</div>
) : null;
};
const StatusMessage = ({ message }: { message: string }) => (
<div aria-live="polite" aria-atomic="true" className="sr-only">
{message}
</div>
);
tabindex > 0)testing
QA Expert for writing E2E tests, test scenarios, test plans, and ensuring test coverage quality.
development
Expert UI/UX design intelligence for creating distinctive, high-craft, and mobile-first interfaces. Focuses on premium aesthetics, touch-first ergonomics, and Flutter performance.
development
Code Review Expert for static analysis, security auditing, architecture review, and ensuring code quality standards.
development
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.