dimitriremoiville/cc-mobile/android-accessibility
Claude Code and agent skill by dimitriremoiville/cc-mobile
- community
Checking that the SKILL.md file is still in the repository.
Project-specific Compose accessibility conventions — the `mergeDescendants` rule for visually-grouped composables, the `fontScale = 2.0` preview mandate, the RTL preview pattern, and the live-region escalation rule. Load whenever adding or reviewing a Compose screen.
Install
npx vskill@latest install dimitriremoiville/cc-mobile/android-accessibilitySKILL.md
The same SKILL.md was published earlier as dimitriremoiville/cc-mobile/android-accessibility.
Android accessibility (project delta)
For Compose accessibility fundamentals — Modifier.semantics, contentDescription, Role, mergeDescendants, clearAndSetSemantics, liveRegion, traversalIndex, minimumInteractiveComponentSize(), custom actions — read the official Compose accessibility guide and the accessibility for adaptive apps supplements. This file documents only the project's conventions on top of those.
When this applies
Jetpack Compose accessibility. On an existing app:
- View-based UI → the principles transfer (tap targets ≥ 48dp, content descriptions, dynamic type) but the API surface is different (
AccessibilityDelegate,android:contentDescription,android:importantForAccessibility). Don't push Compose APIs. - Mixed Compose + View → apply this skill only to Compose surfaces.
Baseline (project enforcement)
Every interactive element ships with:
- Tap target ≥ 48dp × 48dp.
Modifier.minimumInteractiveComponentSize()on any custom clickable that isn't already a Material widget. - Accessible name.
Textcontent auto-announces; icons/custom controls needcontentDescriptionorModifier.semantics. - Correct `role` so TalkBack reads "button" / "switch" / "checked" — not the visual only.
contentDescription is a short action verb, not a description of pixels ("Delete", not "A trash can icon"). Decorative icons use contentDescription = null explicitly — never an empty string.
Group with mergeDescendants (project rule)
When a Row / Column represents one logical concept (one row, one card, one list item), always merge its descendants into a single accessible node:
Without mergeDescendants = true, TalkBack reads each child as a separate node and the list becomes a swipe slog. The reviewer flags any Row / Column with clickable and multiple children that doesn't merge.
clearAndSetSemantics { ... } replaces everything below — use only when the auto-generated semantics are actively wrong (e.g. a custom slider). It's a sharper tool than the project usually needs.
fontScale = 2.0 preview mandate
Every screen ships with a fontScale = 2.0f preview alongside its default one:
Layouts must survive font scaling. No fixed-height text containers — use wrapContentHeight() or intrinsic sizing. Truncation with an expand affordance is fine; hiding content is not. The reviewer rejects screens that lack a large-font preview.
RTL preview pattern
Use start / end in modifiers (never left / right). Compose is RTL-aware by default for padding(start = ...), PaddingValues, Arrangement, Alignment. Custom drawing must read LocalLayoutDirection.current and mirror manually.
Live regions vs announceForAccessibility
For non-visual feedback (error banner, validation, status change):
- Preferred — `Modifier.semantics { liveRegion = LiveRegionMode.Polite }` on the visible error text. The status text and the announcement stay coupled; visible UI is the source of truth.
- Fall back to `view.announceForAccessibility(...)` in a
LaunchedEffectonly when there's no visible element to attach a live region to (toast-like notifications). This route bypasses TalkBack's queue and can race with other announcements.
Hard nos
- No `contentDescription = ""` to suppress — use
nullfor decorative images. An empty string still announces "image". - No `Modifier.clickable` on a `Text` without
Modifier.semantics { role = Role.Button }. TalkBack reads it as "double-tap to activate" instead of "button," which the user can't distinguish from a switch or link. - No hard-coded `dp` text. Always
spso font scaling respects the user's setting. - No `Modifier.size(32.dp)` around a touch target — wrap in
minimumInteractiveComponentSize()or size at 48dp minimum. - No testing only on the default font scale. The 2.0 preview is non-negotiable.
- No `mergeDescendants` omitted on a
clickablerow with multiple visual children. TalkBack swipe order grows in proportion to how many of these slip in.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingandroid/.claude/skills/android-accessibility/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dimitriremoiville/cc-mobile/android-accessibility)