agents/projects/code-health/accessibility-cleanup/SKILL.md
Identify and fix accessibility bugs in Android Java files where developers are inadvertently violating the expected contract of the Android accessibility API.
The Android Accessibility API has many subtle rules that have changed over time. Developers often write custom accessibility code based on the end user result when testing with TalkBack, but don't actually honor the API contract which would make the feature work with TalkBack and any other running assistive technology. The goal of this work is to identify these common issues and anti- patterns and proactively fix them in the code.
Goal: Identify common violations of the Android accessibility API and fix them in Clank Java files.
[!IMPORTANT] Execution Protocol: Execute all steps sequentially one by one. Do not skip any step. Do not use
edit-codeorgrep. Userg(ripgrep) for searches.
Follow the workspace preparation steps in workspace_preparation.md to ensure a clean and updated environment.
Follow the Discovery & Batch Selection workflow.
Process the candidates by handling them one file at a time, and applying modifications inside each file one instance at a time (rather than refactoring all files or instances at once). This ensures stability and allows for precise verification.
R.string.accessibility_expanded_group) are now unused. If they are,
remove them from the corresponding .grd / .grsp resource files.git cl format.git cl format to format the modified source
code. Address any errors that are reported.generalist sub-agent. Proceed to the
Verification phase only after the review returns PASS.Follow the Verification workflow.
<SourceFileName>
and <SourceFilePath> from the candidate.
Invoke the Submission workflow. Pass the following context variables to the workflow:
accessibility-cleanupcleanup-a11y-<ComponentName> (where ComponentName is the
class name of the candidate file)Accessibility CleanupImprove accessibility semantics in <SourceFileName><Write a concise description explaining the changes (what, why, how) for the commit message.>531299755<Bug ID> from the Bug Tracking step.<SourceFileName>1